|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectcz.cuni.amis.pogamut.episodic.visualizer.VisualizationCreator
public class VisualizationCreator
VisualizatonCreator is a class connecting agent's memory with
the VisualizationRenderer module. It has access to the memory
structures and based on the memory contents it uses renderer to visualize
it. It uses renderer methods to display chronobags as separate graphs and
nodes as individual vertices.
For agent's memory it provides several simple methods that can take care of visualization of different structures. Thus each time, new node is added to some memory structure, a method can be called to redraw that structure only, so that visualization always reflects current memory contents.
| Constructor Summary | |
|---|---|
VisualizationCreator()
|
|
| Method Summary | |
|---|---|
void |
createChronobagView(AgentMemory mem)
This method is responsible for creating the graph that will hold the vertices representing individual chronobags. |
void |
createDecisionTree(DecisionTree dTree)
This method is responsible for creating the graph that will hold the vertices representing nodes of decision tree. |
void |
createPresentChronobag(Chronobag bag)
This method is responsible for creating the graph that will hold the vertices representing nodes of current chronobag. |
void |
createSchemaBag(SchemaBag schemas)
This method is responsible for creating the graph that will hold the vertices representing nodes of a schema bag. |
void |
createTreeLayout(Chronobag c,
int graph)
|
void |
handleVisualizationEvent(VisualizationEvent e)
|
static void |
main(String[] args)
|
void |
refreshChronobag(Chronobag chronobag,
int graphIndex)
Calling this method causes the visualization of specified chronobag to refresh. |
void |
refreshChronobagView(SchemaBag schemas,
Collection<Chronobag> chronobags)
Calling this method causes the visualization of a chronobag overview to refresh. |
void |
refreshPastChronobags(HashSet<Chronobag> past)
Calling this method causes all the graphs visualizing the past chronobags to refresh. |
void |
refreshPresentChronobag(Chronobag present)
Calling this method causes the visualization of the chronobag representing current day to refresh. |
void |
refreshSchemaBag(SchemaBag schemas)
Calling this method causes the visualization of a schema bag to refresh. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public VisualizationCreator()
| Method Detail |
|---|
public void handleVisualizationEvent(VisualizationEvent e)
handleVisualizationEvent in interface IVisualizationListenerpublic void refreshPastChronobags(HashSet<Chronobag> past)
past - List of past chronobags in agent's memory.public void refreshPresentChronobag(Chronobag present)
present - Reference to chronobag containing episodes from
current day.time - String containing time information to be used as a label.timeOnly - True if no new node was added to the chronobag, and
only updated part should be label with current time information.
False if whole chronobag needs to be redrawn.
public void refreshChronobag(Chronobag chronobag,
int graphIndex)
present - Reference to chronobag that is to be refreshed.time - String containing time information to be used as a label.timeOnly - True if no new node was added to the chronobag, and
only updated part should be label with current time information.
False if whole chronobag needs to be redrawn.public void createPresentChronobag(Chronobag bag)
bag - Reference to the current chronobag, so its nodes can
be displayed for the first time.public void createDecisionTree(DecisionTree dTree)
dTree - Reference to the decision tree, so its nodes can
be displayed.public void createChronobagView(AgentMemory mem)
schemas - Reference to the schema bag so a vertex representing
schema bag can be added to the visualization with correct additional
information.present - Reference to the current chronobagso a vertex representing
it can be added to the visualization with correct additional information.public void createSchemaBag(SchemaBag schemas)
This method also sets a reference to SchemaMessageCommand
class so that each time a counter is increased, the visualization
does not have to be refreshed, but actual count will be provided via
the call to SchemaMessageCommand's method
getSchemaMessage.
schemas - Reference to the schema bag, so its nodes can
be displayed.public void refreshSchemaBag(SchemaBag schemas)
Unless new node was added to the schema bag it only updates the current
time information label. Actual counts will still be up to date because
they will be provided via the call to SchemaMessageCommand's
method getSchemaMessage.
schemas - Reference to a schema bag so that it can be refreshed.time - String containing time information to be used as a label.
public void refreshChronobagView(SchemaBag schemas,
Collection<Chronobag> chronobags)
schemas - Reference to a schema bag so that its summary
can be refreshed.present - Reference to a current chronobag so that its summary
can be refreshed.past - Reference to a list of past chronobags. If new chronobag
was added there it is added to the visualization too. Summary of all
chronobags are also updated.
public void createTreeLayout(Chronobag c,
int graph)
public static void main(String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||