avrora.gui
Class SimTimeEvents.PauseEvent

java.lang.Object
  extended byavrora.gui.SimTimeEvents.PauseEvent
All Implemented Interfaces:
Simulator.Event
Enclosing class:
SimTimeEvents

public class SimTimeEvents.PauseEvent
extends java.lang.Object
implements Simulator.Event

An instance of this class can be inserted into the sim it will pause the sim until unpause() is called.


Field Summary
 boolean ispaused
           
 
Constructor Summary
SimTimeEvents.PauseEvent()
           
 
Method Summary
 void fire()
          The fire() method is called when the event to which it is tied happens with in the simulator.
 void pause()
           
 void unpause()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ispaused

public boolean ispaused
Constructor Detail

SimTimeEvents.PauseEvent

public SimTimeEvents.PauseEvent()
Method Detail

fire

public void fire()
Description copied from interface: Simulator.Event
The fire() method is called when the event to which it is tied happens with in the simulator.

Specified by:
fire in interface Simulator.Event

unpause

public void unpause()

pause

public void pause()