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

Public Member Functions

void AddChange (double date, int hydroUnitId, const string &landCoverName, double area)
 
bool Apply (double date) override
 
int GetChangesNb () const
 
int GetLandCoversNb () const
 
- Public Member Functions inherited from Action
void Reset ()
 
virtual bool Init ()
 
virtual bool ApplyIfRecursive (const Time date)
 
int GetIndexForInsertion (double date)
 
void SetManager (ActionsManager *manager)
 
vecDouble GetSporadicDates ()
 
int GetSporadicItemsNb ()
 
void IncrementCursor ()
 
bool IsRecursive ()
 

Protected Attributes

vecInt _hydroUnitIds
 
vecInt _landCoverIds
 
vecStr _landCoverNames
 
vecDouble _areas
 
- Protected Attributes inherited from Action
ActionsManager_manager
 
int _cursor
 
vecDouble _sporadicDates
 
bool _recursive
 
vecInt _recursiveMonths
 
vecInt _recursiveDays
 

Member Function Documentation

◆ AddChange()

void ActionLandCoverChange::AddChange ( double date,
int hydroUnitId,
const string & landCoverName,
double area )

Add a land cover change to the action.

Parameters
datedate of the change.
hydroUnitIdID of the hydro unit.
landCoverNamename of the land cover.
areaarea of the land cover.

◆ Apply()

bool ActionLandCoverChange::Apply ( double date)
overridevirtual

Apply the action to the model.

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

Reimplemented from Action.

◆ GetChangesNb()

int ActionLandCoverChange::GetChangesNb ( ) const
inline

Get the number of changes in the action.

Returns
the number of changes in the action.

◆ GetLandCoversNb()

int ActionLandCoverChange::GetLandCoversNb ( ) const
inline

Get the number of land covers in the action.

Returns
the number of land covers in the action.

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