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

Tests the clAggregatedMortality class. More...

#include <TestAggregatedMortality.h>

Inheritance diagram for clTestAggregatedMortality:

Public Member Functions

void TestAggregatedMortality ()
 Assembles all other testing functions into one test.
 

Protected Member Functions

void TestErrorProcessing (clSimManager *p_oSimManager)
 Tests error processing.
 
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 TestNormalProcessingRun5 (clSimManager *p_oSimManager)
 Tests normal processing Run 5.
 
void TestNormalProcessingRun6 (clSimManager *p_oSimManager)
 Tests normal processing Run 6.
 
const char * WriteXMLFile1 ()
 Writes the parameter file for TestNormalProcessing1().
 
const char * WriteXMLFile2 ()
 Writes the parameter file for TestNormalProcessing2().
 
const char * WriteXMLFile3 ()
 Writes the parameter file for TestNormalProcessing3().
 
const char * WriteXMLFile4 ()
 Writes the parameter file for TestNormalProcessing4().
 
const char * WriteXMLFile5 ()
 Writes the parameter file for TestNormalProcessing5().
 
const char * WriteXMLFile6 ()
 Writes the parameter file for TestNormalProcessing6().
 
const char * WriteXMLErrorFile1 ()
 Writes an error file where the value for amount to cut is not between 0 and 1.
 
const char * WriteXMLErrorFile2 ()
 Writes an error file where the return interval is less than 0.
 
void WriteCommonStuff (std::fstream &oOut)
 Writes common portions of the test parameter files.
 

Detailed Description

Tests the clAggregatedMortality class.

Member Function Documentation

void clTestAggregatedMortality::TestAggregatedMortality ( )

Assembles all other testing functions into one test.

void clTestAggregatedMortality::TestErrorProcessing ( clSimManager *  p_oSimManager)
protected

Tests error processing.

void clTestAggregatedMortality::TestNormalProcessingRun1 ( clSimManager *  p_oSimManager)
protected

Tests normal processing Run 1.

WriteXMLFile1() writes the parameter file. This run tests getting proportions right, and general aggregation.

Parameters
p_oSimManagerSim Manager object to run our test run.
void clTestAggregatedMortality::TestNormalProcessingRun2 ( clSimManager *  p_oSimManager)
protected

Tests normal processing Run 2.

WriteXMLFile2() writes the parameter file. Tests aggregation across multiple grid cells.

Parameters
p_oSimManagerSim Manager object to run our test run.
void clTestAggregatedMortality::TestNormalProcessingRun3 ( clSimManager *  p_oSimManager)
protected

Tests normal processing Run 3.

WriteXMLFile3() writes the parameter file. Tests that only trees to which the behavior applies are cut.

Parameters
p_oSimManagerSim Manager object to run our test run.
void clTestAggregatedMortality::TestNormalProcessingRun4 ( clSimManager *  p_oSimManager)
protected

Tests normal processing Run 4.

WriteXMLFile4() writes the parameter file. Tests correct aggregation across longer distances.

Parameters
p_oSimManagerSim Manager object to run our test run.
void clTestAggregatedMortality::TestNormalProcessingRun5 ( clSimManager *  p_oSimManager)
protected

Tests normal processing Run 5.

WriteXMLFile5() writes the parameter file. Tests that behavior acts correctly when the clumping number is 1.

Parameters
p_oSimManagerSim Manager object to run our test run.
void clTestAggregatedMortality::TestNormalProcessingRun6 ( clSimManager *  p_oSimManager)
protected

Tests normal processing Run 6.

WriteXMLFile6() writes the parameter file. Tests that return intervals are correctly calculated.

Parameters
p_oSimManagerSim Manager object to run our test run.
void clTestAggregatedMortality::WriteCommonStuff ( std::fstream &  oOut)
protected

Writes common portions of the test parameter files.

Starts with <randomSeed> and ends with </allometry>.

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

Writes an error file where the value for amount to cut is not between 0 and 1.

Returns
File name of the freshly written parameter file.
const char* clTestAggregatedMortality::WriteXMLErrorFile2 ( )
protected

Writes an error file where the return interval is less than 0.

Returns
File name of the freshly written parameter file.
const char* clTestAggregatedMortality::WriteXMLFile1 ( )
protected

Writes the parameter file for TestNormalProcessing1().

Returns
File name of the freshly written parameter file.
const char* clTestAggregatedMortality::WriteXMLFile2 ( )
protected

Writes the parameter file for TestNormalProcessing2().

Returns
File name of the freshly written parameter file.
const char* clTestAggregatedMortality::WriteXMLFile3 ( )
protected

Writes the parameter file for TestNormalProcessing3().

Returns
File name of the freshly written parameter file.
const char* clTestAggregatedMortality::WriteXMLFile4 ( )
protected

Writes the parameter file for TestNormalProcessing4().

Returns
File name of the freshly written parameter file.
const char* clTestAggregatedMortality::WriteXMLFile5 ( )
protected

Writes the parameter file for TestNormalProcessing5().

Returns
File name of the freshly written parameter file.
const char* clTestAggregatedMortality::WriteXMLFile6 ( )
protected

Writes the parameter file for TestNormalProcessing6().

Returns
File name of the freshly written parameter file.

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