SORTIE Core C++ Documentation
|
Provides a base for objects that calculate the NCI term(s). More...
#include <NCITermBase.h>
Classes | |
struct | ncivals |
Holds multiple values for NCI. More... | |
Public Member Functions | |
clNCITermBase () | |
Constructor. More... | |
int | GetNumberNCIs () |
virtual void | PreCalcs (clTreePopulation *p_oPop) |
Performs calculations like either clGrowthBase::PreGrowthCalcs or clMortalityBase::PreMortCalcs. More... | |
virtual ncivals | CalculateNCITerm (clTree *p_oTree, clTreePopulation *p_oPop, clPlot *p_oPlot, const float &fX, const float &fY, const int &iSpecies)=0 |
Calculates NCI term. More... | |
virtual void | DoSetup (clTreePopulation *p_oPop, clBehaviorBase *p_oNCI, xercesc::DOMElement *p_oElement)=0 |
Does any desired setup. More... | |
virtual | ~clNCITermBase () |
Destructor. More... | |
bool | DoesRequireTargetDiam () |
Protected Attributes | |
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... | |
Provides a base for objects that calculate the NCI term(s).
The default is that objects descended from this class can handle any tree type. If this is not the case, child objects must throw the appropriate error during setup.
|
inline |
Constructor.
Sets defaults.
|
inlinevirtual |
Destructor.
|
pure virtual |
Calculates NCI term.
p_oTree | Tree for which to calculate NCI. If bRequiresTargetDiam is false, be prepared for this to be NULL. |
p_oPop | Tree population. |
p_oPlot | Plot object. |
fX | X coordinate for which to calculate NCI. Needed if p_oTree is NULL. |
fY | Y coordinate for which to calculate NCI. Needed if p_oTree is NULL. |
iSpecies | Species for which to calculate NCI. Needed if p_oTree is NULL. |
Implemented in clNCITermWithNeighborDamage, clNCITermNCIBARatio, clNCIWithSeedlings, clNCITermDefault, clNCITermBARatioDBHDefault, clNCITermBARatio, clNCINeighborBA, clNCILargerNeighbors, and clNCITermNone.
|
inline |
|
pure virtual |
Does any desired setup.
p_oPop | Tree population. |
p_oNCI | NCI behavior object. |
p_oElement | Root element of the behavior. |
Implemented in clNCITermNCITempDepBARatio, clNCITermWithNeighborDamage, clNCITermNCIBARatio, clNCIWithSeedlings, clNCITermDefault, clNCITermBARatioDBHDefault, clNCITermBARatio, clNCINeighborBA, clNCILargerNeighbors, and clNCITermNone.
|
inline |
|
inlinevirtual |
Performs calculations like either clGrowthBase::PreGrowthCalcs or clMortalityBase::PreMortCalcs.
Reimplemented in clNCITermNCITempDepBARatio.
|
protected |
Whether or not this effect depends on a target diameter being available.
|
protected |
Number of NCI values calculated and populated into ncivals.