Packages

abstract class Event extends Identifiable with Ordered[Event]

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.

Linear Supertypes
Ordered[Event], Comparable[Event], Identifiable, Error, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Event
  2. Ordered
  3. Comparable
  4. Identifiable
  5. Error
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Event(entity: Entity, director: Model, delay: Double = 0.0, stat: Statistic = null, proto: EventNode = null)

    entity

    the entity involved in this event

    director

    the controller/scheduler that this event is a part of

    delay

    the time delay before this event's occurrence

    stat

    the object for collecting statistics about delay times

    proto

    the prototype (serves as node in animation) for this event

Abstract Value Members

  1. abstract def occur(): Unit

    Execute this event where the event-logic is specified in the 'occur' method.

    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.

Concrete Value Members

  1. def <(that: Event): Boolean
    Definition Classes
    Ordered
  2. def <=(that: Event): Boolean
    Definition Classes
    Ordered
  3. def >(that: Event): Boolean
    Definition Classes
    Ordered
  4. def >=(that: Event): Boolean
    Definition Classes
    Ordered
  5. val actTime: Double

    The activation/occurrence time for the event

  6. def cancel(): Unit

    Cancel 'this' event.

  7. def compare(ev: Event): Int

    Compare the activation times of the two events ('ev' and 'this').

    Compare the activation times of the two events ('ev' and 'this').

    ev

    the other event

    Definition Classes
    Event → Ordered
  8. def compareTo(that: Event): Int
    Definition Classes
    Ordered → Comparable
  9. val entity: Entity
  10. def equals(that: Any): Boolean
    Definition Classes
    Identifiable → AnyRef → Any
  11. final def flaw(method: String, message: String): Unit
    Definition Classes
    Error
  12. def hashCode(): Int
    Definition Classes
    Identifiable → AnyRef → Any
  13. val id: Int
    Definition Classes
    Identifiable
  14. def live: Boolean

    Return whether this event is live (i.e., not cancelled).

  15. def me: String
    Definition Classes
    Identifiable
  16. def name: String
    Definition Classes
    Identifiable
  17. def name_=(name: String): Unit
    Definition Classes
    Identifiable
  18. val proto: EventNode
  19. def simType: String
    Definition Classes
    Identifiable
  20. def toString(): String

    Convert the event to a string.

    Convert the event to a string.

    Definition Classes
    Event → AnyRef → Any