SORTIE C++ Test Documentation
Public Member Functions | Protected Member Functions | List of all members
clTestLinearBiLevelGrowth Class Reference

Tests the clLinearBiLevelGrowth class. More...

#include <TestLinearBiLevelGrowth.h>

Inheritance diagram for clTestLinearBiLevelGrowth:

Public Member Functions

void TestLinearBiLevelGrowth ()
 Combines the testing into one behavior.
 

Protected Member Functions

void NormalProcessingRun1 (clSimManager *p_oSimManager)
 Tests normal processing run 1.
 
void NormalProcessingRun2 (clSimManager *p_oSimManager)
 Tests normal processing run 2.
 
void NormalProcessingRun3 (clSimManager *p_oSimManager)
 Tests normal processing run 3.
 
void NormalProcessingRun4 (clSimManager *p_oSimManager)
 Tests normal processing run 4.
 
void ErrorProcessing (clSimManager *p_oSimManager)
 Tests error processing.
 
const char * WriteXMLFile1 ()
 Writes a parameter file for normal processing run 1.
 
const char * WriteXMLFile2 ()
 Writes a parameter file for normal processing run 2.
 
const char * WriteXMLFile3 ()
 Writes a parameter file for normal processing run 3.
 
const char * WriteXMLFile4 ()
 Writes a parameter file for normal processing run 4.
 
const char * WriteXMLErrorFile1 ()
 Writes a parameter file where a value for high-light growth threshold is not between 0 and 100.
 
void WriteCommonStuff (std::fstream &oOut)
 Writes common portions of the test parameter files.
 
void WriteGrowthParameters (std::fstream &oOut)
 Writes growth parameters for the test parameter files.
 

Detailed Description

Tests the clLinearBiLevelGrowth class.

Member Function Documentation

void clTestLinearBiLevelGrowth::ErrorProcessing ( clSimManager *  p_oSimManager)
protected

Tests error processing.

Inputs error files to make sure the errors are caught.

void clTestLinearBiLevelGrowth::NormalProcessingRun1 ( clSimManager *  p_oSimManager)
protected

Tests normal processing run 1.

WriteXMLFile1() does setup. Timestep length is 1 year and there is a light grid present. The growth used is diam with auto height. 27 trees are created of 3 species and assigned to a mix of light levels. Then growth is run. Their diameters and heights are checked to make sure they are correct.

Parameters
p_oSimManagerSim manager object for doing the run.
void clTestLinearBiLevelGrowth::NormalProcessingRun2 ( clSimManager *  p_oSimManager)
protected

Tests normal processing run 2.

WriteXMLFile2() does setup. Timestep length is 3 years and there is a light grid present. The growth used is diam with auto height. 27 trees are created of 3 species and assigned to a mix of light levels. Then growth is run. Their diameters and heights are checked to make sure they are correct.

Parameters
p_oSimManagerSim manager object for doing the run.
void clTestLinearBiLevelGrowth::NormalProcessingRun3 ( clSimManager *  p_oSimManager)
protected

Tests normal processing run 3.

WriteXMLFile3() does setup. Timestep length is 1 year and there is a light grid present. The growth used is diam only. 27 trees are created of 3 species and assigned to a mix of light levels. Then growth is run. Their diameters and heights are checked to make sure they are correct.

Parameters
p_oSimManagerSim manager object for doing the run.
void clTestLinearBiLevelGrowth::NormalProcessingRun4 ( clSimManager *  p_oSimManager)
protected

Tests normal processing run 4.

WriteXMLFile4() does setup. Timestep length is 1 year and there is no light grid present. The growth used is diam with auto height. 27 trees are created of 3 species. Then growth is run. Their diameters and heights are checked to make sure they are correct.

Parameters
p_oSimManagerSim manager object for doing the run.
void clTestLinearBiLevelGrowth::TestLinearBiLevelGrowth ( )

Combines the testing into one behavior.

void clTestLinearBiLevelGrowth::WriteCommonStuff ( std::fstream &  oOut)
protected

Writes common portions of the test parameter files.

This starts with <randomSeed> and ends with </allometry>.

Parameters
oOutFile stream to write to.
void clTestLinearBiLevelGrowth::WriteGrowthParameters ( std::fstream &  oOut)
protected

Writes growth parameters for the test parameter files.

Parameters
oOutFile stream to write to.
const char* clTestLinearBiLevelGrowth::WriteXMLErrorFile1 ( )
protected

Writes a parameter file where a value for high-light growth threshold is not between 0 and 100.

Returns
Filename written.
const char* clTestLinearBiLevelGrowth::WriteXMLFile1 ( )
protected

Writes a parameter file for normal processing run 1.

Returns
Filename written.
const char* clTestLinearBiLevelGrowth::WriteXMLFile2 ( )
protected

Writes a parameter file for normal processing run 2.

Returns
Filename written.
const char* clTestLinearBiLevelGrowth::WriteXMLFile3 ( )
protected

Writes a parameter file for normal processing run 3.

Returns
Filename written.
const char* clTestLinearBiLevelGrowth::WriteXMLFile4 ( )
protected

Writes a parameter file for normal processing run 4.

Returns
Filename written.

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