Go to the documentation of this file. 1 #ifndef MOJA_MODULES_CBM_COMPONENTBIOMASSCARBONCURVE_H_
2 #define MOJA_MODULES_CBM_COMPONENTBIOMASSCARBONCURVE_H_
4 #include "moja/modules/cbm/_modules.cbm_exports.h"
5 #include "moja/flint/modulebase.h"
21 double getMerchCarbonIncrement(
int age)
const;
22 double getFoliageCarbonIncrement(
int age)
const;
23 double getOtherCarbonIncrement(
int age)
const;
25 double getMerchCarbonAtAge(
int age)
const;
26 double getFoliageCarbonAtAge(
int age)
const;
27 double getOtherCarbonAtAge(
int age)
const;
29 std::vector<double> getAboveGroundCarbonCurve()
const;
31 const std::vector<double>& getMerchCarbonCurve()
const;
32 const std::vector<double>& getFoliageCarbonCurve()
const;
33 const std::vector<double>& getOtherCarbonCurve()
const;
35 void setMerchCarbonAtAge(
int age,
double value);
36 void setFoliageCarbonAtAge(
int age,
double value);
37 void setOtherCarbonAtAge(
int age,
double value);
51 int nextAge = age + 1;
60 int nextAge = age + 1;
69 int nextAge = age + 1;
113 std::vector<double> agCarbon;
114 for (
int i = 0; i <
_maxAge; i++) {
std::vector< double > _foliageCarbonIncrements
Definition: componentbiomasscarboncurve.h:42
double getOtherCarbonAtAge(int age) const
Definition: componentbiomasscarboncurve.h:107
Definition: ageclasshelper.cpp:12
double getFoliageCarbonAtAge(int age) const
Definition: componentbiomasscarboncurve.h:102
std::vector< double > _otherCarbonIncrements
Definition: componentbiomasscarboncurve.h:43
const std::vector< double > & getMerchCarbonCurve() const
Definition: componentbiomasscarboncurve.h:124
ComponentBiomassCarbonCurve()
Definition: componentbiomasscarboncurve.h:16
std::vector< double > getAboveGroundCarbonCurve() const
Definition: componentbiomasscarboncurve.h:112
Definition: componentbiomasscarboncurve.h:14
double getFoliageCarbonIncrement(int age) const
Definition: componentbiomasscarboncurve.h:55
const std::vector< double > & getFoliageCarbonCurve() const
Definition: componentbiomasscarboncurve.h:128
const std::vector< double > & getOtherCarbonCurve() const
Definition: componentbiomasscarboncurve.h:132
double getMerchCarbonAtAge(int age) const
Definition: componentbiomasscarboncurve.h:97
void setMerchCarbonAtAge(int age, double value)
Definition: componentbiomasscarboncurve.h:73
void setOtherCarbonAtAge(int age, double value)
Definition: componentbiomasscarboncurve.h:89
double getMerchCarbonIncrement(int age) const
Definition: componentbiomasscarboncurve.h:46
std::vector< double > _merchCarbonIncrements
Definition: componentbiomasscarboncurve.h:41
void setFoliageCarbonAtAge(int age, double value)
Definition: componentbiomasscarboncurve.h:81
double getOtherCarbonIncrement(int age) const
Definition: componentbiomasscarboncurve.h:64
Definition: ageclasshelper.cpp:10
int _maxAge
Definition: componentbiomasscarboncurve.h:40