#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. | |
char * | WriteXMLFile1 () |
Writes a parameter file to direct testing using the first set of testing conditions. | |
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). |
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.
void clTestNonSpatialDispersal::TestNonSpatialDispersal1 | ( | clSimManager * | p_oSimManager | ) | [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. |
void clTestNonSpatialDispersal::TestNonSpatialDispersal2 | ( | clSimManager * | p_oSimManager | ) | [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. |
char* clTestNonSpatialDispersal::WriteXMLFile1 | ( | ) | [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.
char* clTestNonSpatialDispersal::WriteXMLFile2 | ( | ) | [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.