io.github.srs.controller.ControllerModule.Controller
Controller trait that defines the interface for the controller.
Type parameters
-
S
-
the type of the state, which must extend ModelModule.State.
Attributes
-
Graph
-
-
Supertypes
-
class Object
trait Matchable
class Any
Members list
Runs the simulation loop, processing events from the queue and updating the state.
Runs the simulation loop, processing events from the queue and updating the state.
Value parameters
-
queue
-
a concurrent queue that holds events to be processed.
-
s
-
the current state of the simulation.
Attributes
-
Returns
-
an IO task that completes when the simulation loop ends.
Starts the controller with the initial state.
Starts the controller with the initial state.
Value parameters
-
initialState
-
the initial state of the simulation.
Attributes