StopLogic

io.github.srs.model.logic.StopLogic
trait StopLogic[S <: State]

Logic for handling simulation status changes: stop.

Type parameters

S

the type of the simulation state.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def stop(s: S): IO[S]

Stops the simulation by updating its status.

Stops the simulation by updating its status.

Value parameters

s

the current simulation state.

Attributes

Returns

an IO effect that produces the updated simulation state with status set to SimulationStatus.STOPPED.