scalation.event

Event

abstract class Event extends PQItem with Ordered[Event]

This class provides facilities for defining simulation events. Subclasses of of Event provide event-logic in their implementation of the occur method. Note: unique identification and the event/activation time (actTime) are mixed in via the PQItem trait.

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

Instance Constructors

  1. new Event(proto: Event, entity: Entity, links: Array[CausalLink], director: Model, at: Array[Double] = ...)

    proto

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

    entity

    the entity involved in this event

    links

    the causal links used to trigger other immediate/future events

    director

    the controller/scheduler that this event is a part of

    at

    the location of this event

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. def <(that: Event): Boolean

    Definition Classes
    Ordered
  5. def <=(that: Event): Boolean

    Definition Classes
    Ordered
  6. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  7. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  8. def >(that: Event): Boolean

    Definition Classes
    Ordered
  9. def >=(that: Event): Boolean

    Definition Classes
    Ordered
  10. var actTime: Double

    The activation time for the item in the time-ordered priority queue

    The activation time for the item in the time-ordered priority queue

    Definition Classes
    PQItem
  11. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  12. def clone(): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  13. def compare(ev: Event): Int

    Compare the activation times of the two events.

    Compare the activation times of the two events.

    Definition Classes
    Event → Ordered
  14. def compare(other: PQItem): Int

    Compare two items (PQItems) based on their actTime.

    Compare two items (PQItems) based on their actTime.

    other

    the other item to compare with this item

    Definition Classes
    PQItem
  15. def compareTo(that: Event): Int

    Definition Classes
    Ordered → Comparable
  16. def display(): Unit

    Tell the animation engine to display this Event as a node.

  17. def displayLinks(outLinks: Array[CausalLink]): Unit

    Tell the animation engine to display this node's outgoing CausalLink's as edges.

    Tell the animation engine to display this node's outgoing CausalLink's as edges.

    outLinks

    this nodes outgoing causal links

  18. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  19. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  20. def finalize(): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  21. def flaw(method: String, message: String): Unit

    Show the flaw by printing the error message.

    Show the flaw by printing the error message.

    method

    the method where the error occurred

    message

    the error message

    Definition Classes
    Error
  22. final def getClass(): java.lang.Class[_]

    Definition Classes
    AnyRef → Any
  23. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  24. def id: Int

    Get the id (unique identifier).

    Get the id (unique identifier).

    Definition Classes
    Identity
  25. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  26. def me: String

    Return the full identity.

    Return the full identity.

    Definition Classes
    Identity
  27. def name: String

    Get the name.

    Get the name.

    Definition Classes
    Identity
  28. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  29. final def notify(): Unit

    Definition Classes
    AnyRef
  30. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  31. def occur(): Unit

    Execute the event where the event-logic is specified as follows: (i) Each model will define causal links that connect events.

    Execute the event where the event-logic is specified as follows: (i) Each model will define causal links that connect events. One event may schedule other events, depending upon whether the respective causal link evaluates to true. (ii) Each model defines its own events (e.g., Arrival, Departure) that must override this occur method to specify the state changes. If such events may cause other events, they must call this occur method (via super.occur).

  32. val proto: Event

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

  33. def setName(label: String): Unit

    Set the name.

    Set the name.

    label

    the name to assign

    Definition Classes
    Identity
  34. def simType: String

    Get the type of the simulation object.

    Get the type of the simulation object.

    Definition Classes
    Identity
  35. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  36. def toString(): String

    Convert the event to a string.

    Convert the event to a string.

    Definition Classes
    EventPQItem → AnyRef → Any
  37. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  38. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  39. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from Ordered[Event]

Inherited from Comparable[Event]

Inherited from PQItem

Inherited from Identity

Inherited from Error

Inherited from AnyRef

Inherited from Any