scalation.process

SimActor

Related Doc: package process

abstract class SimActor extends Coroutine 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, Coroutine, Runnable, 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. Coroutine
  9. Runnable
  10. AnyRef
  11. 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

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
    SimActorCoroutine

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

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

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

    Definition Classes
    AnyRef → Any
  6. def >(that: SimActor): Boolean

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

    Definition Classes
    Ordered
  8. 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
  9. def arrivalT: Double

    Return this actor's arrival/(re)-creation time.

  10. final def asInstanceOf[T0]: T0

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

    Return where this object is at (its location).

    Return where this object is at (its location).

    Definition Classes
    Locatable
  12. def clone(): AnyRef

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

    Definition Classes
    Ordered → Comparable
  16. def counts: (Int, Int, Int)

    Return the Coroutine counts.

    Return the Coroutine counts.

    Definition Classes
    Coroutine
  17. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  18. def equals(that: Any): Boolean

    Determine whether Identifiable object 'this' equals Identifiable object 'that'.

    Determine whether Identifiable object 'this' equals Identifiable object 'that'. Works since 'id' is unique for all Identifiable objects.

    Definition Classes
    Identifiable → AnyRef → Any
  19. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  20. 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
  21. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  22. def hashCode(): Int

    Return the hashCode as the unique id.

    Return the hashCode as the unique id.

    Definition Classes
    Identifiable → AnyRef → Any
  23. def id: Int

    Get the id (unique identifier).

    Get the id (unique identifier).

    Definition Classes
    Identifiable
  24. def interrupt(): Unit

    Interrupt this waiting zombie coroutine.

    Interrupt this waiting zombie coroutine.

    Definition Classes
    Coroutine
  25. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  26. def isZombie: Boolean

    Return whether this coroutine is a zombie.

    Return whether this coroutine is a zombie.

    Definition Classes
    Coroutine
  27. def me: String

    Return the full identity.

    Return the full identity.

    Definition Classes
    Identifiable
  28. def mySource: Source

    Return the sim-actor's source.

  29. def name: String

    Get the name.

    Get the name.

    Definition Classes
    Identifiable
  30. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  33. 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
  34. 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

  35. def setArrivalT(aTime: Double): Unit

    Set this actor's arrival/(re)-creation time.

  36. 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
  37. def setMySource(mySource: Source): Unit

    Set the sim-actor's source.

  38. def setName(label: String): Unit

    Set the name.

    Set the name.

    label

    the name to assign

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

    Set the sim-actor's subtype.

    Set the sim-actor's subtype.

    subtype

    the sim-actors subtype

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

  41. def simType: String

    Get the type of the simulation object.

    Get the type of the simulation object.

    Definition Classes
    Identifiable
  42. def start(): Unit

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

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

    Definition Classes
    Coroutine
  43. def subtype: Int

    Return the sim-actor's subtype.

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

    Definition Classes
    AnyRef
  45. 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
  46. def trajectory: Double

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

  47. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  50. 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

  51. 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
  52. def zombify(): Unit

    Zombify this coroutine.

    Zombify this coroutine.

    Definition Classes
    Coroutine

Inherited from Locatable

Inherited from Ordered[SimActor]

Inherited from Comparable[SimActor]

Inherited from PQItem

Inherited from Identifiable

Inherited from Error

Inherited from Coroutine

Inherited from Runnable

Inherited from AnyRef

Inherited from Any

Ungrouped