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

#include <volumetobiomassconverter.h>

Collaboration diagram for VolumeToBiomassConverter:
Collaboration graph

Public Member Functions

 VolumeToBiomassConverter (bool smootherEnabled=true)
 
virtual ~VolumeToBiomassConverter ()
 
std::shared_ptr< ComponentBiomassCarbonCurvegenerateComponentBiomassCarbonCurve (StandGrowthCurve &standGrowthCurve, SpeciesType speciesType)
 
void setSmoothing (bool enabled)
 
void doSmoothing (const StandGrowthCurve &standGrowthCurve, ComponentBiomassCarbonCurve *carbonCurve, SpeciesType speciesType)
 

Private Attributes

bool _smootherEnabled
 
Smoother _smoother
 

Constructor & Destructor Documentation

◆ VolumeToBiomassConverter()

VolumeToBiomassConverter ( bool  smootherEnabled = true)

◆ ~VolumeToBiomassConverter()

virtual ~VolumeToBiomassConverter ( )
virtual

Member Function Documentation

◆ doSmoothing()

void doSmoothing ( const StandGrowthCurve standGrowthCurve,
ComponentBiomassCarbonCurve carbonCurve,
SpeciesType  speciesType 
)

If VolumeToBiomassConverter._smootherEnabled is true, invoke Smooth.smooth with arguments as parameters standGrowthCurve, carbonCurve, speciesType

Parameters
standGrowthCurveStandGrowthCurve&
carbonCurveComponentBiomassCarbonCurve*
speciesTypeSpeciesType
Returns
void

◆ generateComponentBiomassCarbonCurve()

std::shared_ptr< ComponentBiomassCarbonCurve > generateComponentBiomassCarbonCurve ( StandGrowthCurve standGrowthCurve,
SpeciesType  speciesType 
)

Generate stand component biomass carbon curve. The component is either of softwood or hardwood. This version assumes that the stand growth curve has all of the required data including: leading species for each component and PERD factor for each leading species.

Parameters
standGrowthCurveStandGrowthCurve&
speciesTypeSpeciesType
Returns
shared_ptr<ComponentBiomassCarbonCurve>

◆ setSmoothing()

void setSmoothing ( bool  enabled)

Member Data Documentation

◆ _smoother

Smoother _smoother
private

◆ _smootherEnabled

bool _smootherEnabled
private

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