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

Tests the class clRipleysKCalculator. More...

#include <TestRipleysKCalculator.h>

Inheritance diagram for clTestRipleysKCalculator:

Public Member Functions

void TestRipleysKCalculator ()
 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.
 
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 Ripley's K 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 clRipleysKCalculator.

Member Function Documentation

void clTestRipleysKCalculator::CheckRun1Results ( clGrid *  p_oGrid)
protected

Checks the results of the Ripley's K grid for the first run.

Parameters
p_oGridRipley's K grid.
void clTestRipleysKCalculator::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 clTestRipleysKCalculator::TestErrorProcessing ( clSimManager *  p_oSimManager)
protected

Tests error processing.

void clTestRipleysKCalculator::TestNormalProcessingRun1 ( clSimManager *  p_oSimManager)
protected

Tests normal processing, run 1.

WriteXMLFile1() does setup. Several trees are created and the Ripley's K calculated.

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

Tests normal processing, run 2.

WriteXMLFile2() does setup. Several trees are created and the Ripley's K calculated.

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

Tests normal processing, run 3.

WriteXMLFile3() does setup. Several trees are created and the Ripley's K calculated.

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

Tests normal processing, run 4.

WriteXMLFile4() does setup. Several trees are created and the Ripley's K calculated.

Parameters
p_oSimManagerSim Manager object to call for runs.
void clTestRipleysKCalculator::TestRipleysKCalculator ( )

Performs all the tests from one function.

void clTestRipleysKCalculator::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* clTestRipleysKCalculator::WriteXMLErrorFile1 ( )
protected

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

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

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

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

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

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

Writes the parameter file for normal processing.

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

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

Writes the parameter file for normal processing.

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

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

Writes the parameter file for normal processing.

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

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

Writes the parameter file for normal processing.

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

Returns
Filename written.

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