SimulationEngine
Core engine for the flood simulation. Responsible for computing state changes, checking simulation termination conditions, and generating initial simulation states.
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class DefaultSimulationEngine
Members list
Value members
Abstract methods
Computes the next state of the simulation based on the current state.
Computes the next state of the simulation based on the current state.
Value parameters
- currentState
-
the current state of the simulation
Attributes
- Returns
-
the next state of the simulation after one time step
Generates the initial state of the simulation.
Generates the initial state of the simulation.
Attributes
- Returns
-
the starting state for the simulation
Checks if the simulation has reached its termination condition.
Checks if the simulation has reached its termination condition.
Value parameters
- state
-
the current state to check
Attributes
- Returns
-
true if the simulation should terminate
Parameters used to configure the simulation.
Parameters used to configure the simulation.
Attributes
Regenerates the ground grid while preserving other simulation elements.
Regenerates the ground grid while preserving other simulation elements.
Value parameters
- oldState
-
the current state to modify
Attributes
- Returns
-
a new state with a regenerated ground grid