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

This calculates a basal area ratio for a tree, using a single default value for target tree size. More...

#include <NCITermBARatioDBHDefault.h>

Inheritance diagram for clNCITermBARatioDBHDefault:
clNCITermBase

Public Member Functions

 clNCITermBARatioDBHDefault ()
 Constructor. More...
 
ncivals CalculateNCITerm (clTree *p_oTree, clTreePopulation *p_oPop, clPlot *p_oPlot, const float &fX, const float &fY, const int &iSpecies)
 Destructor. More...
 
void DoSetup (clTreePopulation *p_oPop, clBehaviorBase *p_oNCI, xercesc::DOMElement *p_oElement)
 Does setup. More...
 
- Public Member Functions inherited from clNCITermBase
 clNCITermBase ()
 Constructor. More...
 
int GetNumberNCIs ()
 
virtual void PreCalcs (clTreePopulation *p_oPop)
 Performs calculations like either clGrowthBase::PreGrowthCalcs or clMortalityBase::PreMortCalcs. More...
 
virtual ~clNCITermBase ()
 Destructor. More...
 
bool DoesRequireTargetDiam ()
 

Protected Attributes

double m_fMaxCrowdingRadius
 Maximum search radius, in meters, in which to look for neighbors. More...
 
double m_fMaxAdultRadius
 Maximum search radius, in meters, in which to look for crowding adult neighbors. More...
 
double m_fMaxSaplingRadius
 Maximum search radius, in meters, in which to look for crowding sapling neighbors. More...
 
float m_fMinSaplingHeight
 Minimum sapling height. More...
 
double m_fDefaultBA
 Basal area for default size. More...
 
- Protected Attributes inherited from clNCITermBase
bool bRequiresTargetDiam
 Whether or not this effect depends on a target diameter being available. More...
 
int iNumNCIs
 Number of NCI values calculated and populated into ncivals. More...
 

Detailed Description

This calculates a basal area ratio for a tree, using a single default value for target tree size.

This returns two terms: term #1 is the total basal area of neighbors; and term #2 is the ratio of mean basal area of neighbors to target basal area.

NCI ignores neighbors with disturbance and harvest death codes. Natural deaths are NOT ignored, because it presumes that those deaths occurred in the current timestep and they should still be considered as live neighbors.

This behavior uses two different distances to look for neighbors. One is for saplings, and one is for adults.

Constructor & Destructor Documentation

◆ clNCITermBARatioDBHDefault()

clNCITermBARatioDBHDefault::clNCITermBARatioDBHDefault ( )

Constructor.

Member Function Documentation

◆ CalculateNCITerm()

ncivals clNCITermBARatioDBHDefault::CalculateNCITerm ( clTree p_oTree,
clTreePopulation p_oPop,
clPlot p_oPlot,
const float &  fX,
const float &  fY,
const int &  iSpecies 
)
virtual

Destructor.

Not needed. Calculates NCI according to above equation.

Parameters
p_oTreeTree for which to calculate NCI.
p_oPopTree population.
p_oPlotPlot object.
fXX coordinate for which to calculate NCI.
fYY coordinate for which to calculate NCI.
iSpeciesSpecies for which to calculate NCI.

Implements clNCITermBase.

◆ DoSetup()

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

Does setup.

Parameters
p_oPopTree population.
p_oNCINCI behavior object.
p_oElementRoot element of the behavior.
Exceptions
ModelExceptionif the max radius of neighbor effects is < 0.

Implements clNCITermBase.

Member Data Documentation

◆ m_fDefaultBA

double clNCITermBARatioDBHDefault::m_fDefaultBA
protected

Basal area for default size.

◆ m_fMaxAdultRadius

double clNCITermBARatioDBHDefault::m_fMaxAdultRadius
protected

Maximum search radius, in meters, in which to look for crowding adult neighbors.

◆ m_fMaxCrowdingRadius

double clNCITermBARatioDBHDefault::m_fMaxCrowdingRadius
protected

Maximum search radius, in meters, in which to look for neighbors.

◆ m_fMaxSaplingRadius

double clNCITermBARatioDBHDefault::m_fMaxSaplingRadius
protected

Maximum search radius, in meters, in which to look for crowding sapling neighbors.

◆ m_fMinSaplingHeight

float clNCITermBARatioDBHDefault::m_fMinSaplingHeight
protected

Minimum sapling height.

For doing neighbor searches.


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