floodsim.model.state

Members list

Type members

Classlikes

object GridSize

Type-safe representation of a grid size value. Ensures that grid size values are always positive and within reasonable limits.

Type-safe representation of a grid size value. Ensures that grid size values are always positive and within reasonable limits.

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
GridSize.type
object Percentage

Type-safe representation of a percentage value. Ensures that percentage values are always in the valid range of 0.0 to 100.0.

Type-safe representation of a percentage value. Ensures that percentage values are always in the valid range of 0.0 to 100.0.

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
Percentage.type

Contains all the constant values used throughout the simulation. These constants define physical properties, calculation parameters, and configuration values for different cell types.

Contains all the constant values used throughout the simulation. These constants define physical properties, calculation parameters, and configuration values for different cell types.

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
final case class SimulationParams

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Factory for creating SimulationParams instances.

Factory for creating SimulationParams instances.

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
final case class SimulationState(cellGrid: DistanceGrid[Cell], weatherGrid: Grid[Weather], percentageFlooded: Double)

Represents the current state of the simulation. Contains the complete information about the simulation at a specific point in time, including the cell grid, weather conditions, and flooding statistics.

Represents the current state of the simulation. Contains the complete information about the simulation at a specific point in time, including the cell grid, weather conditions, and flooding statistics.

Value parameters

cellGrid

the grid of cells representing the simulation terrain

percentageFlooded

the current percentage of flooded cells in the simulation

weatherGrid

the grid of weather conditions affecting the simulation

Attributes

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