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

Constructor Index

 o DisplayMonitor(Date)

Method Index

 o getIndex()
Called by the MonitorGUI
 o getTime()
 o isDisplayed()
Called by the MonitorGUI to see whether the event is displayed yet
 o setDisplayed(boolean)
Set to true by the DisplayEvent when the event is displayed
 o setIndex(int)
Called by the MonitorCanvas
 o toString()

Constructors

 o DisplayMonitor
 public DisplayMonitor(Date t)

Methods

 o setIndex
 public void setIndex(int s)
Called by the MonitorCanvas

 o getIndex
 public int getIndex()
Called by the MonitorGUI

 o setDisplayed
 public void setDisplayed(boolean val)
Set to true by the DisplayEvent when the event is displayed

 o isDisplayed
 public boolean isDisplayed()
Called by the MonitorGUI to see whether the event is displayed yet

 o getTime
 public Date getTime()
 o toString
 public String toString()
Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index