SimulationParams

floodsim.model.state.SimulationParams
See theSimulationParams companion class

Factory for creating SimulationParams instances.

Attributes

Companion
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Members list

Type members

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def createCustom(gridSize: Int, weatherCellPercentage: Double, floodThreshold: Double, terminationFloodPercentage: Double): SimulationParams

Creates a SimulationParams instance with custom values.

Creates a SimulationParams instance with custom values.

Value parameters

floodThreshold

the threshold at which a cell is considered flooded

gridSize

the size of the simulation grid

terminationFloodPercentage

the percentage of flooded cells that triggers simulation termination

weatherCellPercentage

the percentage of cells affected by weather

Attributes

Returns

a SimulationParams instance with the specified values

Creates a SimulationParams instance with default values.

Creates a SimulationParams instance with default values.

Attributes

Returns

a SimulationParams instance with preset default values