rcssjava.monitor
Class Monitor

java.lang.Object
  extended by rcssjava.monitor.Monitor

public class Monitor
extends java.lang.Object

Graphical visualization of the world state


Constructor Summary
Monitor()
          Construct monitor with default listener and parameters
Monitor(MonitorParams MP)
          Construct monitor with default listener and server parameters but with the monitor parameters specified
Monitor(MonitorParams MP, ServerParams SP)
          Construct monitor with the given parameters and the default listener
Monitor(MonitorParams MP, ServerParams SP, MonitorListener listener)
          Construct monitor with everything specified
 
Method Summary
 void quit()
          Terminate monitor
 void repaint()
          Refresh the display using the previously specified world state, if any.
 void update(WorldState ws)
          Update visualization to display given world state.
 void update(WorldState ws, java.util.Vector<FieldShape> shapes)
          Update visualization to display given world state as well as some additional graphics.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Monitor

public Monitor()
Construct monitor with default listener and parameters


Monitor

public Monitor(MonitorParams MP)
Construct monitor with default listener and server parameters but with the monitor parameters specified

Parameters:
MP - monitor parameters

Monitor

public Monitor(MonitorParams MP,
               ServerParams SP)
Construct monitor with the given parameters and the default listener

Parameters:
MP - monitor parameters
SP - server parameters

Monitor

public Monitor(MonitorParams MP,
               ServerParams SP,
               MonitorListener listener)
Construct monitor with everything specified

Parameters:
MP - monitor parameters
SP - server parameters
listener - class the listens to user input from mouse or keyboard
Method Detail

update

public void update(WorldState ws)
Update visualization to display given world state. This method must be called every time the objects in the world state move and need to be redrawn.


update

public void update(WorldState ws,
                   java.util.Vector<FieldShape> shapes)
Update visualization to display given world state as well as some additional graphics. This method must be called every time the objects in the world state move and need to be redrawn.


repaint

public void repaint()
Refresh the display using the previously specified world state, if any.


quit

public void quit()
Terminate monitor