hades.simulator
Class WakeupEvent
java.lang.Object
hades.simulator.SimEvent
hades.simulator.WakeupEvent
- All Implemented Interfaces:
- java.io.Serializable
- public class WakeupEvent
- extends SimEvent
- implements java.io.Serializable
WakeupEvent - the basic Hades simulation event.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
target
protected Wakeable target
debug
public static boolean debug
STACK_SIZE
public static int STACK_SIZE
STACK_SIZE_1
public static int STACK_SIZE_1
WakeupEvent
public WakeupEvent(Wakeable target,
double time,
java.lang.Object arg,
java.lang.Object source)
WakeupEvent
public WakeupEvent(Wakeable target,
double time,
java.lang.Object arg)
getNewWakeupEvent
public static WakeupEvent getNewWakeupEvent(Wakeable target,
double time,
java.lang.Object arg)
recycle
public void recycle()
- Overrides:
recycle
in class SimEvent
evaluate
public void evaluate()
- evaluate(): for an WakeupEvent, this method calls the target's wakeup()
method.
- Overrides:
evaluate
in class SimEvent
getNumberOfAvailableRecycledSimEvents
public static long getNumberOfAvailableRecycledSimEvents()
getNumberOfRecycledSimEvents
public static long getNumberOfRecycledSimEvents()
getNumberOfSimEvents
public static long getNumberOfSimEvents()
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