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

Tests the clWeibullClimateGrowth class. More...

#include <TestWeibullClimateQuadratGrowth.h>

Inheritance diagram for clTestWeibullClimateQuadratGrowth:

Public Member Functions

void TestWeibullClimateQuadratGrowth ()
 Tests the clWeibullClimateGrowth class.
 
void TestRun1 (clSimManager *p_oSimManager)
 Performs a test run of growth for a 1-year timestep.
 
void TestRun2 (clSimManager *p_oSimManager)
 Performs a test run of growth for a 3-year timestep.
 
void TestErrorProcessing (clSimManager *p_oSimManager)
 Tests error processing for input files.
 

Protected Member Functions

const char * WriteXMLFile (int iYearsPerTimestep)
 Writes a parameter file with the designated number of years per time step.
 
const char * WriteXMLErrorFile1 ()
 Writes an error condition where max radius of neighbor effects is < 0.
 
const char * WriteXMLErrorFile2 ()
 Writes an error condition where max growth for a species is < 0.
 
const char * WriteXMLErrorFile3 ()
 Writes an error condition where a precipitation A = 0.
 
const char * WriteXMLErrorFile4 ()
 Writes an error condition where a temperature A = 0.
 
void WriteErrorFileCommonStuff (std::fstream &oOut)
 Writes common portions of the test error parameter files (tree pop, plot, etc).
 

Detailed Description

Tests the clWeibullClimateGrowth class.

Member Function Documentation

void clTestWeibullClimateQuadratGrowth::TestErrorProcessing ( clSimManager *  p_oSimManager)

Tests error processing for input files.

void clTestWeibullClimateQuadratGrowth::TestRun1 ( clSimManager *  p_oSimManager)

Performs a test run of growth for a 1-year timestep.

Parameters
p_oSimManagerSim Manager object to do the runs.
void clTestWeibullClimateQuadratGrowth::TestRun2 ( clSimManager *  p_oSimManager)

Performs a test run of growth for a 3-year timestep.

Parameters
p_oSimManagerSim Manager object to do the runs.
void clTestWeibullClimateQuadratGrowth::TestWeibullClimateQuadratGrowth ( )

Tests the clWeibullClimateGrowth class.

void clTestWeibullClimateQuadratGrowth::WriteErrorFileCommonStuff ( std::fstream &  oOut)
protected

Writes common portions of the test error parameter files (tree pop, plot, etc).

Starts at the beginning of the file and ends at the closing tree tag.

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

Writes an error condition where max radius of neighbor effects is < 0.

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

Writes an error condition where max growth for a species is < 0.

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

Writes an error condition where a precipitation A = 0.

Returns
Filename written.
const char* clTestWeibullClimateQuadratGrowth::WriteXMLErrorFile4 ( )
protected

Writes an error condition where a temperature A = 0.

Returns
Filename written.
const char* clTestWeibullClimateQuadratGrowth::WriteXMLFile ( int  iYearsPerTimestep)
protected

Writes a parameter file with the designated number of years per time step.

Parameters
iYearsPerTimestepThe desired number of years per time step.
Returns
Filename written.

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