SORTIE C++ Test Documentation
|
This class tests the non-spatial dispersal behavior. More...
#include <TestNonSpatialDispersal.h>
Public Member Functions | |
void | TestNonSpatialDispersal () |
Rolls together all the non-spatial dispersal tests. | |
Private Member Functions | |
void | TestNonSpatialDispersal1 (clSimManager *p_oSimManager) |
Tests non-spatial dispersal, run 1. | |
void | TestNonSpatialDispersal2 (clSimManager *p_oSimManager) |
Tests non-spatial dispersal, run 2. | |
const char * | WriteXMLFile1 () |
Writes a parameter file to direct testing using the first set of testing conditions. | |
const char * | WriteXMLFile2 () |
Writes a parameter file to direct testing using the second set of testing conditions (same as the first set, just different number of years per timestep). | |
This class tests the non-spatial dispersal behavior.
It writes out parameter files and uses them as input to perform setup; it then sets up the desired initial conditions, causes the behavior to run, then tests its output. There will be two normal processing runs. Both use deterministic seed numbers, which should equal the expected mean +- 1.
void clTestNonSpatialDispersal::TestNonSpatialDispersal | ( | ) |
Rolls together all the non-spatial dispersal tests.
|
private |
Tests non-spatial dispersal, run 1.
It will cause a parameter file to be written and then passed to a clSimManager object. That object will read it. Then the non-spatial dispersal behavior is run. The number of seedlings per grid cell is compared with expected values.
p_oSimManager | Sim manager to direct testing. |
|
private |
Tests non-spatial dispersal, run 2.
It will cause a parameter file to be written and then passed to a clSimManager object. That object will read it. Then the non-spatial dispersal behavior is run. The number of seeds per grid cell is compared with expected values.
p_oSimManager | Sim manager to direct testing. |
|
private |
Writes a parameter file to direct testing using the first set of testing conditions.
This contains all tree information and disperse information. It also has a tree map so we'll be dealing with a known list of trees. The timestep length is 1 year.
|
private |
Writes a parameter file to direct testing using the second set of testing conditions (same as the first set, just different number of years per timestep).
This contains all tree information and disperse information. It also has a tree map so we'll be dealing with a known list of trees. The timestep length is three years.