clTestFuncResponseSeedPredation Class Reference

Tests seed predation. More...

#include <TestFuncResponseSeedPredation.h>

List of all members.

Public Member Functions

void TestFuncResponseSeedPredation ()
 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.


Detailed Description

Tests seed predation.

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.


Member Function Documentation

void clTestFuncResponseSeedPredation::TestSeedPredationNormal ( clSimManager *  p_oSimManager  )  [protected]

Creates a controlled run.

Writes an XML file (WriteXMLFile1) and runs it one timestep to produce output.

void clTestFuncResponseSeedPredation::TestSetup1 ( clSimManager *  p_oSimManager  )  [protected]

Tests setup under normal processing conditions for WriteXMLFile2.

This makes sure that maps are treated correctly and initial densities set up right.

void clTestFuncResponseSeedPredation::TestSetup2 ( clSimManager *  p_oSimManager  )  [protected]

Tests setup under normal processing conditions for WriteXMLFile3.

This makes sure that maps are treated correctly and initial densities set up right.

void clTestFuncResponseSeedPredation::TestSetup3 ( clSimManager *  p_oSimManager  )  [protected]

Tests setup under normal processing conditions for WriteXMLFile4.

This makes sure that maps are treated correctly and initial densities set up right.

void clTestFuncResponseSeedPredation::TestSetup4 ( clSimManager *  p_oSimManager  )  [protected]

Tests setup under normal processing conditions for WriteXMLFile5.

This makes sure that maps are treated correctly and initial densities set up right.

void clTestFuncResponseSeedPredation::TestDensities ( clSimManager *  p_oSimManager  )  [protected]

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.

void clTestFuncResponseSeedPredation::TestSeedOfftake ( clSimManager *  p_oSimManager  )  [protected]

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().

char* clTestFuncResponseSeedPredation::WriteXMLFile1 (  )  [protected]

Writes an XML file that will create the sim manager so we can create a grid through the proper channels.

Characteristics:

Returns:
Filename just written.

char* clTestFuncResponseSeedPredation::WriteXMLFile2 (  )  [protected]

Writes an XML file that will create the sim manager so we can create a grid through the proper channels.

Characteristics:

Returns:
Filename just written.

char* clTestFuncResponseSeedPredation::WriteXMLFile3 (  )  [protected]

Writes an XML file that will create the sim manager so we can create a grid through the proper channels.

Characteristics:

Returns:
Filename just written.

char* clTestFuncResponseSeedPredation::WriteXMLFile4 (  )  [protected]

Writes an XML file that will create the sim manager so we can create a grid through the proper channels.

Characteristics:

Returns:
Filename just written.

char* clTestFuncResponseSeedPredation::WriteXMLFile5 (  )  [protected]

Writes an XML file that will create the sim manager so we can create a grid through the proper channels.

Characteristics:

Returns:
Filename just written.

char* clTestFuncResponseSeedPredation::WriteXMLFile6 (  )  [protected]

Writes a file with two timesteps where predator densities are to be preserved.

Returns:
Filename just written.

char* clTestFuncResponseSeedPredation::WriteXMLFile7 (  )  [protected]

Writes a file with two timesteps where predator densities are not to be preserved.

Returns:
Filename just written.

char* clTestFuncResponseSeedPredation::WriteXMLFile8 (  )  [protected]

Writes a file with multiple species, including one that is not applied to seed predation.

Returns:
Filename just written.


The documentation for this class was generated from the following file:
Generated on Thu May 24 09:35:10 2007 for SORTIE C++ Test Documentation by  doxygen 1.5.2