hades.simulator
Class SimulatorInterruptEvent

java.lang.Object
  extended byhades.simulator.SimEvent
      extended byhades.simulator.SimulatorInterruptEvent
All Implemented Interfaces:
java.io.Serializable

public class SimulatorInterruptEvent
extends SimEvent
implements java.io.Serializable

SimulatorInterruptEvent - stop a HADES simulation at given time

See Also:
Serialized Form

Field Summary
protected  SimKernel target
           
 
Fields inherited from class hades.simulator.SimEvent
arg, enable_recycling, id, source, STACK_SIZE, targetPort, time
 
Constructor Summary
SimulatorInterruptEvent(SimKernel target, double time, java.lang.Object source)
           
 
Method Summary
 void evaluate()
          evaluate(): for an SimulatorInterruptEvent, we just call the SimKernel's evaluate() method
 void recycle()
           
 java.lang.String toShortString()
          construct a one-line description for this Event, starting with nicely formatted event time.
 java.lang.String toString()
          toString() - the usual info method
 
Methods inherited from class hades.simulator.SimEvent
createNewSimEvent, createNewSimEvent, getArg, getDebug, getNumberOfAvailableRecycledSimEvents, getNumberOfRecycledSimEvents, getNumberOfSimEvents, getSource, getTargetPort, getTime, setDebug, setTargetPort
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

target

protected SimKernel target
Constructor Detail

SimulatorInterruptEvent

public SimulatorInterruptEvent(SimKernel target,
                               double time,
                               java.lang.Object source)
Method Detail

recycle

public void recycle()
Overrides:
recycle in class SimEvent

evaluate

public void evaluate()
evaluate(): for an SimulatorInterruptEvent, we just call the SimKernel's evaluate() method

Overrides:
evaluate in class SimEvent

toShortString

public java.lang.String toShortString()
construct a one-line description for this Event, starting with nicely formatted event time.

Overrides:
toShortString in class SimEvent

toString

public java.lang.String toString()
toString() - the usual info method

Overrides:
toString in class SimEvent