#include <TestTreeAgeCalculator.h>
Public Member Functions | |
void | TestTreeAgeCalculator () |
Performs all the tests from one function. | |
Protected Member Functions | |
void | TestNormalProcessingRun1 (clSimManager *p_oSimManager) |
Tests normal processing, run 1. | |
void | TestNormalProcessingRun2 (clSimManager *p_oSimManager) |
Tests normal processing, run 2. | |
void | TestErrorProcessing (clSimManager *p_oSimManager) |
Tests error processing. | |
char * | WriteXMLFile1 () |
Writes the parameter file for normal processing. | |
char * | WriteXMLFile2 () |
Writes the parameter file for normal processing. | |
char * | WriteXMLErrorFile1 () |
Writes an error file where the behavior is applied to snags. |
|
Tests error processing. This uses WriteXMLErrorFile1() to introduce errors and makes sure that they are caught. |
|
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.
|
|
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.
|
|
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.
|
|
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.
|