SORTIE C++ Test Documentation
Public Member Functions | Private Member Functions | List of all members
clTestSubstrateDepSeedSurvival Class Reference

This class tests the clSubstrateDepSeedSurvival class. More...

#include <TestSubstrateDepSeedSurvival.h>

Inheritance diagram for clTestSubstrateDepSeedSurvival:

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.
 
const char * WriteXMLFile1 ()
 Writes a parameter file to direct testing for NormalProcessingRun1.
 
const char * WriteXMLFile2 ()
 Writes a parameter file to direct testing for NormalProcessingRun2.
 
const char * WriteXMLFile3 ()
 Writes a parameter file to direct testing for NormalProcessingRun3.
 
const char * WriteXMLFile4 ()
 Writes a parameter file to direct testing for NormalProcessingRun4.
 
const char * WriteXMLErrorFile1 ()
 Writes a parameter file with a substrate favorability not between 0 and 1.
 
const char * WriteXMLErrorFile2 ()
 Writes a parameter file where substrate isn't used.
 
const char * WriteXMLErrorFile3 ()
 Writes a parameter file where a 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::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_oSimManagerFor running the sim.
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_oSimManagerFor 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_oSimManagerFor 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_oSimManagerFor 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_oSimManagerFor running the sim.
void clTestSubstrateDepSeedSurvival::TestSubstrateDepSeedSurvival ( )

Rolls up all the tests into one function.

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

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

This ends with </allometry>.

Parameters
oOutFile stream to write to.
const char* clTestSubstrateDepSeedSurvival::WriteXMLErrorFile1 ( )
private

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

Returns
Filename written.
const char* clTestSubstrateDepSeedSurvival::WriteXMLErrorFile2 ( )
private

Writes a parameter file where substrate isn't used.

Returns
Filename written.
const char* clTestSubstrateDepSeedSurvival::WriteXMLErrorFile3 ( )
private

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

Returns
Filename written.
const char* clTestSubstrateDepSeedSurvival::WriteXMLFile1 ( )
private

Writes a parameter file to direct testing for NormalProcessingRun1.

Returns
Filename written.
const char* clTestSubstrateDepSeedSurvival::WriteXMLFile2 ( )
private

Writes a parameter file to direct testing for NormalProcessingRun2.

Returns
Filename written.
const char* clTestSubstrateDepSeedSurvival::WriteXMLFile3 ( )
private

Writes a parameter file to direct testing for NormalProcessingRun3.

Returns
Filename written.
const char* clTestSubstrateDepSeedSurvival::WriteXMLFile4 ( )
private

Writes a parameter file to direct testing for NormalProcessingRun4.

Returns
Filename written.

The documentation for this class was generated from the following file: