SimulationListener

floodsim.controller.SimulationListener

Listener interface for receiving simulation lifecycle and state change events.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

def onCellTypeChanged(coordinate: Coordinate, cellType: CellType): Unit

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

def onSimulationCompleted(finalState: SimulationState): Unit

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

def onTimerUpdated(timer: Timer): Unit

Notifies that the timer has advanced.

Notifies that the timer has advanced.

Value parameters

timer

the updated timer containing the formatted elapsed time

Attributes