#include <StochasticBiLevelMortality.h>
Inheritance diagram for clStochasticBiLevelMortality:
Public Member Functions | |
clStochasticBiLevelMortality (clSimManager *p_oSimManager) | |
Constructor. | |
~clStochasticBiLevelMortality () | |
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. | |
Protected Attributes | |
clGridBase * | mp_oStormLight |
"Storm Light" grid object | |
clTreePopulation * | mp_oPop |
Tree population - for getting data codes. | |
float * | mp_fLoLightMortProb |
Probability of mortality at low light - sized number of behavior species. | |
float * | mp_fHiLightMortProb |
Probability of mortality at low light - sized number of behavior species. | |
float * | mp_fHiLightThreshold |
Threshold between low light and high light mortality, as a value between 0 and 100 - sized number of behavior species. | |
int * | mp_iIndexes |
To help access the other arrays. | |
int | m_iLightCode |
Code for the "Light" data member of the "Storm Light" grid. |
This evaluates mortality at a constant rate, with a separate rate at high and low light for each species. Trees are chosen at random to die.
Light levels come from the "Storm Light" grid object produced by clStormLight.
This class's namestring is "stochastic bilevel mortshell". The parameter file call string is "Stochastic Bi-Level Mortality".
Copyright 2005 Charles D. Canham.
|
Constructor.
|
|
Calculates mortality. This retrieves the light level in the tree's grid cell. If it is above the threshold, the high-light mortality probability is used. If it is below the threshold, the low-light probability is used. A random number is compared to the appropriate rate to see if the tree lives or dies.
Implements clMortalityBase. |
|
Reads in values from the parameter file.
Reimplemented from clMortalityBase. |
|
Probability of mortality at low light - sized number of behavior species. This value comes from the parameter file as an annual probability, which is transformed in DoShellSetup() to a timestep probability. |
|
Probability of mortality at low light - sized number of behavior species. This value comes from the parameter file as an annual probability, which is transformed in DoShellSetup() to a timestep probability. |