floodsim.controller

Members list

Packages

Type members

Classlikes

sealed trait ControllerFactory

Factory responsible for creating configured SimulationController instances. Implementations wire together the engine, services, store, and scheduler.

Factory responsible for creating configured SimulationController instances. Implementations wire together the engine, services, store, and scheduler.

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any

Entry point for obtaining a default factory implementation.

Entry point for obtaining a default factory implementation.

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type

Possible states of the simulation scheduler.

Possible states of the simulation scheduler.

Attributes

Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
sealed trait SimulationController

Controller of the simulation. Implementations coordinate the engine, a state store, and a scheduler to execute ticks and deliver updates.

Controller of the simulation. Implementations coordinate the engine, a state store, and a scheduler to execute ticks and deliver updates.

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any

Constructs a default SimulationController implementation.

Constructs a default SimulationController implementation.

Attributes

Returns

a controller bound to the provided components

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type

Listener interface for receiving simulation lifecycle and state change events.

Listener interface for receiving simulation lifecycle and state change events.

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
sealed trait SimulationScheduler

Handles the scheduling and execution of simulation tasks at specified intervals. Provides methods to control the simulation flow (start, pause, stop) and adjust the simulation speed dynamically.

Handles the scheduling and execution of simulation tasks at specified intervals. Provides methods to control the simulation flow (start, pause, stop) and adjust the simulation speed dynamically.

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any

Factory for creating SimulationScheduler instances.

Factory for creating SimulationScheduler instances.

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
enum SimulationSpeed(val tickInterval: Double)

Defines the available simulation speed settings. Each speed setting determines the interval between simulation ticks.

Defines the available simulation speed settings. Each speed setting determines the interval between simulation ticks.

Value parameters

tickInterval

the time interval in milliseconds between simulation ticks

Attributes

Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all