class StochasticProcessChain extends Serializable
A simulation is formed by a chain of stochastic processes
It should end with a Terminate process.
- See also
se.sics.kompics.sl.simulator for an example
- Alphabetic
- By Inheritance
- StochasticProcessChain
- Serializable
- AnyRef
- Any
- by chainToScenario
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new StochasticProcessChain()
Type Members
- case class AfterStart(time: Long) extends Connector with Product with Serializable
A link that activates some time after the start of a process
- case class AfterTermination(time: Long) extends Connector with Product with Serializable
A link that activates some time after a process has terminated
- case class AtTime(time: Long) extends Connector with Product with Serializable
A link that activates at a particular time in the simulation
- sealed trait Connector extends AnyRef
Linking objects in the process chain DSL
- case class TimeLink(time: Duration) extends Product with Serializable
A DSL object that indicates that a time connector is expected next
A DSL object that indicates that a time connector is expected next
- time
the time passed to the time connector
- case class TimeLink2(time: Duration) extends Product with Serializable
A DSL object that indicates that a concrete time connector is expected next
A DSL object that indicates that a concrete time connector is expected next
- time
the time passed to the time connector
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- def +(other: String): String
- Implicit
- This member is added by an implicit conversion from StochasticProcessChain toany2stringadd[StochasticProcessChain] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
- def ->[B](y: B): (StochasticProcessChain, B)
- Implicit
- This member is added by an implicit conversion from StochasticProcessChain toArrowAssoc[StochasticProcessChain] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def andThen(time: Duration): TimeLink
Link the next process by time
Link the next process by time
- time
the time value to use for the link
- returns
a DSL object to indicate how interpret the time
- def andThenAt(time: Duration): TimeLink2
Link the next process at a time time
Link the next process at a time time
- time
the time value to use for the link
- returns
a DSL object to indicate how interpret the time
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- def ensuring(cond: (StochasticProcessChain) => Boolean, msg: => Any): StochasticProcessChain
- Implicit
- This member is added by an implicit conversion from StochasticProcessChain toEnsuring[StochasticProcessChain] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: (StochasticProcessChain) => Boolean): StochasticProcessChain
- Implicit
- This member is added by an implicit conversion from StochasticProcessChain toEnsuring[StochasticProcessChain] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean, msg: => Any): StochasticProcessChain
- Implicit
- This member is added by an implicit conversion from StochasticProcessChain toEnsuring[StochasticProcessChain] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean): StochasticProcessChain
- Implicit
- This member is added by an implicit conversion from StochasticProcessChain toEnsuring[StochasticProcessChain] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from StochasticProcessChain toStringFormat[StochasticProcessChain] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @inline()
- final def generateEventList(): LinkedList[StochasticSimulatorEvent]
- Implicit
- This member is added by an implicit conversion from StochasticProcessChain toSimulationScenario performed by method chainToScenario in se.sics.kompics.sl.simulator.
- Definition Classes
- SimulationScenario
- def get(): SimulationScenario
Produce an actual SimulationScenario from the process chain
Produce an actual SimulationScenario from the process chain
Converts the Scala DSL process chain into a Kompics Java SimulationScenario for execution.
Scenarios can be executed by calling simulate on them.
- returns
the new scenario
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def inParallel(parallelProcs: StochasticProcess*): StochasticProcessChain
Execute multiple processes in parallel
Execute multiple processes in parallel
- parallelProcs
the processes to eexecute
- returns
the process chain itself
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def simulate(arg0: Class[_ <: kompics.ComponentDefinition], arg1: Translator): Unit
- Implicit
- This member is added by an implicit conversion from StochasticProcessChain toSimulationScenario performed by method chainToScenario in se.sics.kompics.sl.simulator.
- Definition Classes
- SimulationScenario
- final def simulate(arg0: Class[_ <: kompics.ComponentDefinition], arg1: Boolean): Unit
- Implicit
- This member is added by an implicit conversion from StochasticProcessChain toSimulationScenario performed by method chainToScenario in se.sics.kompics.sl.simulator.
- Definition Classes
- SimulationScenario
- final def simulate(arg0: Class[_ <: kompics.ComponentDefinition]): Unit
- Implicit
- This member is added by an implicit conversion from StochasticProcessChain toSimulationScenario performed by method chainToScenario in se.sics.kompics.sl.simulator.
- Definition Classes
- SimulationScenario
- def startWith(sp: StochasticProcess): StochasticProcessChain
The first process in the chain
The first process in the chain
- sp
the process that comes first in the chain
- returns
the process chain itself
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- object InParallel extends Connector with Product with Serializable
A link that activates multiple processes in parallel
- object Start extends Connector with Product with Serializable
The beginning of a chain
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated @deprecated
- Deprecated
(Since version ) see corresponding Javadoc for more information.
- def →[B](y: B): (StochasticProcessChain, B)
- Implicit
- This member is added by an implicit conversion from StochasticProcessChain toArrowAssoc[StochasticProcessChain] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use
->
instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.