scalation.process

SimActor

abstract class SimActor extends Actor with Signifiable with PQItem with Ordered[SimActor] with Locatable

The SimActor abstract class represents entities that are active in the model. The 'act' abstract method, which specifies entity behavior, must be defined for each subclass. Each SimActor extends Scala's Actor class and may be roughly thought of as running in its own thread.

Linear Supertypes
Locatable, Ordered[SimActor], Comparable[SimActor], PQItem, Identifiable, Error, Signifiable, Actor, ReplyReactor, InternalActor, Serializable, Serializable, InputChannel[Any], ActorCanReply, InternalReplyReactor, ReactorCanReply, Reactor[Any], Combinators, AbstractActor, CanReply[Any, Any], OutputChannel[Any], AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. SimActor
  2. Locatable
  3. Ordered
  4. Comparable
  5. PQItem
  6. Identifiable
  7. Error
  8. Signifiable
  9. Actor
  10. ReplyReactor
  11. InternalActor
  12. Serializable
  13. Serializable
  14. InputChannel
  15. ActorCanReply
  16. InternalReplyReactor
  17. ReactorCanReply
  18. Reactor
  19. Combinators
  20. AbstractActor
  21. CanReply
  22. OutputChannel
  23. AnyRef
  24. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SimActor(name: String, director: Model)

    name

    the name of the entity/SimActor

    director

    the director controlling the model

Type Members

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

    Definition Classes
    ReactorCanReply → CanReply

Abstract Value Members

  1. abstract def act(): Unit

    The abstract method, act, is defined in each subclass to provide specific behavior.

    The abstract method, act, is defined in each subclass to provide specific behavior.

    Definition Classes
    SimActor → Reactor

Concrete Value Members

  1. def !(msg: Any): Unit

    Definition Classes
    InternalReplyReactor → 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
    InternalActor → InputChannel
  16. val RESUME_ACTOR: String

    Signal for resuming an actor

    Signal for resuming an actor

    Attributes
    protected
    Definition Classes
    Signifiable
  17. val RESUME_DIRECTOR: String

    Signal for resuming the director

    Signal for resuming the director

    Attributes
    protected
    Definition Classes
    Signifiable
  18. val RETURN_RESULTS: String

    Signal indicating results returned

    Signal indicating results returned

    Attributes
    protected
    Definition Classes
    Signifiable
  19. 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
  20. val arrivalT: Double

    The time at which the entity/sim-actor arrived

  21. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  22. def at: Array[Double]

    Return where this object is at (its location).

    Return where this object is at (its location).

    Definition Classes
    Locatable
  23. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. def compare(actor2: SimActor): Int

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

    Compare the activation times of the two actors, 'this' and 'actror2'. 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
  25. 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
  26. def compareTo(that: SimActor): Int

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

    Definition Classes
    Combinators
  28. final def eq(arg0: AnyRef): Boolean

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

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

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

    Attributes
    protected[scala.actors]
    Definition Classes
    InternalActor → Reactor
  32. def exit(reason: AnyRef): Nothing

    Attributes
    protected[scala.actors]
    Definition Classes
    InternalActor
  33. def finalize(): Unit

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

    Definition Classes
    InternalReplyReactor → Reactor → OutputChannel
  36. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  37. def getState: scala.actors.Actor.State.Value

    Definition Classes
    InternalActor → InternalReplyReactor → Reactor
  38. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  39. def id: Int

    Get the id (unique identifier).

    Get the id (unique identifier).

    Definition Classes
    Identifiable
  40. def internalSender: OutputChannel[Any]

    Attributes
    protected[scala.actors]
    Definition Classes
    InternalReplyReactor
  41. final def isInstanceOf[T0]: Boolean

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

    Definition Classes
    InternalActor
  43. def link(to: ActorRef): ActorRef

    Definition Classes
    InternalActor
  44. def link(to: AbstractActor): AbstractActor

    Definition Classes
    InternalActor
  45. def loop(body: ⇒ Unit): Unit

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

    Definition Classes
    Combinators
  47. def mailboxSize: Int

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

    Return the full identity.

    Return the full identity.

    Definition Classes
    Identifiable
  49. implicit def mkBody[A](body: ⇒ A): Body[A]

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

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

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

    Definition Classes
    AnyRef
  53. def nowActing(): Unit

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

  54. def react(handler: PartialFunction[Any, Unit]): Nothing

    Definition Classes
    InternalActor → InputChannel → InternalReplyReactor → Reactor
  55. def reactWithin(msec: Long)(handler: PartialFunction[Any, Unit]): Nothing

    Definition Classes
    InternalActor → InputChannel → InternalReplyReactor
  56. def receive[R](f: PartialFunction[Any, R]): R

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

    Definition Classes
    InternalActor → InputChannel
  58. def receiver: Actor

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

    Attributes
    protected[scala.actors]
    Definition Classes
    InternalReplyReactor
  60. def restart(): Unit

    Definition Classes
    Reactor
  61. 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

  62. def scheduler: IScheduler

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

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

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

    Set the location of this object.

    Set the location of this object.

    loc

    the location of this object

    Definition Classes
    Locatable
  66. def setName(label: String): Unit

    Set the name.

    Set the name.

    label

    the name to assign

    Definition Classes
    Identifiable
  67. def setSubtype(subtype: Int): Unit

    Set the sim-actor's subtype.

    Set the sim-actor's subtype.

    subtype

    the sim-actors subtype

  68. def setTrajectory(t: Double): Unit

    Set the value of the trajectory along the curve for this SimActor.

    Set the value of the trajectory along the curve for this SimActor.

    t

    the new trajectory for the SimActor

  69. def simType: String

    Get the type of the simulation object.

    Get the type of the simulation object.

    Definition Classes
    Identifiable
  70. def start(): Actor

    Definition Classes
    Actor → InternalActor → Reactor
  71. def subtype: Int

    Return the sim-actor's subtype.

  72. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  73. def time: Double

    Return the time on the director's clock

  74. 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
  75. def trajectory: Double

    Return the current trajectory (along the Qcurve) of this SimActor.

  76. def trapExit: Boolean

    Definition Classes
    InternalActor
  77. def trapExit_=(value: Boolean): Unit

    Definition Classes
    InternalActor
  78. def unlink(from: ActorRef): Unit

    Definition Classes
    InternalActor
  79. def unlink(from: AbstractActor): Unit

    Definition Classes
    InternalActor
  80. final def wait(): Unit

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

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

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

    Return whether this actor has yet to act.

  84. 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

Inherited from Locatable

Inherited from Ordered[SimActor]

Inherited from Comparable[SimActor]

Inherited from PQItem

Inherited from Identifiable

Inherited from Error

Inherited from Signifiable

Inherited from Actor

Inherited from ReplyReactor

Inherited from InternalActor

Inherited from Serializable

Inherited from Serializable

Inherited from InputChannel[Any]

Inherited from ActorCanReply

Inherited from InternalReplyReactor

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

Ungrouped