clTestConditOmegaCalculator Class Reference

Tests the class clConditOmegaCalculator. More...

#include <TestConditOmegaCalculator.h>

List of all members.

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 (clGridBase *p_oGrid)
 Checks the results of the Ripley's K grid for the first run.
char * WriteXMLFile1 ()
 Writes the parameter file for normal processing.
char * WriteXMLFile2 ()
 Writes the parameter file for normal processing.
char * WriteXMLFile3 ()
 Writes the parameter file for normal processing.
char * WriteXMLFile4 ()
 Writes the parameter file for normal processing.
char * WriteXMLErrorFile1 ()
 Writes an error file where the max distance is less than the increment.
char * WriteXMLErrorFile2 ()
 Writes an error file where the max distance is less than zero.
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::TestConditOmegaCalculator (  ) 

Performs all the tests from one function.

void clTestConditOmegaCalculator::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_oSimManager Sim 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 Ripley's K calculated.

Parameters:
p_oSimManager Sim Manager object to call for runs.

void clTestConditOmegaCalculator::TestErrorProcessing ( clSimManager *  p_oSimManager  )  [protected]

Tests error processing.

void clTestConditOmegaCalculator::CreateTrees ( clTreePopulation *  p_oPop,
clPlot *  p_oPlot,
float  fOffset 
) [protected]

Creates the set of testing trees.

Parameters:
p_oPop Tree population
p_oPlot Plot object
fOffset Any offset to be applied to the tree coordinates

void clTestConditOmegaCalculator::CheckRun1Results ( clGridBase *  p_oGrid  )  [protected]

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

Parameters:
p_oGrid Ripley's K grid.

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 Ripley's K calculator behavior.

Returns:
Filename written.

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 Ripley's K calculator behavior.

Returns:
Filename written.

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 Ripley's K calculator behavior.

Returns:
Filename written.

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 Ripley's K calculator behavior.

Returns:
Filename written.

char* clTestConditOmegaCalculator::WriteXMLErrorFile1 (  )  [protected]

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

Returns:
Filename written.

char* clTestConditOmegaCalculator::WriteXMLErrorFile2 (  )  [protected]

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

Returns:
Filename written.

char* clTestConditOmegaCalculator::WriteXMLErrorFile3 (  )  [protected]

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

Returns:
Filename written.

void clTestConditOmegaCalculator::WriteCommonStuff ( std::fstream &  oOut  )  [protected]

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

Parameters:
oOut File stream to write to.


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

Generated on Tue Apr 19 14:05:58 2011 for SORTIE C++ Test Documentation by  doxygen 1.5.6