GCBM
perdfactor.h
Go to the documentation of this file.
1 #ifndef MOJA_MODULES_CBM_PERDFACTOR_H_
2 #define MOJA_MODULES_CBM_PERDFACTOR_H_
3 
4 #include "moja/modules/cbm/_modules.cbm_exports.h"
5 #include "moja/flint/modulebase.h"
6 
7 namespace moja {
8 namespace modules {
9 namespace cbm {
10 
11  class CBM_API PERDFactor {
12  public:
13  int treeSpeciesTypeId() const { return _treeSpeciesId; }
14  int merchEquationNumber() const { return _merchEquationNumber; }
15  int nonmerchEquationNumber() const { return _nonmerchEquationNumber; }
16  int saplingEquationNumber() const { return _saplingEquationNumber; }
17  int otherEquationNumber() const { return _otherEquationNumber; }
18  double a() const { return _a; }
19  double b() const { return _b; }
20  double a_nonmerch() const { return _a_nonmerch; }
21  double b_nonmerch() const { return _b_nonmerch; }
22  double k_nonmerch() const { return _k_nonmerch; }
23  double cap_nonmerch() const { return _cap_nonmerch; }
24  double a_sap() const { return _a_sap; }
25  double b_sap() const { return _b_sap; }
26  double k_sap() const { return _k_sap; }
27  double cap_sap() const { return _cap_sap; }
28  double a1() const { return _a1; }
29  double a2() const { return _a2; }
30  double a3() const { return _a3; }
31  double b1() const { return _b1; }
32  double b2() const { return _b2; }
33  double b3() const { return _b3; }
34  double c1() const { return _c1; }
35  double c2() const { return _c2; }
36  double c3() const { return _c3; }
37  double min_volume() const { return _min_volume; }
38  double max_volume() const { return _max_volume; }
39  double low_stemwood_prop() const { return _low_stemwood_prop; }
40  double high_stemwood_prop() const { return _high_stemwood_prop; }
41  double low_stembark_prop() const { return _low_stembark_prop; }
42  double high_stembark_prop() const { return _high_stembark_prop; }
43  double low_branches_prop() const { return _low_branches_prop; }
44  double high_branches_prop() const { return _high_branches_prop; }
45  double low_foliage_prop() const { return _low_foliage_prop; }
46  double high_foliage_prop() const { return _high_foliage_prop; }
47  double softwood_top_prop() const { return _softwood_top_prop; }
48  double softwood_stump_prop() const { return _softwood_stump_prop; }
49  double hardwood_top_prop() const { return _hardwood_top_prop; }
50  double hardwood_stump_prop() const { return _hardwood_stump_prop; }
51 
56  _merchEquationNumber(1),
57  _nonmerchEquationNumber(2),
58  _saplingEquationNumber(4),
59  _otherEquationNumber(7) {}
60 
61  ~PERDFactor() = default;
62 
63  void setValue(const DynamicObject& data);
64  void setDefaultValue(const std::vector<double>& data);
65  void setTreeSpeciesID(int id);
66 
67  private:
68  int _treeSpeciesId = 0;
69  int _merchEquationNumber = 0;
70  int _nonmerchEquationNumber = 0;
71  int _saplingEquationNumber = 0;
72  int _otherEquationNumber = 0;
73  double _a = 0;
74  double _b = 0;
75  double _a_nonmerch = 0;
76  double _b_nonmerch = 0;
77  double _k_nonmerch = 0;
78  double _cap_nonmerch = 0;
79  double _a_sap = 0;
80  double _b_sap = 0;
81  double _k_sap = 0;
82  double _cap_sap = 0;
83  double _a1 = 0;
84  double _a2 = 0;
85  double _a3 = 0;
86  double _b1 = 0;
87  double _b2 = 0;
88  double _b3 = 0;
89  double _c1 = 0;
90  double _c2 = 0;
91  double _c3 = 0;
92  double _min_volume = 0;
93  double _max_volume = 0;
94  double _low_stemwood_prop = 0;
95  double _high_stemwood_prop = 0;
96  double _low_stembark_prop = 0;
97  double _high_stembark_prop = 0;
98  double _low_branches_prop = 0;
99  double _high_branches_prop = 0;
100  double _low_foliage_prop = 0;
101  double _high_foliage_prop = 0;
102  double _softwood_top_prop = 0;
103  double _softwood_stump_prop = 0;
104  double _hardwood_top_prop = 0;
105  double _hardwood_stump_prop = 0;
106  };
107 
108 }}}
109 #endif
moja::modules::cbm::PERDFactor::cap_sap
double cap_sap() const
Definition: perdfactor.h:27
moja::modules::cbm::PERDFactor::softwood_top_prop
double softwood_top_prop() const
Definition: perdfactor.h:47
moja::modules::cbm::PERDFactor::nonmerchEquationNumber
int nonmerchEquationNumber() const
Definition: perdfactor.h:15
moja::modules::cbm::PERDFactor::high_stemwood_prop
double high_stemwood_prop() const
Definition: perdfactor.h:40
moja::modules::cbm
Definition: ageclasshelper.cpp:12
moja::modules::cbm::PERDFactor::k_nonmerch
double k_nonmerch() const
Definition: perdfactor.h:22
moja::modules::cbm::PERDFactor::high_foliage_prop
double high_foliage_prop() const
Definition: perdfactor.h:46
moja::modules::cbm::PERDFactor::a1
double a1() const
Definition: perdfactor.h:28
moja::modules::cbm::PERDFactor::low_branches_prop
double low_branches_prop() const
Definition: perdfactor.h:43
moja::modules::cbm::PERDFactor::b1
double b1() const
Definition: perdfactor.h:31
moja::modules::cbm::PERDFactor::c3
double c3() const
Definition: perdfactor.h:36
moja::modules::cbm::PERDFactor
Definition: perdfactor.h:11
moja::modules::cbm::PERDFactor::low_stemwood_prop
double low_stemwood_prop() const
Definition: perdfactor.h:39
moja::modules::cbm::PERDFactor::b2
double b2() const
Definition: perdfactor.h:32
moja::modules::cbm::PERDFactor::b3
double b3() const
Definition: perdfactor.h:33
moja::modules::cbm::PERDFactor::b_sap
double b_sap() const
Definition: perdfactor.h:25
moja::modules::cbm::PERDFactor::saplingEquationNumber
int saplingEquationNumber() const
Definition: perdfactor.h:16
moja::modules::cbm::PERDFactor::merchEquationNumber
int merchEquationNumber() const
Definition: perdfactor.h:14
moja::modules::cbm::PERDFactor::cap_nonmerch
double cap_nonmerch() const
Definition: perdfactor.h:23
moja::modules::cbm::PERDFactor::low_stembark_prop
double low_stembark_prop() const
Definition: perdfactor.h:41
moja::modules::cbm::PERDFactor::a2
double a2() const
Definition: perdfactor.h:29
moja::modules::cbm::PERDFactor::max_volume
double max_volume() const
Definition: perdfactor.h:38
moja::modules::cbm::PERDFactor::a3
double a3() const
Definition: perdfactor.h:30
moja::modules::cbm::PERDFactor::b
double b() const
Definition: perdfactor.h:19
moja::modules::cbm::PERDFactor::c1
double c1() const
Definition: perdfactor.h:34
moja::modules::cbm::PERDFactor::low_foliage_prop
double low_foliage_prop() const
Definition: perdfactor.h:45
moja::modules::cbm::PERDFactor::a
double a() const
Definition: perdfactor.h:18
moja::modules::cbm::PERDFactor::min_volume
double min_volume() const
Definition: perdfactor.h:37
moja::modules::cbm::PERDFactor::hardwood_stump_prop
double hardwood_stump_prop() const
Definition: perdfactor.h:50
moja::modules::cbm::PERDFactor::treeSpeciesTypeId
int treeSpeciesTypeId() const
Definition: perdfactor.h:13
moja::modules::cbm::PERDFactor::c2
double c2() const
Definition: perdfactor.h:35
moja::modules::cbm::PERDFactor::high_branches_prop
double high_branches_prop() const
Definition: perdfactor.h:44
moja::modules::cbm::PERDFactor::a_sap
double a_sap() const
Definition: perdfactor.h:24
moja::modules::cbm::PERDFactor::k_sap
double k_sap() const
Definition: perdfactor.h:26
moja::modules::cbm::PERDFactor::PERDFactor
PERDFactor()
Default constructor
Definition: perdfactor.h:55
moja::modules::cbm::PERDFactor::b_nonmerch
double b_nonmerch() const
Definition: perdfactor.h:21
moja::modules::cbm::PERDFactor::hardwood_top_prop
double hardwood_top_prop() const
Definition: perdfactor.h:49
moja::modules::cbm::PERDFactor::a_nonmerch
double a_nonmerch() const
Definition: perdfactor.h:20
moja
Definition: ageclasshelper.cpp:10
moja::modules::cbm::PERDFactor::high_stembark_prop
double high_stembark_prop() const
Definition: perdfactor.h:42
moja::modules::cbm::PERDFactor::softwood_stump_prop
double softwood_stump_prop() const
Definition: perdfactor.h:48
moja::modules::cbm::PERDFactor::otherEquationNumber
int otherEquationNumber() const
Definition: perdfactor.h:17