SORTIE Core C++ Documentation
Public Member Functions | Protected Attributes | List of all members
clDamageEffectDefault Class Reference

This returns the damage effect due to storms. More...

#include <DamageEffectDefault.h>

Inheritance diagram for clDamageEffectDefault:
clDamageEffectBase

Public Member Functions

 clDamageEffectDefault ()
 Constructor. More...
 
 ~clDamageEffectDefault ()
 Destructor. More...
 
double CalculateDamageEffect (clTree *p_oTree)
 Calculates damage effect. More...
 
void DoSetup (clTreePopulation *p_oPop, clBehaviorBase *p_oNCI, xercesc::DOMElement *p_oElement)
 Does any desired setup. More...
 
- Public Member Functions inherited from clDamageEffectBase
virtual void PreCalcs (clTreePopulation *p_oPop)
 Performs calculations like either clGrowthBase::PreGrowthCalcs or clMortalityBase::PreMortCalcs. More...
 
virtual ~clDamageEffectBase ()
 Destructor. More...
 

Protected Attributes

short int ** mp_iDamageCodes
 Holds return data codes for the "stm_dmg" tree data member. More...
 
double * mp_fMedDamageStormEff
 Damage Effect parameter for target trees with medium damage. More...
 
double * mp_fFullDamageStormEff
 Damage Effect parameter for target trees with full damage. More...
 
int m_iNumberTotalSpecies
 Number of total species. More...
 

Detailed Description

This returns the damage effect due to storms.

Storm Effect is an input parameter. There is one for trees with medium damage and one for trees with full damage. Each is a value between 0 and 1. If the damage counter of the target tree = 0 (tree is undamaged), Storm Effect equals 1.

Constructor & Destructor Documentation

◆ clDamageEffectDefault()

clDamageEffectDefault::clDamageEffectDefault ( )

Constructor.

◆ ~clDamageEffectDefault()

clDamageEffectDefault::~clDamageEffectDefault ( )

Destructor.

Member Function Documentation

◆ CalculateDamageEffect()

double clDamageEffectDefault::CalculateDamageEffect ( clTree p_oTree)
virtual

Calculates damage effect.

Parameters
p_oTreeTree for which to calculate damage effect.

Implements clDamageEffectBase.

◆ DoSetup()

void clDamageEffectDefault::DoSetup ( clTreePopulation p_oPop,
clBehaviorBase p_oNCI,
xercesc::DOMElement *  p_oElement 
)
virtual

Does any desired setup.

Parameters
p_oPopTree population.
p_oNCINCI behavior object.
p_oElementRoot element of the behavior.
Exceptions
ModelExceptionif Storm Effect parameters are not between 0 and 1.

Implements clDamageEffectBase.

Member Data Documentation

◆ m_iNumberTotalSpecies

int clDamageEffectDefault::m_iNumberTotalSpecies
protected

Number of total species.

For the destructor.

◆ mp_fFullDamageStormEff

double* clDamageEffectDefault::mp_fFullDamageStormEff
protected

Damage Effect parameter for target trees with full damage.

Array is sized number of species.

◆ mp_fMedDamageStormEff

double* clDamageEffectDefault::mp_fMedDamageStormEff
protected

Damage Effect parameter for target trees with medium damage.

Array is sized number of species.

◆ mp_iDamageCodes

short int** clDamageEffectDefault::mp_iDamageCodes
protected

Holds return data codes for the "stm_dmg" tree data member.

Array size is number of total species by number of types.


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