floodsim.model.cell

Members list

Packages

Type members

Classlikes

Represents the rate at which a cell can absorb water. This is implemented as an opaque type to encapsulate absorption rate values and provide controlled access through extension methods.

Represents the rate at which a cell can absorb water. This is implemented as an opaque type to encapsulate absorption rate values and provide controlled access through extension methods.

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
sealed trait Cell extends GridElement

Represents a cell in the simulation grid. A cell is a fundamental unit in the simulation that can contain water, obstacles, and has physical properties that determine how water interacts with it.

Represents a cell in the simulation grid. A cell is a fundamental unit in the simulation that can contain water, obstacles, and has physical properties that determine how water interacts with it.

Attributes

Companion
object
Supertypes
trait GridElement
class Object
trait Matchable
class Any
object Cell

Factory object for creating Cell instances.

Factory object for creating Cell instances.

Attributes

Companion
trait
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
Cell.type
object CellFactory

Factory for creating different types of cells with appropriate configurations.

Factory for creating different types of cells with appropriate configurations.

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
enum CellType

Defines the different types of cells that can be created.

Defines the different types of cells that can be created.

Attributes

Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
final case class Obstacle(surface: Double, height: Double)

Represents a physical obstacle in a cell. Obstacles affect water flow and capacity by occupying space within a cell.

Represents a physical obstacle in a cell. Obstacles affect water flow and capacity by occupying space within a cell.

Value parameters

height

the height of the obstacle

surface

the surface area of the obstacle

Attributes

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