clTestBoleVolumeCalculator Class Reference

Tests the class clBoleVolumeCalculator. More...

#include <TestBoleVolumeCalculator.h>

List of all members.

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.
char * WriteXMLFile1 ()
 Writes a parameter file for normal processing.
char * WriteXMLErrorFile1 ()
 Writes an error file where a form class value is less than 60.
char * WriteXMLErrorFile2 ()
 Writes an error file where a form class value is greater than 100.
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::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_oSimManager Sim 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_oSimManager Sim 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:
oOut File stream to write to.

char* clTestBoleVolumeCalculator::WriteXMLErrorFile1  )  [protected]
 

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

Returns:
Filename written.

char* clTestBoleVolumeCalculator::WriteXMLErrorFile2  )  [protected]
 

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

Returns:
Filename written.

char* clTestBoleVolumeCalculator::WriteXMLErrorFile3  )  [protected]
 

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

Returns:
Filename written.

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:
Generated on Mon Mar 27 15:13:45 2006 for SORTIE C++ Test Documentation by  doxygen 1.4.6-NO