#include <StochasticMort.h>
Inheritance diagram for clStochasticMort:
Public Member Functions | |
clStochasticMort (clSimManager *p_oSimManager) | |
Constructor. | |
~clStochasticMort () | |
Destructor. | |
void | DoShellSetup (xercesc::DOMDocument *p_oDoc) |
Reads in values from the parameter file. | |
bool | DoMort (clTree *p_oTree, const float &fDbh, const short int &iSpecies) |
Calculates mortality stochastically. | |
void | SetNameData (char *cNameString) |
Captures the behavior name passed from the parameter file. | |
Protected Attributes | |
float * | mp_fRandomMort |
Random mortality rate per species. | |
bool | m_bIsAdult |
If true - adult stochastic - if false, juvenile. |
This evaluates stochastic mortality, either adult or juvenile. The one that is done depends on which behavior name string is put in the parameter file - either "adultstochasticmort" or "juvstochasticmort". This controls which set of parameters is read in from the parameter file. The self-thinning is calculated the same way either way. There may be more than one object of this class running around.
This class's namestring is "stochasticmortshell".
Copyright 2003 Charles D. Canham.
|
Constructor.
|
|
Calculates mortality stochastically.
Implements clMortalityBase. |
|
Reads in values from the parameter file.
Reimplemented from clMortalityBase. |
|
Captures the behavior name passed from the parameter file. This is useful since this class can produce a few different kinds of behaviors.
Reimplemented from clBehaviorBase. |
|
Random mortality rate per species. This is read as an annual value and compounded to the number of years per timestep during setup. |