scalation.event

CausalLink

case class CausalLink(_name: String, director: Model, condition: () ⇒ Boolean, causedEvent: Event, makeEvent: () ⇒ Event, delay: Variate, cancel: Boolean) extends Identity with Product with Serializable

This class provides casual links between events. After an event has updated the state, it checks its causal links to schedule/cancel other events.

_name

the name of the causal link

condition

the condition under which it is followed

makeEvent

function to create an event

delay

the time delay in scheduling the event

cancel

whether to schedule (default) or cancel the event

Linear Supertypes
Serializable, Serializable, Product, Equals, Identity, Error, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. CausalLink
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. Identity
  7. Error
  8. AnyRef
  9. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new CausalLink(_name: String, director: Model, condition: () ⇒ Boolean, causedEvent: Event, makeEvent: () ⇒ Event, delay: Variate, cancel: Boolean = false)

    _name

    the name of the causal link

    condition

    the condition under which it is followed

    makeEvent

    function to create an event

    delay

    the time delay in scheduling the event

    cancel

    whether to schedule (default) or cancel the 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. final def ==(arg0: AnyRef): Boolean

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

    Definition Classes
    Any
  6. val _name: String

    the name of the causal link

  7. def accumulate(value: Double, time: Double): Unit

    Accumulate the a value (e.

    Accumulate the a value (e.g., number in queue) weighted by its time duration.

    value

    the value to accumulate

    time

    the current time of the observation

  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def canEqual(arg0: Any): Boolean

    Definition Classes
    CausalLink → Equals
  10. val cancel: Boolean

    whether to schedule (default) or cancel the event

  11. val causedEvent: Event

  12. def clone(): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  13. val condition: () ⇒ Boolean

    the condition under which it is followed

  14. val delay: Variate

    the time delay in scheduling the event

  15. val director: Model

  16. def display(from: Event, to: Event): Unit

    Tell the animation engine to display this CausalLink.

    Tell the animation engine to display this CausalLink.

    from

    the starting event prototype

    to

    the ending event prototype

  17. def durationStat: Statistic

    Sample statistics for durations for the component.

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

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

    Definition Classes
    CausalLink → Equals → 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
    CausalLink → 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. val makeEvent: () ⇒ Event

    function to create an event

  27. def me: String

    Return the full identity.

    Return the full identity.

    Definition Classes
    Identity
  28. def name: String

    Get the name.

    Get the name.

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

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

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

    Definition Classes
    AnyRef
  32. def persistentStat: TimeStatistic

    Persistent statistics for value for the component.

  33. def productArity: Int

    Definition Classes
    CausalLink → Product
  34. def productElement(arg0: Int): Any

    Definition Classes
    CausalLink → Product
  35. def productIterator: Iterator[Any]

    Definition Classes
    Product
  36. def productPrefix: String

    Definition Classes
    CausalLink → Product
  37. def setName(label: String): Unit

    Set the name.

    Set the name.

    label

    the name to assign

    Definition Classes
    Identity
  38. def simType: String

    Get the type of the simulation object.

    Get the type of the simulation object.

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

    Definition Classes
    AnyRef
  40. def tally(duration: Double): Unit

    Tally the duration (e.

    Tally the duration (e.g., service time) of a delay on a causal link.

    duration

    the time duration

  41. def toString(): String

    Convert the causal link to a string.

    Convert the causal link to a string.

    Definition Classes
    CausalLink → AnyRef → Any
  42. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()

Deprecated Value Members

  1. def productElements: Iterator[Any]

    Definition Classes
    Product
    Annotations
    @deprecated
    Deprecated

    (Since version 2.8.0) use productIterator instead

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Identity

Inherited from Error

Inherited from AnyRef

Inherited from Any