hades.simulator
Class WakeupEvent

java.lang.Object
  extended byhades.simulator.SimEvent
      extended byhades.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

Field Summary
static boolean debug
           
static int STACK_SIZE
           
static int STACK_SIZE_1
           
protected  Wakeable target
           
 
Fields inherited from class hades.simulator.SimEvent
arg, enable_recycling, id, source, targetPort, time
 
Constructor Summary
WakeupEvent(Wakeable target, double time, java.lang.Object arg)
           
WakeupEvent(Wakeable target, double time, java.lang.Object arg, java.lang.Object source)
           
 
Method Summary
 void evaluate()
          evaluate(): for an WakeupEvent, this method calls the target's wakeup() method.
static WakeupEvent getNewWakeupEvent(Wakeable target, double time, java.lang.Object arg)
           
static long getNumberOfAvailableRecycledSimEvents()
           
static long getNumberOfRecycledSimEvents()
           
static long getNumberOfSimEvents()
           
 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, 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 Wakeable target

debug

public static boolean debug

STACK_SIZE

public static int STACK_SIZE

STACK_SIZE_1

public static int STACK_SIZE_1
Constructor Detail

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)
Method Detail

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