#include <TestSeedPredation.h>
Public Member Functions | |
void | TestSeedPredation () |
Rolls up all the seed predation tests. | |
Protected Member Functions | |
void | TestErrorProcessing (clSimManager *p_oSimManager) |
Tests error processing for bad input. | |
void | TestSeedPredationNormal (clSimManager *p_oSimManager) |
Creates a controlled run. | |
void | TestSetup1 (clSimManager *p_oSimManager) |
Tests setup under normal processing conditions for WriteXMLFile2. | |
void | TestSetup2 (clSimManager *p_oSimManager) |
Tests setup under normal processing conditions for WriteXMLFile3. | |
void | TestSetup3 (clSimManager *p_oSimManager) |
Tests setup under normal processing conditions for WriteXMLFile4. | |
void | TestSetup4 (clSimManager *p_oSimManager) |
Tests setup under normal processing conditions for WriteXMLFile5. | |
void | TestDensities (clSimManager *p_oSimManager) |
This verifies that densities are correctly written each timestep. | |
void | TestSeedOfftake (clSimManager *p_oSimManager) |
This verifies that the correct number of seeds is left in the seed grid after the model runs. | |
char * | WriteXMLFile1 () |
Writes an XML file that will create the sim manager so we can create a grid through the proper channels. | |
char * | WriteXMLFile2 () |
Writes an XML file that will create the sim manager so we can create a grid through the proper channels. | |
char * | WriteXMLFile3 () |
Writes an XML file that will create the sim manager so we can create a grid through the proper channels. | |
char * | WriteXMLFile4 () |
Writes an XML file that will create the sim manager so we can create a grid through the proper channels. | |
char * | WriteXMLFile5 () |
Writes an XML file that will create the sim manager so we can create a grid through the proper channels. | |
char * | WriteXMLFile6 () |
Writes a file with two timesteps where predator densities are to be preserved. | |
char * | WriteXMLFile7 () |
Writes a file with two timesteps where predator densities are not to be preserved. | |
char * | WriteXMLFile8 () |
Writes a file with multiple species, including one that is not applied to seed predation. | |
char * | WriteXMLErrorFile1 () |
Creates file that has a predator initial density of 0. | |
char * | WriteXMLErrorFile2 () |
Creates file that has no disperse behaviors. | |
char * | WriteXMLErrorFile3 () |
Creates file that has maps for seed grid and seed predators, and X resolutions don't match. | |
char * | WriteXMLErrorFile4 () |
Creates file that has weeks of seedfall = 0. | |
char * | WriteXMLErrorFile5 () |
Creates file that has weeks of model = 0. | |
char * | WriteXMLErrorFile6 () |
Creates file that has maps for seed grid and seed predators, and Y resolutions don't match. | |
char * | WriteXMLErrorFile7 () |
Creates file that has a map for seed predators, but is missing the data member "num preds". | |
char * | WriteXMLErrorFile8 () |
Creates file where week germination starts is < 0. | |
char * | WriteXMLErrorFile9 () |
Creates file where week germination starts is > 52. | |
char * | WriteXMLErrorFile10 () |
Creates file where proportion germinating is < 0. | |
char * | WriteXMLErrorFile11 () |
Creates file where proportion germinating is > 1. |
This can't do a thorough test - this will test error processing and cause an output file to be printed of seed model results so the output can be checked manually.
|
This verifies that densities are correctly written each timestep. If the predator densities are to be preserved, the values in the predator grid will be different after a second timestep; if they are not, it will be the same (assuming the seed grid input is the same). WriteXMLFile6() will create the file with two timesteps where the densities are to be preserved; WriteXMLFile7() is the same but densities are not to be preserved. |
|
This verifies that the correct number of seeds is left in the seed grid after the model runs. This is based on Wendy's spreadsheet - how many should be left if you subtract all the offtake from the original number. This will use WriteXMLFile1(). |
|
Creates a controlled run. Writes an XML file (WriteXMLFile1) and runs it one timestep to produce output. |
|
Tests setup under normal processing conditions for WriteXMLFile2. This makes sure that maps are treated correctly and initial densities set up right. |
|
Tests setup under normal processing conditions for WriteXMLFile3. This makes sure that maps are treated correctly and initial densities set up right. |
|
Tests setup under normal processing conditions for WriteXMLFile4. This makes sure that maps are treated correctly and initial densities set up right. |
|
Tests setup under normal processing conditions for WriteXMLFile5. This makes sure that maps are treated correctly and initial densities set up right. |
|
Writes an XML file that will create the sim manager so we can create a grid through the proper channels. Characteristics:
|
|
Writes an XML file that will create the sim manager so we can create a grid through the proper channels. Characteristics:
|
|
Writes an XML file that will create the sim manager so we can create a grid through the proper channels. Characteristics:
|
|
Writes an XML file that will create the sim manager so we can create a grid through the proper channels. Characteristics:
|
|
Writes an XML file that will create the sim manager so we can create a grid through the proper channels. Characteristics:
|
|
Writes a file with two timesteps where predator densities are to be preserved.
|
|
Writes a file with two timesteps where predator densities are not to be preserved.
|
|
Writes a file with multiple species, including one that is not applied to seed predation.
|