Controller

svsim.Simulation.Controller
final class Controller

Attributes

Note

Methods in this class and Simulation.Port are somewhat lazy in their execution. Specifically, methods returning Unit neither flush the command buffer, nor do they actively read from the message buffer. Only commands which return a value will wait to return until the simulation has progressed to the point where the value is available. This can improve performance by essentially enabling batching of both commands and messages. If you want to ensure that all commands have been sent to the simulation executable, you can call completeInFlightCommands().

Source
Simulation.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

Attributes

Source
Simulation.scala
def port(name: String): Port

Attributes

Source
Simulation.scala
def readLog(): String

Attributes

Source
Simulation.scala
def run(timesteps: Int): Unit | Queue[PartialFunction[Message, Unit]]

Attributes

Source
Simulation.scala
def setTraceEnabled(enabled: Boolean): Unit

Attributes

Source
Simulation.scala