#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. | |
void | VerifyXMLFile1 (clGridBase *p_oSeedGrid) |
Verifies the seedling counts for TestNonSpatialDispersal1. | |
void | VerifyXMLFile2 (clGridBase *p_oSeedGrid) |
Verifies the seedling counts for TestNonSpatialDispersal2. | |
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::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 seeds per grid cell is compared with expected values.
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.
void clTestNonSpatialDispersal::VerifyXMLFile1 | ( | clGridBase * | p_oSeedGrid | ) | [private] |
Verifies the seedling counts for TestNonSpatialDispersal1.
p_oSeedGrid | Dispersed seeds grid. |
void clTestNonSpatialDispersal::VerifyXMLFile2 | ( | clGridBase * | p_oSeedGrid | ) | [private] |
Verifies the seedling counts for TestNonSpatialDispersal2.
p_oSeedGrid | Dispersed seeds grid. |
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.