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

Tests the class clPartitionedBiomass. More...

#include <TestPartitionedBiomass.h>

Inheritance diagram for clTestPartitionedBiomass:

Public Member Functions

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

Protected Member Functions

void TestNormalProcessingRun1 (clSimManager *p_oSimManager)
 Tests normal processing, run 1.
 
void TestNormalProcessingRun2 (clSimManager *p_oSimManager)
 Tests normal processing, run 2.
 
void TestNormalProcessingRun3 (clSimManager *p_oSimManager)
 Tests normal processing, run 3.
 
void TestNormalProcessingRun4 (clSimManager *p_oSimManager)
 Tests normal processing, run 4.
 
void TestErrorProcessing (clSimManager *p_oSimManager)
 Tests error processing.
 
const char * WriteXMLFile1 ()
 Writes the parameter file for normal processing run 1.
 
const char * WriteXMLFile2 ()
 Writes the parameter file for normal processing run 2.
 
const char * WriteXMLFile3 ()
 Writes the parameter file for normal processing run 3.
 
const char * WriteXMLFile4 ()
 Writes the parameter file for normal processing run 4.
 
const char * WriteXMLErrorFile1 ()
 Writes an error file where the Partitioned Biomass behavior, DBH version, is applied to seedlings.
 
const char * WriteXMLErrorFile2 ()
 Writes an error file where the Partitioned Biomass behavior, height version, is applied to seedlings.
 
void CreateTrees (clTreePopulation *p_oPop)
 Creates the test tree set.
 
void WriteCommonFileBegin (std::fstream &oOut)
 Writes common beginning of the test parameter files, which is everything after the grid settings.
 
void WriteCommonFileEnd (std::fstream &oOut)
 Writes common ending of the test parameter files, which is everything after the grid settings.
 

Detailed Description

Tests the class clPartitionedBiomass.

Member Function Documentation

void clTestPartitionedBiomass::CreateTrees ( clTreePopulation *  p_oPop)
protected

Creates the test tree set.

Parameters
p_oPopTree population object.
void clTestPartitionedBiomass::TestErrorProcessing ( clSimManager *  p_oSimManager)
protected

Tests error processing.

This uses WriteXMLErrorFileX() to introduce errors and makes sure that they are caught.

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

Tests normal processing, run 1.

This uses WriteXMLFile1() to do setup.

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

Tests normal processing, run 2.

This uses WriteXMLFile2() to do setup.

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

Tests normal processing, run 3.

This uses WriteXMLFile3() to do setup.

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

Tests normal processing, run 4.

This uses WriteXMLFile4() to do setup.

Parameters
p_oSimManagerSim Manager object to call for runs.
void clTestPartitionedBiomass::TestPartitionedBiomass ( )

Performs all the tests from one function.

void clTestPartitionedBiomass::WriteCommonFileBegin ( std::fstream &  oOut)
protected

Writes common beginning of the test parameter files, which is everything after the grid settings.

Parameters
oOutFile stream to write to.
void clTestPartitionedBiomass::WriteCommonFileEnd ( std::fstream &  oOut)
protected

Writes common ending of the test parameter files, which is everything after the grid settings.

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

Writes an error file where the Partitioned Biomass behavior, DBH version, is applied to seedlings.

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

Writes an error file where the Partitioned Biomass behavior, height version, is applied to seedlings.

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

Writes the parameter file for normal processing run 1.

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

Writes the parameter file for normal processing run 2.

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

Writes the parameter file for normal processing run 3.

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

Writes the parameter file for normal processing run 4.

Returns
Filename written.

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