GCBM
standbiomasscarboncurve.h
Go to the documentation of this file.
1 #ifndef MOJA_MODULES_CBM_STANDBIOMASSCARBONCURVE_H_
2 #define MOJA_MODULES_CBM_STANDBIOMASSCARBONCURVE_H_
3 
4 #include "moja/modules/cbm/_modules.cbm_exports.h"
5 #include "moja/flint/modulebase.h"
7 
8 #include <unordered_map>
9 
10 namespace moja {
11 namespace modules {
12 namespace cbm {
13 
14  class CBM_API StandBiomassCarbonCurve {
15  public:
18 
19  inline void addComponent(const StandComponent& component) {
20  _components.push_back(component);
21  }
22 
23  std::unordered_map<std::string, double> getIncrements(flint::ILandUnitDataWrapper* landUnitData);
24 
25  // Gets the absolute total aboveground carbon at each age, where index = age.
26  std::vector<double> getAboveGroundCarbonCurve();
27 
28  // Gets the absolute total merchantable carbon at each age, where index = age.
29  std::vector<double> getMerchCarbonCurve();
30 
31  // Gets the absolute total foliage carbon at each age, where index = age.
32  std::vector<double> getFoliageCarbonCurve();
33 
34  // Gets the absolute total other carbon at each age, where index = age.
35  std::vector<double> getOtherCarbonCurve();
36 
37  void writeDebuggingInfo(const std::string& path);
38 
39  private:
40  std::vector<StandComponent> _components;
41  };
42 
43 }}}
44 #endif
standcomponent.h
moja::modules::cbm
Definition: ageclasshelper.cpp:12
moja::modules::cbm::StandBiomassCarbonCurve::addComponent
void addComponent(const StandComponent &component)
Definition: standbiomasscarboncurve.h:19
moja::modules::cbm::StandBiomassCarbonCurve::StandBiomassCarbonCurve
StandBiomassCarbonCurve()
Definition: standbiomasscarboncurve.h:16
moja::modules::cbm::StandBiomassCarbonCurve::_components
std::vector< StandComponent > _components
Definition: standbiomasscarboncurve.h:40
moja::modules::cbm::StandComponent
Definition: standcomponent.h:17
moja::modules::cbm::StandBiomassCarbonCurve::~StandBiomassCarbonCurve
virtual ~StandBiomassCarbonCurve()
Definition: standbiomasscarboncurve.h:17
moja::modules::cbm::StandBiomassCarbonCurve
Definition: standbiomasscarboncurve.h:14
moja
Definition: ageclasshelper.cpp:10