WaterTransferCalculator

floodsim.model.logic.service.WaterTransferCalculator

Defines a calculator for water transfer between cells. Determines how much water should be transferred from one cell to another based on their physical properties.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def calculateTransfer(source: Cell, target: Cell): Double

Calculates the amount of water to transfer from source to target.

Calculates the amount of water to transfer from source to target.

Value parameters

source

the source cell that potentially gives water

target

the target cell that potentially receives water

Attributes

Returns

the volume of water to transfer (may be 0 if no transfer should occur)