io.github.srs.model.ModelModule.Model
Trait representing the core model logic for updating the simulation state.
Type parameters
-
S
-
the type of the simulation state, which must extend State.
Attributes
-
Graph
-
-
Supertypes
-
class Object
trait Matchable
class Any
Members list
Updates the state of the simulation using the provided function.
Updates the state of the simulation using the provided function.
Value parameters
-
f
-
the function that takes the current state and returns a new state wrapped in a cats.effect.IO.
-
s
-
the current state of the simulation.
Attributes
-
Returns
-
the updated state wrapped in a cats.effect.IO.
Updates the state of the simulation using the provided function.
Updates the state of the simulation using the provided function.
Value parameters
-
f
-
the function that takes the current state and returns a new state.
-
s
-
the current state of the simulation.
Attributes
-
Returns
-
the updated state.