floodsim.model.cell.physics

Members list

Type members

Classlikes

sealed trait AbsorptionCalculator

Defines the calculation strategy for water absorption in a cell.

Defines the calculation strategy for water absorption in a cell.

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait CellPhysics

Represents the physical properties and behaviors of a cell in the simulation. Provides methods to calculate water height, water speed, and water absorption based on cell characteristics.

Represents the physical properties and behaviors of a cell in the simulation. Provides methods to calculate water height, water speed, and water absorption based on cell characteristics.

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
object CellPhysics

Companion object for CellPhysics providing the default implementation.

Companion object for CellPhysics providing the default implementation.

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type

Default implementation of the absorption calculation strategy. Absorbs water based on the current absorption capacity and reduces the absorption rate over time as more water is absorbed.

Default implementation of the absorption calculation strategy. Absorbs water based on the current absorption capacity and reduces the absorption rate over time as more water is absorbed.

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type

Factory for creating DefaultCellPhysics instances with predefined calculators.

Factory for creating DefaultCellPhysics instances with predefined calculators.

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type

Default implementation of the water height calculation that accounts for layered obstacles.

Default implementation of the water height calculation that accounts for layered obstacles.

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type

Default implementation of water speed calculation. Takes into account obstacle coverage, water volume, and absorption rate to determine the speed at which water flows through a cell.

Default implementation of water speed calculation. Takes into account obstacle coverage, water volume, and absorption rate to determine the speed at which water flows through a cell.

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
sealed trait WaterHeightCalculator

Defines the calculation strategy for water height in a cell.

Defines the calculation strategy for water height in a cell.

Attributes

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

Defines the calculation strategy for water speed in a cell.

Defines the calculation strategy for water speed in a cell.

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes