SimulationListener
Listener interface for receiving simulation lifecycle and state change events.
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class SimulationPanel
Members list
Value members
Abstract methods
Notifies that a specific cell type has changed at the given coordinate.
Notifies that a specific cell type has changed at the given coordinate.
Value parameters
- cellType
-
the new cell type at the coordinate
- coordinate
-
grid position of the changed cell
Attributes
Notifies that the simulation has completed according to the engine's termination criteria.
Notifies that the simulation has completed according to the engine's termination criteria.
Value parameters
- finalState
-
the final state at completion time
Attributes
Notifies that a new simulation state has been produced.
Notifies that a new simulation state has been produced.
Value parameters
- state
-
the latest immutable snapshot of the simulation
Attributes
Notifies that the timer has advanced.
Notifies that the timer has advanced.
Value parameters
- timer
-
the updated timer containing the formatted elapsed time