Tests the class clTreeAgeCalculator.
More...
#include <TestTreeAgeCalculator.h>
Tests the class clTreeAgeCalculator.
void clTestTreeAgeCalculator::TestErrorProcessing |
( |
clSimManager * |
p_oSimManager | ) |
|
|
protected |
Tests error processing.
This uses WriteXMLErrorFile1() to introduce errors and makes sure that they are caught.
void clTestTreeAgeCalculator::TestNormalProcessingRun1 |
( |
clSimManager * |
p_oSimManager | ) |
|
|
protected |
Tests normal processing, run 1.
WriteXMLFile1() does setup. Several trees are created and their age checked to make sure it's correct after each of two timesteps.
- Parameters
-
p_oSimManager | Sim Manager object to call for runs. |
void clTestTreeAgeCalculator::TestNormalProcessingRun2 |
( |
clSimManager * |
p_oSimManager | ) |
|
|
protected |
Tests normal processing, run 2.
WriteXMLFile2() does setup. Several trees are created and their age checked to make sure it's correct after each of two timesteps.
- Parameters
-
p_oSimManager | Sim Manager object to call for runs. |
void clTestTreeAgeCalculator::TestTreeAgeCalculator |
( |
| ) |
|
Performs all the tests from one function.
const char* clTestTreeAgeCalculator::WriteXMLErrorFile1 |
( |
| ) |
|
|
protected |
Writes an error file where the behavior is applied to snags.
const char* clTestTreeAgeCalculator::WriteXMLFile1 |
( |
| ) |
|
|
protected |
Writes the parameter file for normal processing.
There is 1 species; timestep length is 1 year; there is only one behavior, the tree age calculator behavior. There are 30 trees in a tree map, 10 of which have an age specified, 10 of which do not, and 10 of which do not have the age behavior applied.
- Returns
- Filename written.
const char* clTestTreeAgeCalculator::WriteXMLFile2 |
( |
| ) |
|
|
protected |
Writes the parameter file for normal processing.
There is 1 species; timestep length is 3 years; there is only one behavior, the tree age calculator behavior. There are also 10 trees per hectare as initial conditions.
- Returns
- Filename written.
The documentation for this class was generated from the following file: