|
|
double | _areaFraction |
| |
|
double | _initialAreaFraction |
| |
|
string | _name |
| |
|
bool | _needsSolver |
| |
|
BrickCategory | _category |
| |
|
std::unique_ptr< WaterContainer > | _water |
| |
|
std::vector< std::unique_ptr< Process > > | _processes |
| |
|
HydroUnit * | _hydroUnit |
| |
◆ CanHaveAreaFraction()
| bool LandCover::CanHaveAreaFraction |
( |
| ) |
const |
|
inlinenodiscardoverridevirtual |
Check if the brick can have an area fraction.
- Returns
- true if the brick can have an area fraction.
Reimplemented from Brick.
◆ GetAreaFraction()
| double LandCover::GetAreaFraction |
( |
| ) |
const |
|
inline |
Get the area fraction of the land cover.
- Returns
- The area fraction of the land cover.
◆ GetAreaFractionPointer()
| double * LandCover::GetAreaFractionPointer |
( |
| ) |
|
|
inline |
Get a pointer to the area fraction of the land cover.
- Returns
- A pointer to the area fraction of the land cover.
◆ IsLandCover()
| bool LandCover::IsLandCover |
( |
| ) |
const |
|
inlinenodiscardoverridevirtual |
Check if the brick is a land cover.
- Returns
- true if the brick is a land cover.
Reimplemented from Brick.
◆ IsNull()
| bool LandCover::IsNull |
( |
| ) |
const |
|
inlinenodiscardoverridevirtual |
Check if the brick is null (e.g., if the area fraction is null).
- Returns
- true if the brick is null.
Reimplemented from Brick.
◆ Reset()
| void LandCover::Reset |
( |
| ) |
|
|
overridevirtual |
Reset the brick to its initial state.
Also restores the area fraction to the initial extent (set at build time via SetInitialAreaFraction), so that land-cover changes (e.g. glacier evolution) are rolled back when the model is re-run.
Reimplemented from Brick.
◆ RestoreInitialAreaFraction()
| void LandCover::RestoreInitialAreaFraction |
( |
| ) |
|
|
inline |
Restore the area fraction to the initial extent without touching the stored content (used after the spin-up phase, where the warmed-up states are kept but the extents must match the declared initial ones).
◆ SaveAsInitialState()
| void LandCover::SaveAsInitialState |
( |
| ) |
|
|
overridevirtual |
Save the current state of the brick as the initial state.
Also stores the current area fraction as the initial extent to restore on reset.
Reimplemented from Brick.
◆ SetAreaFraction()
| void LandCover::SetAreaFraction |
( |
double | value | ) |
|
Set the area fraction of the land cover.
- Parameters
-
| value | The area fraction to set. |
◆ SetInitialAreaFraction()
| void LandCover::SetInitialAreaFraction |
( |
double | value | ) |
|
|
inline |
Set the initial area fraction (the extent restored on every reset). Set once at build time, when the land cover fractions are assigned.
- Parameters
-
| value | The initial area fraction to store. |
◆ SurfaceComponentAdded()
Called when a new surface component is added to the land cover.
- Parameters
-
| brick | The surface component that was added. |
Reimplemented in Glacier.
The documentation for this class was generated from the following files:
- /github/workspace/core/src/bricks/LandCover.h
- /github/workspace/core/src/bricks/LandCover.cpp