Class Event

java.lang.Object
  |
  +--Event
Direct Known Subclasses:
ArrivalEvent, DepartureEvent

public abstract class Event
extends java.lang.Object

An abstract class used in a Simulation to indicate a significant event. This class will be extended by ArrivalEvent and DepartureEvent. Events will be stored in a Clock, along with the time of the Event.

See Also:
Simulation, Clock, ArrivalEvent, DepartureEvent

Field Summary
protected  Party party
          The party involved in this event
 
Constructor Summary
Event()
           
 
Method Summary
abstract  boolean isArrival()
          Indicates whether or not this Event is an arrival event.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

party

protected Party party
The party involved in this event
Constructor Detail

Event

public Event()
Method Detail

isArrival

public abstract boolean isArrival()
Indicates whether or not this Event is an arrival event.
Returns:
true iff this is an arrival event.
See Also:
ArrivalEvent, DepartureEvent