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
31 [[nodiscard]] bool Init() override;
32
36 void Reset() override;
37
44 [[nodiscard]] bool Apply(double date) override;
45
51 const string& GetLandCoverName() const {
52 return _landCoverName;
53 }
54
60 const axi& GetHydroUnitIds() const {
61 return _hydroUnitIds;
62 }
63
69 const axxd& GetLookupTableArea() const {
70 return _tableArea;
71 }
72
78 const axxd& GetLookupTableVolume() const {
79 return _tableVolume;
80 }
81
82 protected:
83 int _lastRow{0};
84 string _landCoverName;
85 axi _hydroUnitIds;
86 axxd _tableArea;
87 axxd _tableVolume;
88 double _initialGlacierWE{0.0};
89};
90
91#endif // HYDROBRICKS_ACTION_GLACIER_EVOLUTION_DELTA_H_H
Definition ActionGlacierEvolutionDeltaH.h:7
const string & GetLandCoverName() const
Definition ActionGlacierEvolutionDeltaH.h:51
bool Init() override
Definition ActionGlacierEvolutionDeltaH.cpp:21
const axi & GetHydroUnitIds() const
Definition ActionGlacierEvolutionDeltaH.h:60
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:72
bool Apply(double date) override
Definition ActionGlacierEvolutionDeltaH.cpp:79
const axxd & GetLookupTableArea() const
Definition ActionGlacierEvolutionDeltaH.h:69
const axxd & GetLookupTableVolume() const
Definition ActionGlacierEvolutionDeltaH.h:78
Definition Action.h:7