#include <Establishment.h>
Inheritance diagram for clEstablishment:
Public Member Functions | |
clEstablishment (clSimManager *p_oSimManager) | |
Constructor. | |
~clEstablishment () | |
Destructor. | |
void | GetData (xercesc::DOMDocument *p_oDoc) |
Does setup. | |
void | Action () |
Performs establishment. | |
void | TimestepCleanup () |
Zeroes out the seed grid. | |
Protected Attributes | |
clGridBase * | mp_oSeedGrid |
Pointer to the "Dispersed Seeds" grid created by disperse behaviors. | |
short int * | mp_iSeedGridCode |
Data member codes for seed grid for number of seeds. |
This behavior germinates seeds into seedlings. For each species to which this behavior is applied, this behavior takes all seeds in each grid cell of the seed grid and randomly places them around the area encompassed by the grid cell. The tree population is allowed to randomly pick a diameter at 10 cm.
To reduce memory requirements, a seedling efficiency routine can be turned on. For each seedling created, it will immediately assess its probability of surviving the next timestep, based on conditions in this timestep (with certain exceptions). If it is determined that the seedling is not likely to survive, it is removed right away. This cuts down on the total number of seedlings that needs to be under management at any one time - which can be significant for particularly fecund trees; millions of seedlings can be created, of which only a few percent will survive the next timestep, but which suck RAM tremendously in the meantime.
A fatal error is thrown if there are no disperse behaviors for the run.
The namestring and parameter file call string for this class is "Establishment". Apply this behavior to species; use any type, since it will be ignored.
Copyright 2005 Charles D. Canham.
clEstablishment::clEstablishment | ( | clSimManager * | p_oSimManager | ) |
Constructor.
p_oSimManager | Sim Manager object. |
void clEstablishment::GetData | ( | xercesc::DOMDocument * | p_oDoc | ) | [virtual] |
Does setup.
This reads in the "use efficiency routine" flag from the parameter file and gets pointers to the dispersed seeds grid.
p_oDoc | DOM tree of parsed input file. |
modelErr | if there is not a disperse behavior used for each species that gets establishment. |
Implements clWorkerBase.
void clEstablishment::Action | ( | ) | [virtual] |
Performs establishment.
All seeds get a random location within the grid cell they are in and then become seedlings.
Reimplemented from clBehaviorBase.
clGridBase* clEstablishment::mp_oSeedGrid [protected] |
Pointer to the "Dispersed Seeds" grid created by disperse behaviors.
short int* clEstablishment::mp_iSeedGridCode [protected] |
Data member codes for seed grid for number of seeds.
Array size is # total species.