scalation.event

Event

Related Doc: package event

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
Learn more about member selection
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 stat 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 (i) may schedule other events and (ii) may specify state changes.

Concrete Value Members

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

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

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

    Definition Classes
    Ordered
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  6. def >(that: Event): Boolean

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

    Definition Classes
    Ordered
  8. val actTime: Double

    The activation/occurrence time for the event

  9. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  10. def cancel(): Unit

    Cancel 'this' event.

  11. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. 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
  13. def compareTo(that: Event): Int

    Definition Classes
    Ordered → Comparable
  14. val entity: Entity

    the entity involved in this event

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

    Definition Classes
    AnyRef
  16. def equals(that: Any): Boolean

    Determine whether Identifiable object 'this' equals Identifiable object 'that'.

    Determine whether Identifiable object 'this' equals Identifiable object 'that'. Works since 'id' is unique for all Identifiable objects.

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  18. 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
  19. final def getClass(): Class[_]

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

    Return the hashCode as the unique id.

    Return the hashCode as the unique id.

    Definition Classes
    Identifiable → AnyRef → Any
  21. def id: Int

    Get the id (unique identifier).

    Get the id (unique identifier).

    Definition Classes
    Identifiable
  22. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  23. def live: Boolean

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

  24. def me: String

    Return the full identity.

    Return the full identity.

    Definition Classes
    Identifiable
  25. def name: String

    Get the name.

    Get the name.

    Definition Classes
    Identifiable
  26. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  29. val proto: EventNode

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

  30. def setName(label: String): Unit

    Set the name.

    Set the name.

    label

    the name to assign

    Definition Classes
    Identifiable
  31. def simType: String

    Get the type of the simulation object.

    Get the type of the simulation object.

    Definition Classes
    Identifiable
  32. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  33. def toString(): String

    Convert the event to a string.

    Convert the event to a string.

    Definition Classes
    Event → AnyRef → Any
  34. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Ordered[Event]

Inherited from Comparable[Event]

Inherited from Identifiable

Inherited from Error

Inherited from AnyRef

Inherited from Any

Ungrouped