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

Tests the class clConditOmegaCalculator. More...

#include <TestConditOmegaCalculator.h>

Inheritance diagram for clTestConditOmegaCalculator:

Public Member Functions

void TestConditOmegaCalculator ()
 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 TestErrorProcessing (clSimManager *p_oSimManager)
 Tests error processing.
 
void CreateTrees (clTreePopulation *p_oPop, clPlot *p_oPlot, float fOffset)
 Creates the set of testing trees.
 
void CheckRun1Results (clGrid *p_oGrid)
 Checks the results of the Condit's Omega grid for the first run.
 
const char * WriteXMLFile1 ()
 Writes the parameter file for normal processing.
 
const char * WriteXMLFile2 ()
 Writes the parameter file for normal processing.
 
const char * WriteXMLFile3 ()
 Writes the parameter file for normal processing.
 
const char * WriteXMLFile4 ()
 Writes the parameter file for normal processing.
 
const char * WriteXMLErrorFile1 ()
 Writes an error file where the max distance is less than the increment.
 
const char * WriteXMLErrorFile2 ()
 Writes an error file where the max distance is less than zero.
 
const char * WriteXMLErrorFile3 ()
 Writes an error file where the increment is less than zero.
 
void WriteCommonStuff (std::fstream &oOut)
 Writes common portions of the test parameter files between the plot and the analysis parameters.
 

Detailed Description

Tests the class clConditOmegaCalculator.

Member Function Documentation

void clTestConditOmegaCalculator::CheckRun1Results ( clGrid *  p_oGrid)
protected

Checks the results of the Condit's Omega grid for the first run.

Parameters
p_oGridCondit's Omega grid.
void clTestConditOmegaCalculator::CreateTrees ( clTreePopulation *  p_oPop,
clPlot *  p_oPlot,
float  fOffset 
)
protected

Creates the set of testing trees.

Parameters
p_oPopTree population
p_oPlotPlot object
fOffsetAny offset to be applied to the tree coordinates
void clTestConditOmegaCalculator::TestConditOmegaCalculator ( )

Performs all the tests from one function.

void clTestConditOmegaCalculator::TestErrorProcessing ( clSimManager *  p_oSimManager)
protected

Tests error processing.

void clTestConditOmegaCalculator::TestNormalProcessingRun1 ( clSimManager *  p_oSimManager)
protected

Tests normal processing, run 1.

WriteXMLFile1() does setup. Several trees are created and the Condit's Omega calculated.

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

Tests normal processing, run 2.

WriteXMLFile2() does setup. Several trees are created and the Condit's Omega calculated.

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

Writes common portions of the test parameter files between the plot and the analysis parameters.

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

Writes an error file where the max distance is less than the increment.

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

Writes an error file where the max distance is less than zero.

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

Writes an error file where the increment is less than zero.

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

Writes the parameter file for normal processing.

There are 4 species; timestep length is 1 year; there is only one behavior, the Condit's Omega calculator behavior.

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

Writes the parameter file for normal processing.

There are 4 species; timestep length is 1 year; there is only one behavior, the Condit's Omega calculator behavior.

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

Writes the parameter file for normal processing.

There are 4 species; timestep length is 1 year; there is only one behavior, the Condit's Omega calculator behavior.

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

Writes the parameter file for normal processing.

There are 4 species; timestep length is 1 year; there is only one behavior, the Condit's Omega calculator behavior.

Returns
Filename written.

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