All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----simulation.event.Event
Events are created as instances of Event-derived classes that override the abstract method actions.
The actions method is used to specify the actions of of a class of events.
public Event()
public final void schedule(double evTime)
The event is inserted into the event list at a position corresponding to the current simulation time, and after any processes with the same event time.
public final void cancel()
The event is removed from the event list. If it is not scheduled, the call has no effect.
public static final double time()
public static final void runSimulation(double period)
Time will start at 0 and jump from event time to event time until either this period is over, there are no more scheduled events, or the stopSimulation method is called.
public static final void stopSimulation()
All Packages Class Hierarchy This Package Previous Next Index