hydrobricks
Loading...
Searching...
No Matches
ActionGlacierEvolutionDeltaH Class Reference
Inheritance diagram for ActionGlacierEvolutionDeltaH:
Action

Public Member Functions

void AddLookupTables (int month, const string &landCoverName, const axi &hydroUnitIds, const axxd &areas, const axxd &volumes)
 
bool Init () override
 
bool Apply (double date) override
 
string GetLandCoverName ()
 
axi GetHydroUnitIds ()
 
axxd GetLookupTableArea ()
 
axxd GetLookupTableVolume ()
 
- Public Member Functions inherited from Action
void Reset ()
 
virtual bool ApplyIfRecursive (const Time date)
 
int GetIndexForInsertion (double date)
 
void SetManager (ActionsManager *manager)
 
vecDouble GetSporadicDates ()
 
int GetSporadicItemsNb ()
 
void IncrementCursor ()
 
bool IsRecursive ()
 

Protected Attributes

int m_lastRow {0}
 
string m_landCoverName
 
axi m_hydroUnitIds
 
axxd m_tableArea
 
axxd m_tableVolume
 
double m_initialGlacierWE {0.0}
 
- Protected Attributes inherited from Action
ActionsManagerm_manager
 
int m_cursor
 
vecDouble m_sporadicDates
 
bool m_recursive
 
vecInt m_recursiveMonths
 
vecInt m_recursiveDays
 

Member Function Documentation

◆ AddLookupTables()

void ActionGlacierEvolutionDeltaH::AddLookupTables ( int month,
const string & landCoverName,
const axi & hydroUnitIds,
const axxd & areas,
const axxd & volumes )

Add lookup tables for glacier evolution.

Parameters
monthmonth of the year (1-12).
landCoverNamename of the land cover associated with the action. It is used to identify the specific glacier 'name' as we can have multiple glacier land covers in the model.
hydroUnitIdsvector of hydro unit IDs.
areasmatrix of changes in area (rows: iterations, columns: hydro units).
volumesmatrix of changes in volume (rows: iterations, columns: hydro units).

◆ Apply()

bool ActionGlacierEvolutionDeltaH::Apply ( double date)
overridevirtual

Apply the action.

Parameters
datedate of the action.
Returns
true if the action was applied successfully.

Reimplemented from Action.

◆ GetHydroUnitIds()

axi ActionGlacierEvolutionDeltaH::GetHydroUnitIds ( )
inline

Get the hydro unit IDs associated with the action.

Returns
vector of hydro unit IDs.

◆ GetLandCoverName()

string ActionGlacierEvolutionDeltaH::GetLandCoverName ( )
inline

Get the land cover name (glacier name) associated with the action.

Returns
land cover name (glacier name).

◆ GetLookupTableArea()

axxd ActionGlacierEvolutionDeltaH::GetLookupTableArea ( )
inline

Get the lookup table for the glacier area.

Returns
The lookup table for the glacier area.

◆ GetLookupTableVolume()

axxd ActionGlacierEvolutionDeltaH::GetLookupTableVolume ( )
inline

Get the lookup table for the glacier volume.

Returns
The lookup table for the glacier volume.

◆ Init()

bool ActionGlacierEvolutionDeltaH::Init ( )
overridevirtual

Initialize the action.

Reimplemented from Action.


The documentation for this class was generated from the following files: