Cell

floodsim.model.cell.Cell
See theCell companion trait
object Cell

Factory object for creating Cell instances.

Attributes

Companion
trait
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
Cell.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 apply(dimensions: Double, obstacles: Seq[Obstacle], altitude: Double, absorption: AbsorptionRate, cellType: CellType)(using physics: CellPhysics): Cell

Creates a new cell with the specified properties.

Creates a new cell with the specified properties.

Value parameters

absorption

the absorption rate of the cell

altitude

the base altitude of the cell

cellType

the type of the cell

dimensions

the dimensions of the cell

obstacles

the obstacles in the cell

physics

the physics engine for water calculations

Attributes

Returns

a new Cell instance