hydrobricks
Loading...
Searching...
No Matches
ActionGlacierEvolutionAreaScaling Class Reference
Inheritance diagram for ActionGlacierEvolutionAreaScaling:
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

string _landCoverName
 
axi _hydroUnitIds
 
axxd _tableArea
 
axxd _tableVolume
 
axd _initialGlacierWE
 
- Protected Attributes inherited from Action
ActionsManager_manager
 
int _cursor
 
vecDouble _sporadicDates
 
bool _recursive
 
vecInt _recursiveMonths
 
vecInt _recursiveDays
 

Member Function Documentation

◆ AddLookupTables()

void ActionGlacierEvolutionAreaScaling::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 ActionGlacierEvolutionAreaScaling::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 ActionGlacierEvolutionAreaScaling::GetHydroUnitIds ( )
inline

Get the hydro unit IDs associated with the action.

Returns
vector of hydro unit IDs.

◆ GetLandCoverName()

string ActionGlacierEvolutionAreaScaling::GetLandCoverName ( )
inline

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

Returns
land cover name (glacier name).

◆ GetLookupTableArea()

axxd ActionGlacierEvolutionAreaScaling::GetLookupTableArea ( )
inline

Get the lookup table for the glacier area.

Returns
The lookup table for the glacier area.

◆ GetLookupTableVolume()

axxd ActionGlacierEvolutionAreaScaling::GetLookupTableVolume ( )
inline

Get the lookup table for the glacier volume.

Returns
The lookup table for the glacier volume.

◆ Init()

bool ActionGlacierEvolutionAreaScaling::Init ( )
overridevirtual

Initialize the action.

Reimplemented from Action.


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