GCBM
peatlandfireparameters.h
Go to the documentation of this file.
1 #ifndef MOJA_MODULES_CBM_PLFIREPARAS_H_
2 #define MOJA_MODULES_CBM_PLFIREPARAS_H_
3 
4 #include "moja/modules/cbm/_modules.cbm_exports.h"
5 #include "moja/flint/modulebase.h"
6 
8 
9 namespace moja {
10 namespace modules {
11 namespace cbm {
12 
13  class CBM_API PeatlandFireParameters : public PeatlandParameters {
14  public:
15  double CClwsb() const { return _CClwsb; }
16  double CClwf() const { return _CClwf; }
17  double CClwr() const { return _CClwr; }
18  double CClsf() const { return _CClsf; }
19  double CClsr() const { return _CClsr; }
20  double CClsp() const { return _CClsp; }
21  double CClfm() const { return _CClfm; }
22  double CCdwsb() const { return _CCdwsb; }
23  double CCdwc() const { return _CCdwc; }
24  double CCdwf() const { return _CCdwf; }
25  double CCdwr() const { return _CCdwr; }
26  double CCdsf() const { return _CCdsf; }
27  double CCdsr() const { return _CCdsr; }
28  double CCdfm() const { return _CCdfm; }
29  double CCa() const { return _CCa; }
30  double CCaa() const { return _CCaa; }
31  double CCco() const { return _CCco; }
32  double CTwr() const { return _CTwr; }
33  double CTsr() const { return _CTsr; }
34  double e() const { return _e; }
35  double f() const { return _f; }
36  double g() const { return _g; }
37 
38  std::vector<double> baseRates() const { return _baseRates; }
39 
44  PeatlandFireParameters(int _spuId, PeatlandType _peatlandType, PeatlandLandCoverType _landCoverType);
45  virtual ~PeatlandFireParameters() = default;
46 
47  void setValue(const DynamicObject& data) override;
48 
49  inline double computeToCO2Rate(double baseRate) {return (_e* baseRate); }
50  inline double computeToCORate(double baseRate) {return (_f * baseRate); }
51  inline double computeToCH4Rate(double baseRate) {return (_g * baseRate); }
52 
53  private:
54 
55  double _CClwsb {0};
56  double _CClwf {0};
57  double _CClwr {0};
58  double _CClsf {0};
59  double _CClsr {0};
60  double _CClsp {0};
61  double _CClfm {0};
62  double _CCdwsb {0};
63  double _CCdwf {0};
64  double _CCdwc{ 0 };
65  double _CCdwr {0};
66  double _CCdsf {0};
67  double _CCdsr {0};
68  double _CCdfm {0};
69  double _CCa {0};
70  double _CCaa{ 0 };
71  double _CCco{ 0 };
72  double _CTwr {0};
73  double _CTsr {0};
74  double _e {0};
75  double _f {0};
76  double _g {0};
77 
78  std::vector<double> _baseRates;
79  };
80 
81 }}}
82 #endif
moja::modules::cbm::PeatlandFireParameters::CCdfm
double CCdfm() const
Definition: peatlandfireparameters.h:28
moja::modules::cbm::PeatlandFireParameters::CClsp
double CClsp() const
Definition: peatlandfireparameters.h:20
moja::modules::cbm::PeatlandFireParameters::CClwsb
double CClwsb() const
Definition: peatlandfireparameters.h:15
moja::modules::cbm
Definition: ageclasshelper.cpp:12
moja::modules::cbm::PeatlandFireParameters::g
double g() const
Definition: peatlandfireparameters.h:36
moja::modules::cbm::PeatlandFireParameters::CCdsr
double CCdsr() const
Definition: peatlandfireparameters.h:27
moja::modules::cbm::PeatlandFireParameters::e
double e() const
Definition: peatlandfireparameters.h:34
moja::modules::cbm::PeatlandFireParameters::computeToCO2Rate
double computeToCO2Rate(double baseRate)
Definition: peatlandfireparameters.h:49
moja::modules::cbm::PeatlandFireParameters::PeatlandFireParameters
PeatlandFireParameters()
Default constructor
Definition: peatlandfireparameters.h:43
moja::modules::cbm::PeatlandFireParameters
Definition: peatlandfireparameters.h:13
peatlandparameters.h
moja::modules::cbm::PeatlandFireParameters::CCaa
double CCaa() const
Definition: peatlandfireparameters.h:30
moja::modules::cbm::PeatlandFireParameters::baseRates
std::vector< double > baseRates() const
Definition: peatlandfireparameters.h:38
moja::modules::cbm::PeatlandFireParameters::CClwr
double CClwr() const
Definition: peatlandfireparameters.h:17
moja::modules::cbm::PeatlandFireParameters::_baseRates
std::vector< double > _baseRates
Definition: peatlandfireparameters.h:78
moja::modules::cbm::PeatlandFireParameters::CCdwc
double CCdwc() const
Definition: peatlandfireparameters.h:23
moja::modules::cbm::PeatlandFireParameters::CClwf
double CClwf() const
Definition: peatlandfireparameters.h:16
moja::modules::cbm::PeatlandFireParameters::CTsr
double CTsr() const
Definition: peatlandfireparameters.h:33
moja::modules::cbm::PeatlandParameters
Definition: peatlandparameters.h:15
moja::modules::cbm::PeatlandFireParameters::CTwr
double CTwr() const
Definition: peatlandfireparameters.h:32
moja::modules::cbm::PeatlandFireParameters::f
double f() const
Definition: peatlandfireparameters.h:35
moja::modules::cbm::PeatlandFireParameters::CCa
double CCa() const
Definition: peatlandfireparameters.h:29
moja::modules::cbm::PeatlandLandCoverType
PeatlandLandCoverType
Definition: peatlandparameters.h:12
moja::modules::cbm::PeatlandFireParameters::CCdwr
double CCdwr() const
Definition: peatlandfireparameters.h:25
moja::modules::cbm::PeatlandFireParameters::CClfm
double CClfm() const
Definition: peatlandfireparameters.h:21
moja::modules::cbm::PeatlandType
PeatlandType
Definition: peatlandparameters.h:11
moja::modules::cbm::PeatlandFireParameters::CClsf
double CClsf() const
Definition: peatlandfireparameters.h:18
moja::modules::cbm::PeatlandFireParameters::CClsr
double CClsr() const
Definition: peatlandfireparameters.h:19
moja::modules::cbm::PeatlandFireParameters::CCdwf
double CCdwf() const
Definition: peatlandfireparameters.h:24
moja::modules::cbm::PeatlandFireParameters::CCdwsb
double CCdwsb() const
Definition: peatlandfireparameters.h:22
moja::modules::cbm::PeatlandFireParameters::CCdsf
double CCdsf() const
Definition: peatlandfireparameters.h:26
moja::modules::cbm::PeatlandFireParameters::CCco
double CCco() const
Definition: peatlandfireparameters.h:31
moja
Definition: ageclasshelper.cpp:10
moja::modules::cbm::PeatlandFireParameters::computeToCH4Rate
double computeToCH4Rate(double baseRate)
Definition: peatlandfireparameters.h:51
moja::modules::cbm::PeatlandFireParameters::computeToCORate
double computeToCORate(double baseRate)
Definition: peatlandfireparameters.h:50