scalation.process

SimActor

abstract class SimActor extends Actor with Signals with PQItem with Ordered[SimActor]

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 therefore executes in its own thread.

Linear Supertypes
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
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. SimActor
  2. Ordered
  3. Comparable
  4. PQItem
  5. Identity
  6. Error
  7. Signals
  8. Actor
  9. Serializable
  10. Serializable
  11. InputChannel
  12. ActorCanReply
  13. ReplyReactor
  14. ReactorCanReply
  15. Reactor
  16. Combinators
  17. AbstractActor
  18. CanReply
  19. OutputChannel
  20. AnyRef
  21. Any
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] = 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
    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 RESUME_ACTOR: String

    Definition Classes
    Signals
  17. val RESUME_DIRECTOR: String

    Definition Classes
    Signals
  18. val RETURN_RESULTS: String

    Definition Classes
    Signals
  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. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  21. def clone(): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  22. 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
  23. 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
  24. def compareTo(that: SimActor): Int

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

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

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

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

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

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

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

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

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

    Definition Classes
    AnyRef → Any
  35. def getState: Value

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

    Definition Classes
    AnyRef → Any
  37. def id: Int

    Get the id (unique identifier).

    Get the id (unique identifier).

    Definition Classes
    Identity
  38. final def isInstanceOf[T0]: Boolean

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

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

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

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

    Definition Classes
    Combinators
  43. def mailboxSize: Int

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

    Return the full identity.

    Return the full identity.

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

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

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

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

    Definition Classes
    AnyRef
  49. def nowActing(): Unit

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

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

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

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

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

    Definition Classes
    Actor → InputChannel
  54. def receiver: Actor

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

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

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

  58. def scheduler: IScheduler

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

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

    Attributes
    protected[actors]
    Definition Classes
    ReplyReactor
  61. def setName(label: String): Unit

    Set the name.

    Set the name.

    label

    the name to assign

    Definition Classes
    Identity
  62. def simType: String

    Get the type of the simulation object.

    Get the type of the simulation object.

    Definition Classes
    Identity
  63. def start(): Actor

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

    Definition Classes
    AnyRef
  65. def time: Double

    Return the time on the director's clock

  66. 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
  67. var trapExit: Boolean

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

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

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

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

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

    Return whether this actor has yet to act.

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