given_TickLogic_SimulationState

io.github.srs.model.logic.TimeLogic.given_TickLogic_SimulationState

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def tick(s: SimulationState, delta: FiniteDuration): IO[SimulationState]

Updates the simulation state by advancing the elapsed time by the given delta duration.

Updates the simulation state by advancing the elapsed time by the given delta duration.

Value parameters

delta

the duration to advance the elapsed time.

s

the current simulation state.

Attributes

Returns

an IO effect that produces the updated simulation state with the new elapsed time.

Updates the simulation state by changing the simulation speed.

Updates the simulation state by changing the simulation speed.

Value parameters

s

the current simulation state.

speed

the new simulation speed to set.

Attributes

Returns

an IO effect that produces the updated simulation state with the new simulation speed.