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

Tests the class clBoleVolumeCalculator. More...

#include <TestBoleVolumeCalculator.h>

Inheritance diagram for clTestBoleVolumeCalculator:

Public Member Functions

void TestBoleVolumeCalculator ()
 Performs all the tests from one function.
 

Protected Member Functions

void TestNormalProcessing (clSimManager *p_oSimManager)
 Tests normal processing.
 
void TestErrorProcessing (clSimManager *p_oSimManager)
 Tests error processing.
 
const char * WriteXMLFile1 ()
 Writes a parameter file for normal processing.
 
const char * WriteXMLErrorFile1 ()
 Writes an error file where a form class value is less than 60.
 
const char * WriteXMLErrorFile2 ()
 Writes an error file where a form class value is greater than 100.
 
const char * WriteXMLErrorFile3 ()
 Writes an error file where the volume behavior is applied to seedlings.
 
void WriteCommonStuff (std::fstream &oOut)
 Writes common portions of the test parameter files (tree pop, plot, etc).
 

Detailed Description

Tests the class clBoleVolumeCalculator.

Member Function Documentation

void clTestBoleVolumeCalculator::TestBoleVolumeCalculator ( )

Performs all the tests from one function.

void clTestBoleVolumeCalculator::TestErrorProcessing ( clSimManager *  p_oSimManager)
protected

Tests error processing.

This uses WriteXMLErrorFile1(), WriteXMLErrorFile2(), and WriteXMLErrorFile3() to introduce errors and make sure that they are caught.

Parameters
p_oSimManagerSim Manager object to call for runs.
void clTestBoleVolumeCalculator::TestNormalProcessing ( clSimManager *  p_oSimManager)
protected

Tests normal processing.

WriteXMLFile1() does setup. Then 87 trees are created. A simulation is run for one timestep then the volume checked for all those trees.

Parameters
p_oSimManagerSim Manager object to call for runs.
void clTestBoleVolumeCalculator::WriteCommonStuff ( std::fstream &  oOut)
protected

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

Ends with </trees>.

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

Writes an error file where a form class value is less than 60.

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

Writes an error file where a form class value is greater than 100.

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

Writes an error file where the volume behavior is applied to seedlings.

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

Writes a parameter file for normal processing.

There are 8 species (of which 7 are used), and the bole volume behavior is the only one in the run.

Returns
Filename written.

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