All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class simulation.events.StateEvent

java.lang.Object
   |
   +----simulation.events.Event
           |
           +----simulation.events.StateEvent

public abstract class StateEvent
extends simulation.events.Event
This class may used to describe a state event, i.e., an event scheduled to occur to when the state of the system fulfills a specified condition.

State events are created as instances of StateEvent -derived classes that override the abstract methods actions and condition.

The actions method is used to specify the actions of a class of state events. The actions of a state event are executed when its Condition returns true.

See Also:
simulation.events.Event, simulation.events.TimeEvent, simulation.events.Simulation

Constructor Index

 o StateEvent()

Method Index

 o schedule()
Schedules this state event.

Constructors

 o StateEvent
 public StateEvent()

Methods

 o schedule
 public final void schedule()
Schedules this state event. Its time of occurence depends on its condition.

The activity is inserted at the back of the list of waiting activities.


All Packages  Class Hierarchy  This Package  Previous  Next  Index