Packages

class Source extends SimActor with Component

The Source class is used to periodically inject entities (SimActors) into a running simulation model. May act as an arrival generator. Source is both a simulation Component and special SimActor and therefore runs in own thread.

Linear Supertypes
Component, SimActor, Locatable, Ordered[SimActor], Comparable[SimActor], PQItem, Identifiable, Coroutine, Error, Runnable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Source
  2. Component
  3. SimActor
  4. Locatable
  5. Ordered
  6. Comparable
  7. PQItem
  8. Identifiable
  9. Coroutine
  10. Error
  11. Runnable
  12. AnyRef
  13. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Source(name: String, director: Model, makeEntity: () ⇒ SimActor, esubtype: Int, units: Int, iArrivalTime: Variate, xy: (Double, Double))

    Auxiliary constructor that uses defaults for width 'w' and height 'h'.

    Auxiliary constructor that uses defaults for width 'w' and height 'h'.

    name

    the name of the source

    director

    the director controlling the model

    makeEntity

    the function to make entities of a specified type

    esubtype

    indicator of the subtype of the entities to me made

    units

    the number of entities to make

    iArrivalTime

    the inter-arrival time distribution

    xy

    the (x, y) coordinates for the top-left corner of the source.

  2. new Source(name: String, director: Model, makeEntity: () ⇒ SimActor, esubtype: Int, units: Int, iArrivalTime: Variate, loc: Array[Double])

    name

    the name of the source

    director

    the director controlling the model

    makeEntity

    the function to make entities of a specified type

    esubtype

    indicator of the subtype of the entities to me made

    units

    the number of entities to make

    iArrivalTime

    the inter-arrival time distribution

    loc

    the location of the source (x, y, w, h)

