GCBM
Public Member Functions | Private Attributes | List of all members
PeatlandGrowthcurve Class Reference

#include <peatlandgrowthcurve.h>

Collaboration diagram for PeatlandGrowthcurve:
Collaboration graph

Public Member Functions

int growthCurveId () const
 
 PeatlandGrowthcurve ()
 Default constructor More...
 
void setValue (const std::vector< DynamicObject > &data)
 
void setValue (const DynamicObject &data)
 Add the data parameter into PeatlandGrowthcurve._woodyTotal. More...
 
double getNetGrowthAtAge (int age)
 Assign size_t variable maxAge as PeatlandGrowthcurve_woodyTotal size - 1
if parameter age is greater than maxAge, assign size_t variable ageIndex as maxAge else ageIndex as age.
If ageIndex is greater than 0, assign size_t variable ageIndexPre as ageIndex - 1 else ageIndexPre as 0. return the difference between ageIndex and ageIndexPre in PeatlandGrowthcurve._woodyTotal. More...
 

Private Attributes

int _growthCurveId { -1 }
 
std::vector< double > _woodyTotal
 

Constructor & Destructor Documentation

◆ PeatlandGrowthcurve()

Default constructor

Member Function Documentation

◆ getNetGrowthAtAge()

double getNetGrowthAtAge ( int  age)

Assign size_t variable maxAge as PeatlandGrowthcurve_woodyTotal size - 1
if parameter age is greater than maxAge, assign size_t variable ageIndex as maxAge else ageIndex as age.
If ageIndex is greater than 0, assign size_t variable ageIndexPre as ageIndex - 1 else ageIndexPre as 0. return the difference between ageIndex and ageIndexPre in PeatlandGrowthcurve._woodyTotal.

Parameters
ageint
Returns
double

◆ growthCurveId()

int growthCurveId ( ) const

◆ setValue() [1/2]

void setValue ( const DynamicObject &  data)

Add the data parameter into PeatlandGrowthcurve._woodyTotal.

Returns
void

◆ setValue() [2/2]

void setValue ( const std::vector< DynamicObject > &  data)

For each row in parameter data, add "carbon" value into PeatlandGrowthcurve._woodyTotal.

Member Data Documentation

◆ _growthCurveId

int _growthCurveId { -1 }
private

◆ _woodyTotal

std::vector<double> _woodyTotal
private

The documentation for this class was generated from the following files: