GCBM
volumetobiomassconverter.h
Go to the documentation of this file.
1 #ifndef MOJA_MODULES_CBM_ICONVERTER_H_
2 #define MOJA_MODULES_CBM_ICONVERTER_H_
3 
4 #include "moja/modules/cbm/_modules.cbm_exports.h"
5 #include "moja/flint/modulebase.h"
6 
12 
13 namespace moja {
14 namespace modules {
15 namespace cbm {
16 
17  // ADT - to convert the yield growth curve to biomass carbon curve.
18  class CBM_API VolumeToBiomassConverter {
19 
20  public:
21  VolumeToBiomassConverter(bool smootherEnabled = true) : _smootherEnabled(smootherEnabled) { }
23 
24  /*
25  * Generate stand component biomass carbon curve. The component is either of softwood or hardwood.
26  * This version assums that the stand growth curve have all of the required data including:
27  * Leading species for each component, PERD factor for each leading species.
28  */
29  std::shared_ptr<ComponentBiomassCarbonCurve> generateComponentBiomassCarbonCurve(
30  StandGrowthCurve& standGrowthCurve, SpeciesType speciesType);
31 
32  void setSmoothing(bool enabled) { _smootherEnabled = enabled; }
33 
34  // Apply smoother on a carbon curve based on the stand growth yield.
35  void doSmoothing(const StandGrowthCurve& standGrowthCurve,
36  ComponentBiomassCarbonCurve* carbonCurve,
37  SpeciesType speciesType);
38 
39  private:
42  };
43 
44 }}}
45 #endif
componentbiomasscarboncurve.h
moja::modules::cbm::VolumeToBiomassConverter::setSmoothing
void setSmoothing(bool enabled)
Definition: volumetobiomassconverter.h:32
moja::modules::cbm
Definition: ageclasshelper.cpp:12
moja::modules::cbm::VolumeToBiomassConverter::_smoother
Smoother _smoother
Definition: volumetobiomassconverter.h:41
moja::modules::cbm::VolumeToBiomassConverter
Definition: volumetobiomassconverter.h:18
moja::modules::cbm::VolumeToBiomassConverter::VolumeToBiomassConverter
VolumeToBiomassConverter(bool smootherEnabled=true)
Definition: volumetobiomassconverter.h:21
moja::modules::cbm::VolumeToBiomassConverter::~VolumeToBiomassConverter
virtual ~VolumeToBiomassConverter()
Definition: volumetobiomassconverter.h:22
moja::modules::cbm::ComponentBiomassCarbonCurve
Definition: componentbiomasscarboncurve.h:14
moja::modules::cbm::SpeciesType
SpeciesType
Enumeration of tree species type, softwood or hardwood.
Definition: treespecies.h:14
moja::modules::cbm::Smoother
Definition: smoother.h:13
moja::modules::cbm::StandGrowthCurve
Definition: standgrowthcurve.h:16
smoother.h
perdfactor.h
moja::modules::cbm::VolumeToBiomassConverter::_smootherEnabled
bool _smootherEnabled
Definition: volumetobiomassconverter.h:40
standgrowthcurve.h
moja
Definition: ageclasshelper.cpp:10
treespecies.h