clTestSubstrateDepSeedSurvival Class Reference

This class tests the clSubstrateDepSeedSurvival class. More...

#include <TestSubstrateDepSeedSurvival.h>

List of all members.

Public Member Functions

void TestSubstrateDepSeedSurvival ()
 Rolls up all the tests into one function.

Private Member Functions

void TestNormalProcessingRun1 (clSimManager *p_oSimManager)
 Performs run 1 of normal processing.
void TestNormalProcessingRun2 (clSimManager *p_oSimManager)
 Performs run 2 of normal processing.
void TestNormalProcessingRun3 (clSimManager *p_oSimManager)
 Performs run 3 of normal processing.
void TestNormalProcessingRun4 (clSimManager *p_oSimManager)
 Performs run 4 of normal processing.
void TestErrorProcessing (clSimManager *p_oSimManager)
 Performs error testing.
char * WriteXMLFile1 ()
 Writes a parameter file to direct testing for NormalProcessingRun1.
char * WriteXMLFile2 ()
 Writes a parameter file to direct testing for NormalProcessingRun2.
char * WriteXMLFile3 ()
 Writes a parameter file to direct testing for NormalProcessingRun3.
char * WriteXMLFile4 ()
 Writes a parameter file to direct testing for NormalProcessingRun4.
char * WriteXMLErrorFile1 ()
 Writes a parameter file with a substrate favorability not between 0 and 1.
char * WriteXMLErrorFile2 ()
 Writes a parameter file where substrate isn't used.
char * WriteXMLErrorFile3 ()
 Writes a parameter file where a disperse behavior isn't used.
char * WriteXMLErrorFile4 ()
 Writes a parameter file where gap is used but gap disperse behavior isn't used.
void WriteCommonStuff (std::fstream &oOut)
 Writes common portions of the test parameter files (tree pop, plot, etc).


Detailed Description

This class tests the clSubstrateDepSeedSurvival class.


Member Function Documentation

void clTestSubstrateDepSeedSurvival::TestNormalProcessingRun1 ( clSimManager *  p_oSimManager  )  [private]

Performs run 1 of normal processing.

WriteXMLFile1() does setup. This run has no gap status. Grid cell size is default for all grids. There are seven species but the first is not used. Non-spatial disperse is used but given parameter values such that it will add no seeds. Establishment will turn our surviving seeds into seedlings. We are interested in 4 grid cells; for each of these, the substrate proportions are set in the "Substrate" grid and 1000 seeds of each species are added to the "Dispersed Seeds" grid. Then the run progresses and the seedlings are counted.

Parameters:
p_oSimManager For running the sim.

void clTestSubstrateDepSeedSurvival::TestNormalProcessingRun2 ( clSimManager *  p_oSimManager  )  [private]

Performs run 2 of normal processing.

WriteXMLFile2() does setup. This run has gap status. Grid cell size is default for all grids. There are seven species but the first is not used. Spatial disperse is used but given parameter values such that it will add no seeds. Establishment will turn our surviving seeds into seedlings. We are interested in 4 grid cells; for each of these, the substrate proportions are set in the "Substrate" grid and 1000 seeds of each species are added to the "Dispersed Seeds" grid. Then the run progresses and the seedlings are counted.

Parameters:
p_oSimManager For running the sim.

void clTestSubstrateDepSeedSurvival::TestNormalProcessingRun3 ( clSimManager *  p_oSimManager  )  [private]

Performs run 3 of normal processing.

WriteXMLFile3() does setup. This run has no gap status. Grid cell size is 16 X 16 m for "Dispersed Seeds" and 8 X 8 m for "Substrate". There are seven species but the first is not used. Non-spatial disperse is used but given parameter values such that it will add no seeds. Establishment will turn our surviving seeds into seedlings. We are interested in 4 grid cells in "Substrate" and the corresponding single grid cell encompassing them in "Dispersed Seeds"; for each of these, the substrate proportions are set in the "Substrate" grid and 1000 seeds of each species are added to the "Dispersed Seeds" grid. Then the run progresses and the seedlings are counted.

Parameters:
p_oSimManager For running the sim.

void clTestSubstrateDepSeedSurvival::TestNormalProcessingRun4 ( clSimManager *  p_oSimManager  )  [private]

Performs run 4 of normal processing.

WriteXMLFile4() does setup. This run has microtopography. Grid cell size is default for all grids. There are seven species but the first is not used. Non-spatial disperse is used but given parameter values such that it will add no seeds. Establishment will turn our surviving seeds into seedlings. We are interested in 4 grid cells; for each of these, the substrate proportions are set in the "Substrate" grid and 1000 seeds of each species are added to the "Dispersed Seeds" grid. Then the run progresses and the seedlings are counted.

Parameters:
p_oSimManager For running the sim.

void clTestSubstrateDepSeedSurvival::TestErrorProcessing ( clSimManager *  p_oSimManager  )  [private]

Performs error testing.

This feeds in the set of error parameter files and verifies that the correct error is thrown for each.

Parameters:
p_oSimManager For running the sim.

char* clTestSubstrateDepSeedSurvival::WriteXMLFile1 (  )  [private]

Writes a parameter file to direct testing for NormalProcessingRun1.

Returns:
Filename written.

char* clTestSubstrateDepSeedSurvival::WriteXMLFile2 (  )  [private]

Writes a parameter file to direct testing for NormalProcessingRun2.

Returns:
Filename written.

char* clTestSubstrateDepSeedSurvival::WriteXMLFile3 (  )  [private]

Writes a parameter file to direct testing for NormalProcessingRun3.

Returns:
Filename written.

char* clTestSubstrateDepSeedSurvival::WriteXMLFile4 (  )  [private]

Writes a parameter file to direct testing for NormalProcessingRun4.

Returns:
Filename written.

char* clTestSubstrateDepSeedSurvival::WriteXMLErrorFile1 (  )  [private]

Writes a parameter file with a substrate favorability not between 0 and 1.

Returns:
Filename written.

char* clTestSubstrateDepSeedSurvival::WriteXMLErrorFile2 (  )  [private]

Writes a parameter file where substrate isn't used.

Returns:
Filename written.

char* clTestSubstrateDepSeedSurvival::WriteXMLErrorFile3 (  )  [private]

Writes a parameter file where a disperse behavior isn't used.

Returns:
Filename written.

char* clTestSubstrateDepSeedSurvival::WriteXMLErrorFile4 (  )  [private]

Writes a parameter file where gap is used but gap disperse behavior isn't used.

Returns:
Filename written.

void clTestSubstrateDepSeedSurvival::WriteCommonStuff ( std::fstream &  oOut  )  [private]

Writes common portions of the test parameter files (tree pop, plot, etc).

This ends with </allometry>.

Parameters:
oOut File stream to write to.


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