All Packages Class Hierarchy This Package Previous Next Index
Class kraft.monitor.display.DisplayMonitor
java.lang.Object
|
+----kraft.monitor.display.DisplayMonitor
- public class DisplayMonitor
- extends Object
Used to allow the MonitorGUI to 'know' when a particular event has been
displayed by the MonitorCanvas.
Makes sure that the MonitorGUI knows which step this event occurs at,
and when it has been displayed, to ensure that the event currently shown
in the visualisation is the most recent event in the agent system being
visualised.
The MonitorCanvas will set the index position of this event in its
sequence of events, and will assign it to a particular DisplayEvent object,
the event object will then inform this DisplayMonitor when the event has
been displayed graphically.
- Author:
- Ted Francis
- See Also:
- displayMessage, DisplayEvent, MonitorCanvas, MonitorGUI
-
DisplayMonitor(Date)
-
-
getIndex()
- Called by the MonitorGUI
-
getTime()
-
-
isDisplayed()
- Called by the MonitorGUI to see whether the event is displayed yet
-
setDisplayed(boolean)
- Set to true by the DisplayEvent when the event is displayed
-
setIndex(int)
- Called by the MonitorCanvas
-
toString()
-
DisplayMonitor
public DisplayMonitor(Date t)
setIndex
public void setIndex(int s)
- Called by the MonitorCanvas
getIndex
public int getIndex()
- Called by the MonitorGUI
setDisplayed
public void setDisplayed(boolean val)
- Set to true by the DisplayEvent when the event is displayed
isDisplayed
public boolean isDisplayed()
- Called by the MonitorGUI to see whether the event is displayed yet
getTime
public Date getTime()
toString
public String toString()
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index