cz.cuni.amis.pogamut.episodic.schemas
Interface ISchemaMessageCommand

Package class diagram package ISchemaMessageCommand
All Known Implementing Classes:
SchemaBag.SchemaMessageCommand

public interface ISchemaMessageCommand

Because counters in the schemabag are updated more often than the individual nodes, it is convenient not to redraw all whole schemabag visualization each time they are increased. But still, the detailed information that is invoded when the count number is requested by the user needs to be up to date. Therefore the reference to SchemaMessageCommand class is passed to the visualizer and it is used to receive latest count number each time it is requested by the user via visualizer window. This interface is created so the method getSchemaMessage can be accessed from the visualizer structures while the SchemaMessageCommand class is still in the schema package outside the visualizer structures.

Author:
Michal Cermak

Method Summary
 String getSchemaMessage(Collection<Integer> picked)
          Once reference to SchemaMesssageCommand is set in visualizer, this method can be used to retrieve up to date count number of currently selected set of schema nodes.
 

Method Detail

getSchemaMessage

String getSchemaMessage(Collection<Integer> picked)
Once reference to SchemaMesssageCommand is set in visualizer, this method can be used to retrieve up to date count number of currently selected set of schema nodes.

Parameters:
picked - Collection of IDs of schema episode nodes and schema object nodes that are selected in the visualizer and should form the set of nodes representing wanted counter.
Returns:
The string message to be displayed to the user. If count for selected set of nodes existed in SchemaBag it should contain the count number of this set of nodes.


Copyright © 2013 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.