SimulationStore

floodsim.model.store.SimulationStore
See theSimulationStore companion object
sealed trait SimulationStore

Represents a store for simulation state and timing information. Provides methods to update the simulation state and timer.

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def updateSimulationState(f: (Option[SimulationState]) => Option[SimulationState]): Unit

Updates the simulation state by applying a transformation function.

Updates the simulation state by applying a transformation function.

Value parameters

f

the function to transform the current state to a new state

Attributes

def updateTimer(f: Timer => Timer): Unit

Updates the simulation timer by applying a transformation function.

Updates the simulation timer by applying a transformation function.

Value parameters

f

the function to transform the current timer to a new timer

Attributes