Tests the clTreeRemover class.
More...
#include <TestTreeRemover.h>
Tests the clTreeRemover class.
void clTestTreeRemover::TestErrorProcessing |
( |
clSimManager * |
p_oSimManager | ) |
|
|
protected |
Tests error processing.
- Parameters
-
p_oSimManager | Sim manager. |
void clTestTreeRemover::TestNormalProcessingRun1 |
( |
clSimManager * |
p_oSimManager | ) |
|
|
protected |
Tests TreeRemover.
Reads in the file created by WriteXMLFile1(). The file has the following characteristics:
-
3 species - Species 1, Species 2, Species 3.
-
Adult self-thinning, applied to adults and snags of species 1 and 2.
-
Tree remover behavior, applied to adults of Species 1.
-
Tree map. Each tree's number equals its X coordinate. The map has the following trees:
-
X = 1 - Adult, Species 1.
-
X = 2 - Adult, Species 1.
-
X = 3 - Adult, Species 2.
-
X = 4 - Adult, Species 2.
-
X = 5 - Adult, Species 3.
-
The value of the "dead" data member is set to true for trees 1 and 3. Then the TreeRemover behavior is run. Only tree 1 should go away.
- Parameters
-
p_oSimManager | Sim manager. |
void clTestTreeRemover::TestTreeRemover |
( |
| ) |
|
Rolls all tests into a single one.
const char* clTestTreeRemover::WriteXMLErrorFile1 |
( |
| ) |
|
|
protected |
Writes a parameter file with an error - the TreeRemover behavior is assigned to a tree species/type combo that is not also assigned to a mortality behavior.
- Returns
- Filename written.
const char* clTestTreeRemover::WriteXMLFile1 |
( |
| ) |
|
|
protected |
The documentation for this class was generated from the following file: