clBCMort Class Reference

BC Mortality - Version 1.0. More...

#include <BCMort.h>

Inheritance diagram for clBCMort:

clMortalityBase clBehaviorBase clWorkerBase List of all members.

Public Member Functions

 clBCMort (clSimManager *p_oSimManager)
 Constructor.
 ~clBCMort ()
 Destructor.
void DoShellSetup (xercesc::DOMDocument *p_oDoc)
 Reads in values from the parameter file and makes sure all data needed is collected.
bool DoMort (clTree *p_oTree, const float &fDbh, const short int &iSpecies)
 Calculates mortality according to the BC mortality equation.

Protected Member Functions

void GetGrowthVariableCodes ()
 Queries for the return codes of the "Growth" float data member of a tree.

Protected Attributes

short int ** mp_iGrowthCodes
 data member codes for "Growth" member - species by type
float * mp_fMortAtZeroGrowth
 Mortality at zero growth - old code m1.
float * mp_fLightDepMort
 Light dependent mortality - old code m2.
float m_fNumberYearsPerTimestep
 Number of years per timestep.

Detailed Description

BC Mortality - Version 1.0.

This evaluates mortality according to the BC mortality equation.

This class's namestring is "bcmortshell".

NOTE from old code: mortality function in Kobe&Coates(1997) uses annual mm growth new function is not correct if m1 != 1.0 (Confirm this statement)

Copyright 2003 Charles D. Canham.

Author:
Lora E. Murphy

Edit history:
-----------------
April 28, 2004 - Submitted as beta (LEM)


Constructor & Destructor Documentation

clBCMort::clBCMort clSimManager p_oSimManager  ) 
 

Constructor.

Sets the namestring.


Member Function Documentation

bool clBCMort::DoMort clTree p_oTree,
const float &  fDbh,
const short int &  iSpecies
[virtual]
 

Calculates mortality according to the BC mortality equation.

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:
True if the tree is to die, false if it lives.

Implements clMortalityBase.

void clBCMort::DoShellSetup xercesc::DOMDocument *  p_oDoc  )  [virtual]
 

Reads in values from the parameter file and makes sure all data needed is collected.

Parameters:
p_oDoc Parsed DOM tree of parameter file.

Reimplemented from clMortalityBase.

void clBCMort::GetGrowthVariableCodes  )  [protected]
 

Queries for the return codes of the "Growth" float data member of a tree.

This data member should have been registered by clGrowthBase child classes. Return codes are captured in the mp_iGrowthCodes array.

Exceptions:
modelErr if there is no code for any species/type combo which uses this behavior.


The documentation for this class was generated from the following file:
Generated on Mon Mar 27 12:51:09 2006 for SORTIE Core C++ Documentation by  doxygen 1.4.6-NO