hydrobricks
Loading...
Searching...
No Matches
ActionLandCoverChange.h
1#ifndef HYDROBRICKS_ACTION_LAND_COVER_CHANGE_H
2#define HYDROBRICKS_ACTION_LAND_COVER_CHANGE_H
3
4#include "Action.h"
5#include "Includes.h"
6
8 public:
10
11 ~ActionLandCoverChange() override = default;
12
21 void AddChange(double date, int hydroUnitId, const string& landCoverName, double area);
22
29 bool Apply(double date) override;
30
36 int GetChangesNb() const {
37 return static_cast<int>(_sporadicDates.size());
38 }
39
45 int GetLandCoversNb() const {
46 return static_cast<int>(_landCoverNames.size());
47 }
48
49 protected:
50 vecInt _hydroUnitIds;
51 vecInt _landCoverIds;
52 vecStr _landCoverNames;
53 vecDouble _areas;
54
55 private:
56 int GetLandCoverId(const string& landCoverName);
57};
58
59#endif // HYDROBRICKS_ACTION_LAND_COVER_CHANGE_H
Definition ActionLandCoverChange.h:7
int GetChangesNb() const
Definition ActionLandCoverChange.h:36
int GetLandCoversNb() const
Definition ActionLandCoverChange.h:45
bool Apply(double date) override
Definition ActionLandCoverChange.cpp:19
void AddChange(double date, int hydroUnitId, const string &landCoverName, double area)
Definition ActionLandCoverChange.cpp:8
Definition Action.h:7