#include <ConstantBAGrowth.h>
Public Member Functions | |
clConstantBAGrowth (clSimManager *p_oSimManager) | |
Constructor. | |
void | SetNameData (char *cNameString) |
Captures the namestring passed to this behavior. | |
float | CalcDiameterGrowthValue (clTree *p_oTree, clTreePopulation *p_oPop, float fHeightGrowth) |
This applies the growth. | |
void | DoShellSetup (xercesc::DOMDocument *p_oDoc) |
Reads in values from the parameter file. |
This is a growth shell object which applies a constant basal area growth to all trees which use it. The constant basal increment is found by dividing the annual area increment by the diameter of the tree (recall that the increment is in squared units). The area increment is already in units per timestep.
This class's namestring is "constbagrowthshell". Call it in the parameter file with the string "constbagrowth", or "constbagrowth diam only" for diameter-only updating.
Copyright 2003 Charles D. Canham.
clConstantBAGrowth::clConstantBAGrowth | ( | clSimManager * | p_oSimManager | ) |
Constructor.
The constructor sets the namestring.
p_oSimManager | Sim Manager object. |
void clConstantBAGrowth::SetNameData | ( | char * | cNameString | ) | [virtual] |
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.
cNameString | Behavior's namestring. |
Reimplemented from clBehaviorBase.
float clConstantBAGrowth::CalcDiameterGrowthValue | ( | clTree * | p_oTree, | |
clTreePopulation * | p_oPop, | |||
float | fHeightGrowth | |||
) | [virtual] |
This applies the growth.
p_oTree | Tree to which to calculate growth. | |
p_oPop | Tree population object. | |
fHeightGrowth | Amount of height growth, in m (ignored). |
Reimplemented from clGrowthBase.
void clConstantBAGrowth::DoShellSetup | ( | xercesc::DOMDocument * | p_oDoc | ) | [virtual] |
Reads in values from the parameter file.
p_oDoc | DOM tree from parsed parameter file. |
Reimplemented from clGrowthBase.