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 m_hydroUnitIds
 
vecInt m_landCoverIds
 
vecStr m_landCoverNames
 
vecDouble m_areas
 
- 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

◆ 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: