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

Tests the clHeightGLIWeibullMortality class. More...

#include <TestHeightGLIWeibullMortality.h>

Inheritance diagram for clTestHeightGLIWeibullMortality:

Public Member Functions

void TestHeightGLIWeibullMortality ()
 This puts all mortality tests into a single function.
 

Protected Member Functions

void NormalProcessingRun1 (clSimManager *p_oSimManager)
 Tests normal processing run 1.
 
void NormalProcessingRun2 (clSimManager *p_oSimManager)
 Tests normal processing run 2.
 
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 * WriteXMLErrorFile1 ()
 Writes a parameter file where a value for unbrowsed max mortality is not between 0 and 1.
 
const char * WriteXMLErrorFile2 ()
 Writes a parameter file where there is no light behavior present.
 
const char * WriteXMLErrorFile3 ()
 Writes a parameter file where a value for browsed max mortality is not between 0 and 1.
 
void WriteCommonStuff (std::fstream &oOut)
 Writes common portions of the test parameter files.
 

Detailed Description

Tests the clHeightGLIWeibullMortality class.

Member Function Documentation

void clTestHeightGLIWeibullMortality::ErrorProcessing ( clSimManager *  p_oSimManager)
protected

Tests error processing.

Inputs error files to make sure the errors are caught.

void clTestHeightGLIWeibullMortality::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. 1000 copies of each of 27 trees is created of 3 species and assigned to a mix of light levels. Then mortality is run. We check the number left of each tree type to see if it is approximately the right number.

Parameters
p_oSimManagerSim manager object for doing the run.
void clTestHeightGLIWeibullMortality::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. 1000 copies of each of 27 trees is created of 3 species and assigned to a mix of light levels. Then mortality is run. We check the number left of each tree type to see if it is approximately the right number.

Parameters
p_oSimManagerSim manager object for doing the run.
void clTestHeightGLIWeibullMortality::TestHeightGLIWeibullMortality ( )

This puts all mortality tests into a single function.

void clTestHeightGLIWeibullMortality::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.
const char* clTestHeightGLIWeibullMortality::WriteXMLErrorFile1 ( )
protected

Writes a parameter file where a value for unbrowsed max mortality is not between 0 and 1.

Returns
Filename written.
const char* clTestHeightGLIWeibullMortality::WriteXMLErrorFile2 ( )
protected

Writes a parameter file where there is no light behavior present.

Returns
Filename written.
const char* clTestHeightGLIWeibullMortality::WriteXMLErrorFile3 ( )
protected

Writes a parameter file where a value for browsed max mortality is not between 0 and 1.

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

Writes a parameter file for normal processing run 1.

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

Writes a parameter file for normal processing run 2.

Returns
Filename written.

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