scalation.process

Source

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, Ordered[SimActor], Comparable[SimActor], PQItem, Identity, Error, Signals, Actor, Serializable, Serializable, InputChannel[Any], ActorCanReply, ReplyReactor, ReactorCanReply, Reactor[Any], Combinators, AbstractActor, CanReply[Any, Any], OutputChannel[Any], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. Source
  2. Component
  3. SimActor
  4. Ordered
  5. Comparable
  6. PQItem
  7. Identity
  8. Error
  9. Signals
  10. Actor
  11. Serializable
  12. Serializable
  13. InputChannel
  14. ActorCanReply
  15. ReplyReactor
  16. ReactorCanReply
  17. Reactor
  18. Combinators
  19. AbstractActor
  20. CanReply
  21. OutputChannel
  22. AnyRef
  23. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Source(name: String, director: Model, makeEntity: () ⇒ SimActor, 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

    xy

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

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

    name

    the name of the source

    director

    the director controlling the model

    makeEntity

    the function to make entities of a specified type

    units

    the number of entities to make

    iArrivalTime

    the inter-arrival time distribution

    at

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

Type Members

  1. type Future[+P] = Future[P]

    Definition Classes
    ReactorCanReply → CanReply

Value Members

  1. def !(msg: Any): Unit

    Definition Classes
    ReplyReactor → Reactor → OutputChannel
  2. def !!(msg: Any): Future[Any]

    Definition Classes
    ActorCanReply → ReactorCanReply → CanReply
  3. def !![A](msg: Any, handler: PartialFunction[Any, A]): Future[A]

    Definition Classes
    ActorCanReply → ReactorCanReply → CanReply
  4. final def !=(arg0: AnyRef): Boolean

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

    Definition Classes
    Any
  6. def !?(msec: Long, msg: Any): Option[Any]

    Definition Classes
    ActorCanReply → ReactorCanReply → CanReply
  7. def !?(msg: Any): Any

    Definition Classes
    ActorCanReply → ReactorCanReply → CanReply
  8. final def ##(): Int

    Definition Classes
    AnyRef → Any
  9. def <(that: SimActor): Boolean

    Definition Classes
    Ordered
  10. def <=(that: SimActor): Boolean

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

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

    Definition Classes
    Any
  13. def >(that: SimActor): Boolean

    Definition Classes
    Ordered
  14. def >=(that: SimActor): Boolean

    Definition Classes
    Ordered
  15. def ?: Any

    Definition Classes
    Actor → InputChannel
  16. val DIAM: Double

    Diameter of a token (for animating entities)

    Diameter of a token (for animating entities)

    Definition Classes
    Component
  17. val RAD: Double

    Radius of a token (for animating entities)

    Radius of a token (for animating entities)

    Definition Classes
    Component
  18. val RESUME_ACTOR: String

    Definition Classes
    Signals
  19. val RESUME_DIRECTOR: String

    Definition Classes
    Signals
  20. val RETURN_RESULTS: String

    Definition Classes
    Signals
  21. def accumulate(value: Double, time: Double): Unit

    Accumulate the value (e.

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

    value

    the value to accumulate

    time

    the current time of the observation

    Definition Classes
    Component
  22. def act(): Unit

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

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

    Definition Classes
    SourceSimActor → Reactor
  23. 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
  24. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  25. def clone(): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  26. def compare(sa: SimActor): Int

    Compare the activation times of the two actors.

    Compare the activation times of the two actors.

    Definition Classes
    SimActor → Ordered
  27. 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
  28. def compareTo(that: SimActor): Int

    Definition Classes
    Ordered → Comparable
  29. def continue(): Unit

    Definition Classes
    Combinators
  30. 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
  31. def durationStat: Statistic

    Return sample statistics for durations for this component (e.

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

    Definition Classes
    Component
  32. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  34. def exceptionHandler: PartialFunction[Exception, Unit]

    Attributes
    protected[actors]
    Definition Classes
    Reactor
  35. def exit(): Nothing

    Attributes
    protected[actors]
    Definition Classes
    Actor → Reactor
  36. def exit(reason: AnyRef): Nothing

    Attributes
    protected[actors]
    Definition Classes
    Actor
  37. def finalize(): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  38. 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
  39. def forward(msg: Any): Unit

    Definition Classes
    ReplyReactor → Reactor → OutputChannel
  40. final def getClass(): java.lang.Class[_]

    Definition Classes
    AnyRef → Any
  41. def getState: Value

    Definition Classes
    Actor → ReplyReactor → Reactor
  42. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  43. def id: Int

    Get the id (unique identifier).

    Get the id (unique identifier).

    Definition Classes
    Identity
  44. def initComponent(label: String, loc: Array[Double]): Unit

    Initialize this component (all of its vars).

    Initialize this component (all of its vars).

    label

    the name of this component

    loc

    the location of this component

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

    Initialize this component's statistical collectors.

    Initialize this component's statistical collectors.

    label

    the name of this component

    Definition Classes
    Component
  46. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  47. def link(body: ⇒ Unit): Actor

    Definition Classes
    Actor
  48. def link(to: AbstractActor): AbstractActor

    Definition Classes
    Actor
  49. def loop(body: ⇒ Unit): Unit

    Definition Classes
    Combinators
  50. def loopWhile(cond: ⇒ Boolean)(body: ⇒ Unit): Unit

    Definition Classes
    Combinators
  51. def mailboxSize: Int

    Attributes
    protected[actors]
    Definition Classes
    Reactor
  52. def me: String

    Return the full identity.

    Return the full identity.

    Definition Classes
    Identity
  53. implicit def mkBody[A](body: ⇒ A): Body[A]

    Definition Classes
    Reactor → Combinators
  54. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  57. def nowActing(): Unit

    Set the yetToAct flag to false once a SimActor has acted.

    Set the yetToAct flag to false once a SimActor has acted.

    Definition Classes
    SimActor
  58. def persistentStat: TimeStatistic

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

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

    Definition Classes
    Component
  59. def react(handler: PartialFunction[Any, Unit]): Nothing

    Definition Classes
    Actor → InputChannel → ReplyReactor → Reactor
  60. def reactWithin(msec: Long)(handler: PartialFunction[Any, Unit]): Nothing

    Definition Classes
    Actor → InputChannel → ReplyReactor
  61. def receive[R](f: PartialFunction[Any, R]): R

    Definition Classes
    Actor → InputChannel
  62. def receiveWithin[R](msec: Long)(f: PartialFunction[Any, R]): R

    Definition Classes
    Actor → InputChannel
  63. def receiver: Actor

    Definition Classes
    Reactor → OutputChannel
  64. def reply(msg: Any): Unit

    Attributes
    protected[actors]
    Definition Classes
    ReplyReactor
  65. def restart(): Unit

    Definition Classes
    Reactor
  66. 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
  67. def scheduler: IScheduler

    Attributes
    protected[actors]
    Definition Classes
    Actor → Reactor
  68. def send(msg: Any, replyTo: OutputChannel[Any]): Unit

    Definition Classes
    Reactor → OutputChannel
  69. def sender: OutputChannel[Any]

    Attributes
    protected[actors]
    Definition Classes
    ReplyReactor
  70. def setAt(loc: Array[Double]): Unit

    Set the location of this component.

    Set the location of this component.

    loc

    the location of this component

    Definition Classes
    Component
  71. def setDirector(dir: Model): Unit

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

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

    dir

    the director of the play/simulation

    Definition Classes
    Component
  72. def setName(label: String): Unit

    Set the name.

    Set the name.

    label

    the name to assign

    Definition Classes
    Identity
  73. def simType: String

    Get the type of the simulation object.

    Get the type of the simulation object.

    Definition Classes
    Identity
  74. def start(): Actor

    Definition Classes
    Actor → Reactor
  75. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Tally the duration (e.

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

    duration

    the time duration

    Definition Classes
    Component
  77. def time: Double

    Return the time on the director's clock

    Return the time on the director's clock

    Definition Classes
    SimActor
  78. def toString(): String

    Show the SimActor's full name and activation time.

    Show the SimActor's full name and activation time.

    Definition Classes
    SimActorPQItem → AnyRef → Any
  79. var trapExit: Boolean

    Definition Classes
    Actor
  80. def unlink(from: AbstractActor): Unit

    Definition Classes
    Actor
  81. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()
  84. def yetToAct: Boolean

    Return whether this actor has yet to act.

    Return whether this actor has yet to act.

    Definition Classes
    SimActor
  85. 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

Inherited from Component

Inherited from SimActor

Inherited from Ordered[SimActor]

Inherited from Comparable[SimActor]

Inherited from PQItem

Inherited from Identity

Inherited from Error

Inherited from Signals

Inherited from Actor

Inherited from Serializable

Inherited from Serializable

Inherited from InputChannel[Any]

Inherited from ActorCanReply

Inherited from ReplyReactor

Inherited from ReactorCanReply

Inherited from Reactor[Any]

Inherited from Combinators

Inherited from AbstractActor

Inherited from CanReply[Any, Any]

Inherited from OutputChannel[Any]

Inherited from AnyRef

Inherited from Any