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

Public Member Functions

 ActionGlacierSnowToIceTransformation (int month, int day, const string &landCoverName)
 
bool Init () override
 
void Reset () override
 
bool Apply (double date) override
 
string GetLandCoverName ()
 
vecInt GetHydroUnitIds ()
 
- Public Member Functions inherited from Action
void ResetCursor ()
 
void AddRecursiveDate (int month, int day)
 
virtual bool ApplyIfRecursive (const Time date)
 
int GetIndexForInsertion (double date)
 
double CheckLandCoverAreaFraction (const string &name, int id, double fraction, double unitArea, double lcArea)
 
void SetManager (ActionsManager *manager)
 
vecDouble GetSporadicDates ()
 
int GetSporadicItemsNb ()
 
void IncrementCursor ()
 
bool IsRecursive ()
 

Protected Attributes

string _landCoverName
 
vecInt _hydroUnitIds
 
- Protected Attributes inherited from Action
ActionsManager_manager
 
int _cursor
 
vecDouble _sporadicDates
 
bool _recursive
 
vecInt _recursiveMonths
 
vecInt _recursiveDays
 

Constructor & Destructor Documentation

◆ ActionGlacierSnowToIceTransformation()

ActionGlacierSnowToIceTransformation::ActionGlacierSnowToIceTransformation ( int month,
int day,
const string & landCoverName )

Constructor for the ActionGlacierSnowToIceTransformation class.

Parameters
monthmonth of the year (1-12).
dayday of the month (1-31).
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.

Member Function Documentation

◆ Apply()

bool ActionGlacierSnowToIceTransformation::Apply ( double date)
overridevirtual

Apply the action.

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

Reimplemented from Action.

◆ GetHydroUnitIds()

vecInt ActionGlacierSnowToIceTransformation::GetHydroUnitIds ( )
inline

Get the hydro unit IDs associated with the action.

Returns
vector of hydro unit IDs.

◆ GetLandCoverName()

string ActionGlacierSnowToIceTransformation::GetLandCoverName ( )
inline

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

Returns
land cover name (glacier name).

◆ Init()

bool ActionGlacierSnowToIceTransformation::Init ( )
overridevirtual

Initialize the action.

Reimplemented from Action.

◆ Reset()

void ActionGlacierSnowToIceTransformation::Reset ( )
overridevirtual

Reset the action to its initial state.

Reimplemented from Action.


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