hydrobricks
Loading...
Searching...
No Matches
ActionGlacierEvolutionDeltaH.h
1#ifndef HYDROBRICKS_ACTION_GLACIER_EVOLUTION_DELTA_H_H
2#define HYDROBRICKS_ACTION_GLACIER_EVOLUTION_DELTA_H_H
3
4#include "Action.h"
5#include "Includes.h"
6
8 public:
10
11 ~ActionGlacierEvolutionDeltaH() override = default;
12
23 void AddLookupTables(int month, const string& landCoverName, const axi& hydroUnitIds, const axxd& areas,
24 const axxd& volumes);
25
29 [[nodiscard]] bool Init() override;
30
34 void Reset() override;
35
42 [[nodiscard]] bool Apply(double date) override;
43
49 const string& GetLandCoverName() const {
50 return _landCoverName;
51 }
52
58 const axi& GetHydroUnitIds() const {
59 return _hydroUnitIds;
60 }
61
67 const axxd& GetLookupTableArea() const {
68 return _tableArea;
69 }
70
76 const axxd& GetLookupTableVolume() const {
77 return _tableVolume;
78 }
79
80 protected:
81 int _lastRow{0};
82 string _landCoverName;
83 axi _hydroUnitIds;
84 axxd _tableArea;
85 axxd _tableVolume;
86 double _initialGlacierWE{0.0};
87};
88
89#endif // HYDROBRICKS_ACTION_GLACIER_EVOLUTION_DELTA_H_H
Definition ActionGlacierEvolutionDeltaH.h:7
const string & GetLandCoverName() const
Definition ActionGlacierEvolutionDeltaH.h:49
bool Init() override
Definition ActionGlacierEvolutionDeltaH.cpp:21
const axi & GetHydroUnitIds() const
Definition ActionGlacierEvolutionDeltaH.h:58
void AddLookupTables(int month, const string &landCoverName, const axi &hydroUnitIds, const axxd &areas, const axxd &volumes)
Definition ActionGlacierEvolutionDeltaH.cpp:9
void Reset() override
Definition ActionGlacierEvolutionDeltaH.cpp:71
bool Apply(double date) override
Definition ActionGlacierEvolutionDeltaH.cpp:84
const axxd & GetLookupTableArea() const
Definition ActionGlacierEvolutionDeltaH.h:67
const axxd & GetLookupTableVolume() const
Definition ActionGlacierEvolutionDeltaH.h:76
Definition Action.h:7