Packages

abstract class PiSimulation extends MutexExecutor with AsyncSimulation with FutureTasks

Linear Supertypes
FutureTasks, AsyncSimulation, Simulation, SimulationRef, MutexExecutor, SimplePiObservable[Int], PiPublisher[Int], PiObservable[Int], ProcessExecutor[Int], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. PiSimulation
  2. FutureTasks
  3. AsyncSimulation
  4. Simulation
  5. SimulationRef
  6. MutexExecutor
  7. SimplePiObservable
  8. PiPublisher
  9. PiObservable
  10. ProcessExecutor
  11. AnyRef
  12. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new PiSimulation(name: String, manager: Manager)(implicit executionContext: ExecutionContext)

Type Members

  1. type Callback = (Try[(TaskInstance, Long)]) ⇒ Unit
    Definition Classes
    AsyncSimulation
  2. case class Switch(name: String) extends PiSwitch with Product with Serializable
    Definition Classes
    SimplePiObservable

Abstract Value Members

  1. abstract def args: Seq[Any]
  2. abstract def rootProcess: PiProcess

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from PiSimulation to any2stringadd[PiSimulation] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (PiSimulation, B)
    Implicit
    This member is added by an implicit conversion from PiSimulation to ArrowAssoc[PiSimulation] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. def abort(ids: UUID*): Unit
    Definition Classes
    AsyncSimulation → Simulation
  7. val aborted: HashSet[UUID]
    Attributes
    protected
    Definition Classes
    Simulation
  8. def ack(taskIDs: Seq[UUID]): Unit
    Definition Classes
    Simulation
  9. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  10. def call[H <: PiEventHandler[Int]](instance: PiInstance[_], factory: PiEventHandlerFactory[Int, H]): Future[H]

    A init ; start sequence that gives us a chance to subscribe a listener that is specific to this execution.

    A init ; start sequence that gives us a chance to subscribe a listener that is specific to this execution. A new ID will be generated for the PiInstance to ensure freshness.

    instance

    The PiInstance to be executed

    factory

    A PiEventHandlerFactory which generates PiEventHandler's for a given ID

    returns

    A Future with the PiEventHandler that was generated

    Definition Classes
    ProcessExecutor
  11. def call[H <: PiEventHandler[Int]](process: PiProcess, args: Seq[Any], factory: PiEventHandlerFactory[Int, H]): Future[H]

    A init ; start sequence that gives us a chance to subscribe a listener that is specific to this execution.

    A init ; start sequence that gives us a chance to subscribe a listener that is specific to this execution.

    process

    The (atomic or composite) PiProcess to be executed

    args

    The (real) arguments to be passed to the process

    factory

    A PiEventHandlerFactory which generates PiEventHandler's for a given ID

    returns

    A Future with the PiEventHandler that was generated

    Definition Classes
    ProcessExecutor
  12. def call(instance: PiInstance[_]): Future[Int]

    A simple init ; start sequence when we do not need any even listeners.

    A simple init ; start sequence when we do not need any even listeners. A new ID will be generated for the PiInstance to ensure freshness.

    instance

    The PiInstance to be executed

    returns

    A Future with the ID corresponding to this execution

    Definition Classes
    ProcessExecutor
  13. def call(process: PiProcess, args: Seq[Any]): Future[Int]

    A simple init ; start sequence when we do not need any even listeners.

    A simple init ; start sequence when we do not need any even listeners.

    process

    The (atomic or composite) PiProcess to be executed

    args

    The (real) arguments to be passed to the process

    returns

    A Future with the ID corresponding to this execution

    Definition Classes
    ProcessExecutor
  14. def callback(f: (TaskInstance, Long) ⇒ Unit): Callback
    Definition Classes
    AsyncSimulation
  15. def clear(): Unit
    Attributes
    protected
    Definition Classes
    Simulation
  16. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  17. def complete(task: TaskInstance, time: Long): Unit
    Definition Classes
    AsyncSimulation → Simulation
  18. def completed(time: Long, tasks: Seq[TaskInstance]): Unit
    Definition Classes
    PiSimulation → Simulation → SimulationRef
  19. var ctr: Int
    Definition Classes
    MutexExecutor
  20. def done(result: Try[Any]): Unit
    Definition Classes
    Simulation
  21. def ensuring(cond: (PiSimulation) ⇒ Boolean, msg: ⇒ Any): PiSimulation
    Implicit
    This member is added by an implicit conversion from PiSimulation to Ensuring[PiSimulation] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  22. def ensuring(cond: (PiSimulation) ⇒ Boolean): PiSimulation
    Implicit
    This member is added by an implicit conversion from PiSimulation to Ensuring[PiSimulation] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  23. def ensuring(cond: Boolean, msg: ⇒ Any): PiSimulation
    Implicit
    This member is added by an implicit conversion from PiSimulation to Ensuring[PiSimulation] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  24. def ensuring(cond: Boolean): PiSimulation
    Implicit
    This member is added by an implicit conversion from PiSimulation to Ensuring[PiSimulation] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  25. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  26. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  27. def execute(instance: PiInstance[_]): Future[Any]

    Executes a PiInstance with a PromiseHandler A new ID will be generated for the PiInstance to ensure freshness.

    Executes a PiInstance with a PromiseHandler A new ID will be generated for the PiInstance to ensure freshness.

    returns

    A Future with the result of the executed process

    Definition Classes
    ProcessExecutor
  28. def execute(process: PiProcess, args: Seq[Any]): Future[Any]

    Executes a process with a PromiseHandler

    Executes a process with a PromiseHandler

    returns

    A Future with the result of the executed process

    Definition Classes
    ProcessExecutor
  29. implicit val executionContext: ExecutionContext
  30. def fail(exception: Throwable): Unit
    Definition Classes
    Simulation
  31. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  32. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from PiSimulation to StringFormat[PiSimulation] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  33. def futureTask(t: Task): Future[(TaskInstance, Long)]
    Definition Classes
    FutureTasks
  34. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  35. def getLookahead(): Lookahead
    Definition Classes
    Simulation
  36. def getProcesses(): Seq[PiProcess]
  37. def handleThread(i: PiInstance[Int])(ref: Int, f: PiFuture): Boolean
    Definition Classes
    MutexExecutor
  38. val handlers: Map[String, PiEventHandler[Int]]
    Attributes
    protected
    Definition Classes
    SimplePiObservable
  39. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  40. def init(instance: PiInstance[_]): Future[Int]

    Initializes a PiInstance for a process execution.

    Initializes a PiInstance for a process execution. A new ID will be generated for the PiInstance to ensure freshness. This is always and only invoked before a start, hence why it is protected. This separation gives a chance to PiEventHandlers to subscribe before execution starts.

    instance

    The PiInstance to be executed

    returns

    A Future with the new unique ID that was generated

    Attributes
    protected
    Definition Classes
    MutexExecutorProcessExecutor
  41. def init(process: PiProcess, args: Seq[PiObject]): Future[Int]

    Initializes a PiProcess call for a process execution.

    Initializes a PiProcess call for a process execution. This is always and only invoked before a start, hence why it is protected. This separation gives a chance to PiEventHandlers to subscribe before execution starts.

    process

    The (atomic or composite) PiProcess to be executed

    args

    The PiObject arguments to be passed to the process

    returns

    A Future with the new unique ID that was generated

    Attributes
    protected
    Definition Classes
    ProcessExecutor
  42. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  43. val manager: Manager
    Attributes
    protected
    Definition Classes
    PiSimulation → Simulation
  44. val name: String
    Definition Classes
    PiSimulation → SimulationRef
  45. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  46. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  47. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  48. def postResult(id: Int, ref: Int, res: PiObject): Unit
    Definition Classes
    MutexExecutor
  49. def processResuming(process: String): Unit
  50. def processWaiting(process: String): Unit
  51. val procsWaiting: Queue[String]
  52. def publish(evt: PiEvent[Int]): Unit
    Definition Classes
    PiSimulationSimplePiObservablePiPublisher
  53. def ready(): Unit
    Definition Classes
    Simulation
  54. def readyCheck(): Unit
    Attributes
    protected
  55. def run(): Unit
    Definition Classes
    PiSimulation → SimulationRef
  56. final def run(id: Int, f: (PiInstance[Int]) ⇒ PiInstance[Int]): Unit
    Definition Classes
    MutexExecutor
  57. def simWait(): Unit
    Definition Classes
    Simulation
  58. def simulate[T](iname: String, gen: Task, result: T): Future[T]
  59. def simulate[T](iname: String, gen: Task, resultFun: (TaskInstance, Long) ⇒ T): Future[T]
  60. val sources: Map[UUID, String]
  61. def start(id: Int): Unit

    Starts the execution of an initialized PiInstance.

    Starts the execution of an initialized PiInstance. This is always and only invoked after an init, hence why it is protected. This separation gives a chance to PiEventHandlers to subscribe before execution starts.

    id

    The ID of the instance to start executing

    Definition Classes
    MutexExecutorProcessExecutor
  62. def stop(): Unit
    Definition Classes
    AsyncSimulation → SimulationRef
  63. var store: PiInstanceStore[Int]
    Definition Classes
    MutexExecutor
  64. def subscribe(handler: PiEventHandler[Int]): Future[PiSwitch]

    Subscribes a com.workflowfm.pew.stream.PiEventHandler to observe.

    handler

    the handler to subscribe

    returns

    the com.workflowfm.pew.stream.PiSwitch that allows us to stop/unsubscribe the subscribed handler

    Definition Classes
    SimplePiObservablePiObservable
  65. def succeed(result: Any): Unit
    Definition Classes
    Simulation
  66. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  67. def task(t: Task, callback: Callback): Unit
    Definition Classes
    AsyncSimulation
  68. def task(t: Task): Unit
    Definition Classes
    Simulation
  69. val tasks: Map[UUID, Callback]
    Attributes
    protected
    Definition Classes
    AsyncSimulation
  70. val tasksToAdd: Queue[Task]
    Attributes
    protected
    Definition Classes
    Simulation
  71. def toString(): String
    Definition Classes
    AnyRef → Any
  72. def unsubscribe(handlerName: String): Future[Boolean]
    Definition Classes
    SimplePiObservable
  73. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  74. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  75. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  76. val waiting: HashSet[UUID]
    Attributes
    protected
    Definition Classes
    Simulation
  77. def [B](y: B): (PiSimulation, B)
    Implicit
    This member is added by an implicit conversion from PiSimulation to ArrowAssoc[PiSimulation] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from FutureTasks

Inherited from AsyncSimulation

Inherited from Simulation

Inherited from SimulationRef

Inherited from MutexExecutor

Inherited from SimplePiObservable[Int]

Inherited from PiPublisher[Int]

Inherited from PiObservable[Int]

Inherited from ProcessExecutor[Int]

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from PiSimulation to any2stringadd[PiSimulation]

Inherited by implicit conversion StringFormat from PiSimulation to StringFormat[PiSimulation]

Inherited by implicit conversion Ensuring from PiSimulation to Ensuring[PiSimulation]

Inherited by implicit conversion ArrowAssoc from PiSimulation to ArrowAssoc[PiSimulation]

Ungrouped