clPostHarvestSkiddingMort Class Reference

Post-Harvest Skidding Mortality - Version 1.0. More...

#include <PostHarvestSkiddingMort.h>

Inheritance diagram for clPostHarvestSkiddingMort:

clMortalityBase clBehaviorBase clWorkerBase

List of all members.

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.
deadCode 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.
clGridBasemp_oTimeSinceHarvestGrid
 Pointer to Years Since Last Harvest grid.
clGridBasemp_oHarvestResultsGrid
 Pointer to Harvest Results grid.
float m_fNumberYearsPerTimestep
 Number of years per timestep.


Detailed Description

Post-Harvest Skidding Mortality - Version 1.0.

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.

Author:
Lora E. Murphy

Edit history:
-----------------
February 20, 2007 - Submitted as beta (MCV)

Constructor & Destructor Documentation

clPostHarvestSkiddingMort::clPostHarvestSkiddingMort ( clSimManager p_oSimManager  ) 

Constructor.

Sets the namestring.

clPostHarvestSkiddingMort::~clPostHarvestSkiddingMort (  ) 

Destructor.


Member Function Documentation

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.

Parameters:
p_oDoc Parsed DOM tree of parameter file.

Reimplemented from clMortalityBase.

deadCode clPostHarvestSkiddingMort::DoMort ( clTree p_oTree,
const float &  fDbh,
const short int &  iSpecies 
) [virtual]

Calculates mortality.

Parameters:
fDbh DBH of tree being evaluated - for seedlings will be 0
p_oTree Tree being evaluated
iSpecies Species of the tree being evaluated
Returns:
natural if the tree is to die, notdead if it lives.

Implements clMortalityBase.

void clPostHarvestSkiddingMort::PreMortCalcs ( clTreePopulation p_oPop  )  [virtual]

Calls the function to calculate time since the last harvest once per timestep.

Parameters:
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.

Parameters:
p_oTree Tree being evaluated
Returns:
The local basal area of nearby trees.

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.

Parameters:
p_oTree Tree being evaluated
Returns:
The time since harvest, in years, at the tree's location.

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.


Member Data Documentation

Parameter for the annual mortality rate before harvesting.

Parameter for the basic post-harvest increase in windthrow mortality.

Parameter for the basic post-harvest increase in snag-recruitment mortality.

Parameter for the increase in post-harvest windthrow mortality with size.

Parameter for the increase in post-harvest windthrow mortality with nearby harvesting.

Parameter for the increase in post-harvest snag-recruitment mortality with nearby harvesting.

Parameter for the decrease in post-harvest windthrow mortality with crowding.

Parameter for the increase in post-harvest snag-recruitment mortality with crowding.

Parameter for rate of decrease in post-harvest windthrow mortality with time since harvest.

Parameter for rate of decrease in post-harvest snag-recruitment mortality with time since harvest.

Parameter for background post-harvest windthrow mortality.

Parameter for background post-harvest snag-recruitment mortality.

Distance from a tree at which local basal area is calculated for crowding effect.

Code for Harvest Type in Harvest Results grid.

Codes for the harvest intensity around each tree.

Code for Time (since last harvest) in the Years Since Last Harvest grid.

Code for LastUpdated (timestep) in the Years Since Last Harvest grid.

Number of X cells in grids.

Number of Y cells in grids.

Pointer to Years Since Last Harvest grid.

Pointer to Harvest Results grid.

Number of years per timestep.


The documentation for this class was generated from the following file:

Generated on Tue Apr 19 13:56:15 2011 for SORTIE Core C++ Documentation by  doxygen 1.5.6