#include <StochasticMort.h>

Public Member Functions | |
| clStochasticMort (clSimManager *p_oSimManager) | |
| Constructor. | |
| ~clStochasticMort () | |
| Destructor. | |
| void | DoShellSetup (xercesc::DOMDocument *p_oDoc) |
| Reads in values from the parameter file. | |
| deadCode | 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.
| clStochasticMort::clStochasticMort | ( | clSimManager * | p_oSimManager | ) |
Constructor.
| p_oSimManager | Sim Manager object. |
| clStochasticMort::~clStochasticMort | ( | ) |
Destructor.
| void clStochasticMort::DoShellSetup | ( | xercesc::DOMDocument * | p_oDoc | ) | [virtual] |
Reads in values from the parameter file.
| p_oDoc | DOM tree of parsed input file. |
Reimplemented from clMortalityBase.
| deadCode clStochasticMort::DoMort | ( | clTree * | p_oTree, | |
| const float & | fDbh, | |||
| const short int & | iSpecies | |||
| ) | [virtual] |
Calculates mortality stochastically.
| fDbh | DBH of tree being evaluated - for seedlings will be 0 | |
| p_oTree | Tree being evaluated | |
| iSpecies | Species of the tree being evaluated |
Implements clMortalityBase.
| void clStochasticMort::SetNameData | ( | char * | cNameString | ) | [virtual] |
Captures the behavior name passed from the parameter file.
This is useful since this class can produce a few different kinds of behaviors.
| cNameString | Behavior name from parameter file. |
Reimplemented from clBehaviorBase.
float* clStochasticMort::mp_fRandomMort [protected] |
Random mortality rate per species.
This is read as an annual value and compounded to the number of years per timestep during setup.
bool clStochasticMort::m_bIsAdult [protected] |
If true - adult stochastic - if false, juvenile.
1.5.6