#include <SimpleLinearGrowth.h>
Inheritance diagram for clSimpleLinearGrowth:
Public Member Functions | |
clSimpleLinearGrowth (clSimManager *p_oSimManager) | |
Constructor. | |
~clSimpleLinearGrowth () | |
Destructor. | |
float | CalcHeightGrowthValue (clTree *p_oTree, clTreePopulation *p_oPop, float fDiameterGrowth) |
Calculates the amount of height growth increase for a particular tree using the simple linear growth equation. | |
float | CalcDiameterGrowthValue (clTree *p_oTree, clTreePopulation *p_oPop, float fHeightGrowth) |
Calculates the amount of diameter growth increase for a particular tree using the simple linear growth equation. | |
void | DoShellSetup (xercesc::DOMDocument *p_oDoc) |
Does the setup for this behavior. | |
void | SetNameData (char *cNameString) |
Captures the namestring passed to this behavior. | |
Protected Member Functions | |
float | CalculateFunctionValue (clTree *p_oTree) |
Calculates the value of the simple linear growth function. | |
Protected Attributes | |
float * | mp_fSlope |
Growth slope - b - sized number of species. | |
float * | mp_fIntercept |
Growth intercept - a - sized number of species. | |
float | m_fConversionFactor |
Conversion factor to translate the results of the function to the appropriate units per timestep, depending on the type of growth behavior this is. |
This can be used to create a growth increment with no automatic height adjustment, a growth increment with automatic height adjustment, or a height increment.
The equation used in this behavior is:
The name string is "simplelineargrowthshell". In the parameter file: For diameter growth with no automatic height adjustment, call "simple linear growth diam only". For diameter growth with automatic height adjustment, call "simple linear growth". For height growth, call "simple linear growth height only".
Copyright 2004 Charles D. Canham.
|
Constructor. Sets the namestring. |
|
Destructor. Frees memory. |
|
Calculates the amount of diameter growth increase for a particular tree using the simple linear growth equation.
Reimplemented from clGrowthBase. |
|
Calculates the amount of height growth increase for a particular tree using the simple linear growth equation.
Reimplemented from clGrowthBase. |
|
Calculates the value of the simple linear growth function. The meaning of what is returned depends on the type of growth the behavior is doing.
|
|
Does the setup for this behavior. This reads in the parameters from the parameter file, and validates that all species/type combos use light (each must have "Light" registered).
Reimplemented from clGrowthBase. |
|
Captures the namestring passed to this behavior. This is overridden from clBehaviorBase so we can capture the namestring passed. Since this class can create multiple kinds of behaviors that function differently, this will capture what kind of behavior this is supposed to be.
Reimplemented from clBehaviorBase. |