#include <PostHarvestSkiddingMort.h>
Public Member Functions | |
clPostHarvestSkiddingMort (clSimManager *p_oSimManager) | |
Constructor. | |
~clPostHarvestSkiddingMort () | |
Destructor. | |
void | DoShellSetup (xercesc::DOMDocument *p_oDoc) |
Reads in values from the parameter file, makes sure all data needed is collected, calls the function to setup the time since harvest grid, and registers the codes for harvest intensity. | |
whyDead | DoMort (clTree *p_oTree, const float &fDbh, const short int &iSpecies) |
Calculates mortality. | |
void | PreMortCalcs (clTreePopulation *p_oPop) |
Calls the function to calculate time since the last harvest once per timestep. | |
Protected Member Functions | |
void | SetupTimeSinceHarvestGrid () |
This creates the Years Since Harvest grid at the beginning of the simulation, and sets pointers to grids and saves other relevant grid info in class members. | |
float | LocalBasalAreaAroundTree (clTree *p_oTree) |
This calculates the basal area (in m2/ha) of all trees within a certain distance of the tree passed as an argument. | |
int | GetTimeSinceHarvest (clTree *p_oTree) |
Returns the Time value from the Time Since Harvest grid at the location of a tree. | |
void | CalcTimeSinceHarvest () |
Updates the Years Since Last Harvest grid. | |
Protected Attributes | |
float * | mp_fPreHarvestBackgroundMort |
Parameter for the annual mortality rate before harvesting. | |
float * | mp_fWindthrowHarvestBasicProb |
Parameter for the basic post-harvest increase in windthrow mortality. | |
float * | mp_fSnagRecruitHarvestBasicProb |
Parameter for the basic post-harvest increase in snag-recruitment mortality. | |
float * | mp_fWindthrowSizeEffect |
Parameter for the increase in post-harvest windthrow mortality with size. | |
float * | mp_fWindthrowHarvestIntensityEffect |
Parameter for the increase in post-harvest windthrow mortality with nearby harvesting. | |
float * | mp_fSnagRecruitHarvestIntensityEffect |
Parameter for the increase in post-harvest snag-recruitment mortality with nearby harvesting. | |
float * | mp_fWindthrowCrowdingEffect |
Parameter for the decrease in post-harvest windthrow mortality with crowding. | |
float * | mp_fSnagRecruitCrowdingEffect |
Parameter for the increase in post-harvest snag-recruitment mortality with crowding. | |
float * | mp_fWindthrowHarvestRateParam |
Parameter for rate of decrease in post-harvest windthrow mortality with time since harvest. | |
float * | mp_fSnagRecruitHarvestRateParam |
Parameter for rate of decrease in post-harvest snag-recruitment mortality with time since harvest. | |
float * | mp_fWindthrowBackgroundProb |
Parameter for background post-harvest windthrow mortality. | |
float * | mp_fSnagRecruitBackgroundProb |
Parameter for background post-harvest snag-recruitment mortality. | |
float | m_fCrowdingEffectRadius |
Distance from a tree at which local basal area is calculated for crowding effect. | |
int | m_iHarvestTypeCode |
Code for Harvest Type in Harvest Results grid. | |
int ** | mp_iHarvestIntensityCodes |
Codes for the harvest intensity around each tree. | |
int | m_iTimeCode |
Code for Time (since last harvest) in the Years Since Last Harvest grid. | |
int | m_iLastUpdated |
Code for LastUpdated (timestep) in the Years Since Last Harvest grid. | |
int | m_iNumXCells |
Number of X cells in grids. | |
int | m_iNumYCells |
Number of Y cells in grids. | |
clGridBase * | mp_oTimeSinceHarvestGrid |
Pointer to Years Since Last Harvest grid. | |
clGridBase * | mp_oHarvestResultsGrid |
Pointer to Harvest Results grid. | |
float | m_fNumberYearsPerTimestep |
Number of years per timestep. |
This evaluates mortality as a function of time since the last harvest, harvest intensity, DBH, and local basal area. If harvesting has not occurred, then a constant background mortality rate is applied.
This class's namestring is "PostHarvestSkiddingMortshell". Its parameter file call string is "postharvestskiddingmortality".
Copyright 2003 Charles D. Canham.
clPostHarvestSkiddingMort::clPostHarvestSkiddingMort | ( | clSimManager * | p_oSimManager | ) |
Constructor.
Sets the namestring.
clPostHarvestSkiddingMort::~clPostHarvestSkiddingMort | ( | ) |
Destructor.
void clPostHarvestSkiddingMort::DoShellSetup | ( | xercesc::DOMDocument * | p_oDoc | ) | [virtual] |
Reads in values from the parameter file, makes sure all data needed is collected, calls the function to setup the time since harvest grid, and registers the codes for harvest intensity.
p_oDoc | Parsed DOM tree of parameter file. |
Reimplemented from clMortalityBase.
whyDead clPostHarvestSkiddingMort::DoMort | ( | clTree * | p_oTree, | |
const float & | fDbh, | |||
const short int & | iSpecies | |||
) | [virtual] |
Calculates mortality.
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 clPostHarvestSkiddingMort::PreMortCalcs | ( | clTreePopulation * | p_oPop | ) | [virtual] |
Calls the function to calculate time since the last harvest once per timestep.
p_oPop | Pointer to tree population object. |
Reimplemented from clMortalityBase.
void clPostHarvestSkiddingMort::SetupTimeSinceHarvestGrid | ( | ) | [protected] |
This creates the Years Since Harvest grid at the beginning of the simulation, and sets pointers to grids and saves other relevant grid info in class members.
float clPostHarvestSkiddingMort::LocalBasalAreaAroundTree | ( | clTree * | p_oTree | ) | [protected] |
This calculates the basal area (in m2/ha) of all trees within a certain distance of the tree passed as an argument.
p_oTree | Tree being evaluated |
int clPostHarvestSkiddingMort::GetTimeSinceHarvest | ( | clTree * | p_oTree | ) | [protected] |
Returns the Time value from the Time Since Harvest grid at the location of a tree.
If there has been no harvest in the tree's grid cell, a value of 1000 will be returned.
p_oTree | Tree being evaluated |
void clPostHarvestSkiddingMort::CalcTimeSinceHarvest | ( | ) | [protected] |
Updates the Years Since Last Harvest grid.
Note that harvesting occurs at the beginning of the timestep, but mortality occurs at the end of the timestep. So, if there was harvesting this timestep post-harvest mortality will be calculated annually for 1 to (Years per timestep) years after harvesting.
float* clPostHarvestSkiddingMort::mp_fPreHarvestBackgroundMort [protected] |
Parameter for the annual mortality rate before harvesting.
float* clPostHarvestSkiddingMort::mp_fWindthrowHarvestBasicProb [protected] |
Parameter for the basic post-harvest increase in windthrow mortality.
float* clPostHarvestSkiddingMort::mp_fSnagRecruitHarvestBasicProb [protected] |
Parameter for the basic post-harvest increase in snag-recruitment mortality.
float* clPostHarvestSkiddingMort::mp_fWindthrowSizeEffect [protected] |
Parameter for the increase in post-harvest windthrow mortality with size.
float* clPostHarvestSkiddingMort::mp_fWindthrowHarvestIntensityEffect [protected] |
Parameter for the increase in post-harvest windthrow mortality with nearby harvesting.
float* clPostHarvestSkiddingMort::mp_fSnagRecruitHarvestIntensityEffect [protected] |
Parameter for the increase in post-harvest snag-recruitment mortality with nearby harvesting.
float* clPostHarvestSkiddingMort::mp_fWindthrowCrowdingEffect [protected] |
Parameter for the decrease in post-harvest windthrow mortality with crowding.
float* clPostHarvestSkiddingMort::mp_fSnagRecruitCrowdingEffect [protected] |
Parameter for the increase in post-harvest snag-recruitment mortality with crowding.
float* clPostHarvestSkiddingMort::mp_fWindthrowHarvestRateParam [protected] |
Parameter for rate of decrease in post-harvest windthrow mortality with time since harvest.
float* clPostHarvestSkiddingMort::mp_fSnagRecruitHarvestRateParam [protected] |
Parameter for rate of decrease in post-harvest snag-recruitment mortality with time since harvest.
float* clPostHarvestSkiddingMort::mp_fWindthrowBackgroundProb [protected] |
Parameter for background post-harvest windthrow mortality.
float* clPostHarvestSkiddingMort::mp_fSnagRecruitBackgroundProb [protected] |
Parameter for background post-harvest snag-recruitment mortality.
float clPostHarvestSkiddingMort::m_fCrowdingEffectRadius [protected] |
Distance from a tree at which local basal area is calculated for crowding effect.
int clPostHarvestSkiddingMort::m_iHarvestTypeCode [protected] |
Code for Harvest Type in Harvest Results grid.
int** clPostHarvestSkiddingMort::mp_iHarvestIntensityCodes [protected] |
Codes for the harvest intensity around each tree.
int clPostHarvestSkiddingMort::m_iTimeCode [protected] |
Code for Time (since last harvest) in the Years Since Last Harvest grid.
int clPostHarvestSkiddingMort::m_iLastUpdated [protected] |
Code for LastUpdated (timestep) in the Years Since Last Harvest grid.
int clPostHarvestSkiddingMort::m_iNumXCells [protected] |
Number of X cells in grids.
int clPostHarvestSkiddingMort::m_iNumYCells [protected] |
Number of Y cells in grids.
Pointer to Years Since Last Harvest grid.
Pointer to Harvest Results grid.
float clPostHarvestSkiddingMort::m_fNumberYearsPerTimestep [protected] |
Number of years per timestep.