Value Members

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

    Diameter of a token (for animating entities)

    Diameter of a token (for animating entities)

    Definition Classes
    Component
  6. val RAD: Double

    Radius of a token (for animating entities)

    Radius of a token (for animating entities)

    Definition Classes
    Component
  7. def accum(value: Double): Unit

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

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

    value

    the value to accumulate

    Definition Classes
    Component
  8. def act(): Unit

    The Sources as special SimActor will act over time to make entities (other SimActors).

    The Sources as special SimActor will act over time to make entities (other SimActors).

    Definition Classes
    SourceSimActorCoroutine
  9. val actTime: Double
    Definition Classes
    PQItem
  10. def aggregate(): Unit

    Aggregate the statistics of this component's subparts.

    Aggregate the statistics of this component's subparts.

    Definition Classes
    Component
  11. var arrivalT: Double

    The time at which 'this' entity (SimActor) arrived

    The time at which 'this' entity (SimActor) arrived

    Definition Classes
    SimActor
  12. def at: Array[Double]
    Definition Classes
    Locatable
  13. def at_=(at: Array[Double]): Unit
    Definition Classes
    Locatable
  14. def compare(actor2: SimActor): Int

    Compare the activation times of the two actors, 'this' and 'actor2'.

    Compare the activation times of the two actors, 'this' and 'actor2'. Their activation times are used to order them in the director's agenda (a time-based priority queue).

    actor2

    the other actor to compare with this

    Definition Classes
    SimActor → Ordered
  15. def compare(other: PQItem): Int
    Definition Classes
    PQItem
  16. def compareTo(that: SimActor): Int
    Definition Classes
    Ordered → Comparable
  17. def composite: Boolean

    Indicate whether this component is composite, i.e., has subparts.

    Indicate whether this component is composite, i.e., has subparts.

    Definition Classes
    Component
  18. def counts: (Int, Int, Int)

    Return the Coroutine counts.

    Return the Coroutine counts.

    Definition Classes
    Coroutine
  19. def director: Model

    Get the director who controls the play/simulation this component is in.

    Get the director who controls the play/simulation this component is in.

    Definition Classes
    Component
  20. def director_=(director: Model): Unit

    Set this component's director (the controller of the simulation model).

    Set this component's director (the controller of the simulation model).

    director

    the director of the play/simulation

    Definition Classes
    Component
  21. def display(): Unit

    Display 'this' source as a node on the animation canvas.

    Display 'this' source as a node on the animation canvas.

    Definition Classes
    SourceComponent
  22. def durationStat: Statistic

    Return sample statistics for durations for this component (e.g., Time in queue).

    Return sample statistics for durations for this component (e.g., Time in queue).

    Definition Classes
    Component
  23. def equals(that: Any): Boolean
    Definition Classes
    Identifiable → AnyRef → Any
  24. final def flaw(method: String, message: String): Unit
    Definition Classes
    Error
  25. def hashCode(): Int
    Definition Classes
    Identifiable → AnyRef → Any
  26. val id: Int
    Definition Classes
    Identifiable
  27. def initComponent(label: String, loc: Array[Double]): Unit

    Initialize this component (all of its 'var's).

    Initialize this component (all of its 'var's).

    label

    the name of this component

    loc

    the location of this component

    Definition Classes
    Component
  28. def initStats(label: String): Unit

    Initialize this component's statistical collectors.

    Initialize this component's statistical collectors. Sample statistics: all Components. Time-persistent statistics: all except Gate, Source and Sink.

    label

    the name of this component

    Definition Classes
    Component
  29. def interrupt(): Unit

    Interrupt this waiting coroutine.

    Interrupt this waiting coroutine.

    Definition Classes
    Coroutine
  30. def me: String
    Definition Classes
    Identifiable
  31. var mySource: Source

    The indicator of subtype of 'this' entity (SimActor)

    The indicator of subtype of 'this' entity (SimActor)

    Definition Classes
    SimActor
  32. def name: String
    Definition Classes
    Identifiable
  33. def name_=(name: String): Unit
    Definition Classes
    Identifiable
  34. def persistentStat: TimeStatistic

    Return time persistent statistics for value for this component (e.g.

    Return time persistent statistics for value for this component (e.g. Number in queue).

    Definition Classes
    Component
  35. def run(): Unit

    Thread's 'run' method delegates to the 'act' method.

    Thread's 'run' method delegates to the 'act' method. Upon interruption the 'act' method is run again from the beginning.

    Definition Classes
    Coroutine → Runnable
  36. def schedule(delay: Double): Unit

    Schedule a reactivation of 'this' SimActor delay time units in the future.

    Schedule a reactivation of 'this' SimActor delay time units in the future.

    delay

    the time delay before reactivation

    Definition Classes
    SimActor
  37. def simType: String
    Definition Classes
    Identifiable
  38. def start(): Future[_]

    Start this coroutine, i.e., invoke its 'run' -> 'act' method.

    Start this coroutine, i.e., invoke its 'run' -> 'act' method. This function returns a future.

    Definition Classes
    Coroutine
  39. val subpart: ListBuffer[Component]

    List of subparts of the Component (empty for atomic components, nonempty for composites)

    List of subparts of the Component (empty for atomic components, nonempty for composites)

    Definition Classes
    Component
  40. var subtype: Int

    The indicator of subtype of 'this' entity (SimActor)

    The indicator of subtype of 'this' entity (SimActor)

    Definition Classes
    SimActor
  41. def tally(duration: Double): Unit

    Tally the duration (e.g., waiting time) of an activity or delay.

    Tally the duration (e.g., waiting time) of an activity or delay.

    duration

    the time duration

    Definition Classes
    Component
  42. def toString(): String

    Show the SimActors full name and activation time.

    Show the SimActors full name and activation time.

    Definition Classes
    SimActor → PQItem → AnyRef → Any
  43. def trajectory: Double

    Get the current trajectory (along the QCurve) of 'this' SimActor.

    Get the current trajectory (along the QCurve) of 'this' SimActor.

    Definition Classes
    SimActor
  44. def trajectory_=(trajectory: Double): Unit

    Set the value of the trajectory along the QCurve for 'this' SimActor.

    Set the value of the trajectory along the QCurve for 'this' SimActor.

    Definition Classes
    SimActor
  45. def yieldToDirector(quit: Boolean = false): Unit

    Yield control to the director so the director can take the next action.

    Yield control to the director so the director can take the next action.

    quit

    the flag indicating whether this actor is done

    Definition Classes
    SimActor
  46. def yyield(that: Coroutine, quit: Boolean = false): Unit

    Yield control from 'this' to 'that' coroutine.

    Yield control from 'this' to 'that' coroutine.

    that

    the other coroutine to yield control to

    quit

    whether 'this' coroutine is to terminate (true) or wait to be resumed (false)

    Definition Classes
    Coroutine