The Event class provides facilities for defining simulation events. Subclasses of Event provide event-logic in their implementation of the 'occur' method. Note: unique identification is mixed in via the Identifiable trait.
Value parameters
delay
the time delay before this event's occurrence
director
the controller/scheduler that this event is a part of
entity
the entity involved in this event
proto
the prototype (serves as node in animation) for this event
stat
the object for collecting statistics about delay times
Execute this event where the event-logic is specified in the 'occur' method. This method is abstract, so it must be implemented in subclasses and it (1) may schedule other events and (2) may specify state changes.
Execute this event where the event-logic is specified in the 'occur' method. This method is abstract, so it must be implemented in subclasses and it (1) may schedule other events and (2) may specify state changes.
Compare the activation times (actTime) of the two events ('ev' and 'this'). Note: the order is reversed since Scala's Priority Queue is Highest Priority First (HPF).
Compare the activation times (actTime) of the two events ('ev' and 'this'). Note: the order is reversed since Scala's Priority Queue is Highest Priority First (HPF).