#include <TreeRemover.h>
Inheritance diagram for clTreeRemover:
Public Member Functions | |
clTreeRemover (clSimManager *p_oSimManager) | |
Constructor. | |
~clTreeRemover () | |
Destructor. | |
void | Action () |
Does all the tree killin'. | |
void | GetData (xercesc::DOMDocument *p_oDoc) |
Gets the data member codes for the "dead" data member. | |
Protected Attributes | |
clTreePopulation * | mp_oPop |
Stashed pointer to avoid having to keep getting it. | |
short int ** | mp_iDeadCodes |
Return codes for the "dead" tree bool data member variable. | |
short int | m_iNumTotalSpecies |
Total number of species - for destructor. |
This behavior will remove all trees that have been marked for death by mortality. If a tree has a value of true in its "dead" data member, this will direct it to be removed from the tree population by calling clTreePopulation::KillTree(). The reason code will always be set to "natural".
If this is applied to any species/type combo that does not have "dead" registered, an error will be thrown during setup.
The namestring and parameter call string for this behavior are both "removedead".
Copyright 2003 Charles D. Canham.
|
Constructor.
|
|
Does all the tree killin'. This goes through all trees in the tree population to which this behavior is applied, and if any have true as the value in their "dead" data member, their "dead" data member is set to false and they are passed to clTreePopulation::KillTree() with a reason code of "natural". Reimplemented from clBehaviorBase. |
|
Gets the data member codes for the "dead" data member.
Implements clWorkerBase. |
|
Return codes for the "dead" tree bool data member variable. Array size is species by type (even if not every species and type is represented) |