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

Tests the class clEpiphyticEstablishment. More...

#include <TestEpiphyticEstablishment.h>

Inheritance diagram for clTestEpiphyticEstablishment:

Public Member Functions

void TestEpiphyticEstablishment ()
 Rolls all other tests into a single function to call.
 

Protected Member Functions

void TestNormalProcessingRun1 (clSimManager *p_oSimManager)
 WriteXMLFile1() does setup.
 
void TestNormalProcessingRun2 (clSimManager *p_oSimManager)
 Make sure GLI gets set up right.
 
void TestErrorProcessing (clSimManager *p_oSimManager)
 Tests error processing.
 
const char * WriteXMLFile1 ()
 Writes a parameter file to direct testing for normal processing run one.
 
const char * WriteXMLFile2 ()
 Writes a parameter file to direct testing for normal processing run two.
 
const char * WriteXMLErrorFile1 ()
 Writes a file where the number of altitude angles is less than 1.
 
const char * WriteXMLErrorFile2 ()
 Writes a file where the number of azimuth angles is less than 1.
 
const char * WriteXMLErrorFile3 ()
 Writes a file where the behavior is applied to seedlings.
 
const char * WriteXMLErrorFile4 ()
 Writes a file where some of the trees don't have mortality applied.
 
void WriteErrorCommonStuff (std::fstream &oOut)
 Writes common portions of the test parameter files.
 

Detailed Description

Tests the class clEpiphyticEstablishment.

Member Function Documentation

void clTestEpiphyticEstablishment::TestEpiphyticEstablishment ( )

Rolls all other tests into a single function to call.

void clTestEpiphyticEstablishment::TestErrorProcessing ( clSimManager *  p_oSimManager)
protected

Tests error processing.

Parameters
p_oSimManagerSim manager
void clTestEpiphyticEstablishment::TestNormalProcessingRun1 ( clSimManager *  p_oSimManager)
protected

WriteXMLFile1() does setup.

Four groups of substrate trees are distributed around the plot, and the resulting seedlings are identified and counted. This verifies that substrate trees are correctly identified, that seedling probabilities are correctly calculated, and that seedling heights are correctly determined.

Parameters
p_oSimManagerSim manager
void clTestEpiphyticEstablishment::TestNormalProcessingRun2 ( clSimManager *  p_oSimManager)
protected

Make sure GLI gets set up right.

Parameters
p_oSimManagerSim manager
void clTestEpiphyticEstablishment::WriteErrorCommonStuff ( std::fstream &  oOut)
protected

Writes common portions of the test parameter files.

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

Writes a file where the number of altitude angles is less than 1.

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

Writes a file where the number of azimuth angles is less than 1.

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

Writes a file where the behavior is applied to seedlings.

Returns
Filename written.
const char* clTestEpiphyticEstablishment::WriteXMLErrorFile4 ( )
protected

Writes a file where some of the trees don't have mortality applied.

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

Writes a parameter file to direct testing for normal processing run one.

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

Writes a parameter file to direct testing for normal processing run two.

Returns
Filename written.

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