case class Engine(spec: Interpreter) extends Product with Serializable
Class for a TeSSLa monitor.
Intended usage is not to directly instantiate an Engine but to use the compile function instead. See usage example of JavaApi for details.
An Engine object can be used to receive events from input streams (see provide) and to attach listeners for output streams (see addListener)
- spec
The interpreter of the base specification
- Alphabetic
- By Inheritance
- Engine
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new Engine(spec: Interpreter)
- spec
The interpreter of the base specification
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def addListener(listener: EngineListener): Unit
Add a listener for all output events.
Add a listener for all output events. See EngineListener for details. Previously added listeners remain active.
- listener
The listener to be added
- 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()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- 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()
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- def provide(stream: String, value: Any): Boolean
Provide an input event for an input stream of any type.
Provide an input event for an input stream of any type.
- stream
Name of the input stream
- value
The value of the input event
- returns
Boolean indicating if the event generation succeeded or if an error occurred.
- def provide(stream: String): Boolean
Provide an input event for an input stream of type Unit.
Provide an input event for an input stream of type Unit.
- stream
Name of the input stream
- returns
Boolean indicating if the event generation succeeded or if an error occurred.
- def provide(stream: String, value: String): Boolean
Provide an input event for an input stream of type String.
Provide an input event for an input stream of type String.
- stream
Name of the input stream
- value
The value of the input event
- returns
Boolean indicating if the event generation succeeded or if an error occurred.
- def provide(stream: String, value: Boolean): Boolean
Provide an input event for an input stream of type Bool.
Provide an input event for an input stream of type Bool.
- stream
Name of the input stream
- value
The value of the input event
- returns
Boolean indicating if the event generation succeeded or if an error occurred.
- def provide(stream: String, value: BigInt): Boolean
Provide an input event for an input stream of type Int.
Provide an input event for an input stream of type Int. Use this variation if you want to pass a BigInt value.
- stream
Name of the input stream
- value
The value of the input event
- returns
Boolean indicating if the event generation succeeded or if an error occurred.
- def provide(stream: String, value: Int): Boolean
Provide an input event for an input stream of type Int.
Provide an input event for an input stream of type Int.
- stream
Name of the input stream
- value
The value of the input event
- returns
Boolean indicating if the event generation succeeded or if an error occurred.
- def setTime(time: Time): Unit
Propagates all inputs and progresses time to the given timestamp.
Propagates all inputs and progresses time to the given timestamp. After calling this function all outputs until time will be generated and printed. All subsequent calls provide will then rely to this timestamp.
Note: Only call this function with strictly increasing arguments.
Use this variant of the method if you require BigInt to represent your timestamps.
- time
The timestamp until which all outputs shall be processed.
- def setTime(time: Int): Unit
Propagates all inputs and progresses time to the given timestamp.
Propagates all inputs and progresses time to the given timestamp. After calling this function all outputs until time will be generated and printed. All subsequent calls provide will then rely to this timestamp.
Note: Only call this function with strictly increasing arguments.
- time
The timestamp until which all outputs shall be processed.
- val spec: Interpreter
- def step(): Unit
Propagates all inputs without progressing time.
Propagates all inputs without progressing time. Can only be called once per point in time. No more input values can be provided for the current time afterwards.
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- 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])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated