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

Tests the clInsectInfestation class. More...

#include <TestInsectInfestation.h>

Inheritance diagram for clTestInsectInfestation:

Public Member Functions

void TestInsectInfestation ()
 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.
 
const char * WriteXMLNormalFile (int iNumYrsTimestep, int iTSStart)
 Writes the parameter file for TestNormalProcessingX().
 
const char * WriteXMLFile2 ()
 Writes the parameter file for TestNormalProcessing2().
 
const char * WriteXMLErrorFile1 ()
 Writes an error file where the minimum DBH is negative.
 
const char * WriteXMLErrorFile2 ()
 Writes an error file where the insect infestation behavior is applied to seedlings.
 
const char * WriteXMLErrorFile3 ()
 Writes an error file where the timestep to start infestation is negative.
 
const char * WriteXMLErrorFile4 ()
 Writes an error file where the intercept is not between 0 and 1.
 
const char * WriteXMLErrorFile5 ()
 Writes an error file where max infestation is not between 0 and 1.
 
const char * WriteXMLErrorFile6 ()
 Writes an error file where X0 = zero.
 
void WriteErrorCommonStuff (std::fstream &oOut)
 Writes common portions of the test parameter files.
 
void GetTreeCount1Yr (clTreePopulation *p_oPop, long *p_iTotal, long *p_iInfested, bool bNoInfestation)
 Counts trees.
 
void GetTreeCount3Yrs (clTreePopulation *p_oPop, long *p_iTotal, long *p_iInfested, bool bNoInfestation)
 Counts trees.
 

Detailed Description

Tests the clInsectInfestation class.

Member Function Documentation

void clTestInsectInfestation::GetTreeCount1Yr ( clTreePopulation *  p_oPop,
long *  p_iTotal,
long *  p_iInfested,
bool  bNoInfestation 
)
protected

Counts trees.

Parameters
p_oPopTree population
p_iTotalTotal trees per species, sized 5.
p_iInfestedInfested trees per species, sized 5.
bNoInfestationIf true, there will be no checking of the years infested value.
void clTestInsectInfestation::GetTreeCount3Yrs ( clTreePopulation *  p_oPop,
long *  p_iTotal,
long *  p_iInfested,
bool  bNoInfestation 
)
protected

Counts trees.

Parameters
p_oPopTree population
p_iTotalTotal trees per species, sized 5.
p_iInfestedInfested trees per species, sized 5.
bNoInfestationIf true, there will be no checking of the years infested value.
void clTestInsectInfestation::TestErrorProcessing ( clSimManager *  p_oSimManager)
protected

Tests error processing.

void clTestInsectInfestation::TestInsectInfestation ( )

Assembles all other testing functions into one test.

void clTestInsectInfestation::TestNormalProcessingRun1 ( clSimManager *  p_oSimManager)
protected

Tests normal processing Run 1.

WriteXMLFile1() writes the parameter file. 1 year per timestep.

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

Tests normal processing Run 2.

WriteXMLFile2() writes the parameter file. 3 years per timestep.

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

Writes common portions of the test parameter files.

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

Writes an error file where the minimum DBH is negative.

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

Writes an error file where the insect infestation behavior is applied to seedlings.

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

Writes an error file where the timestep to start infestation is negative.

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

Writes an error file where the intercept is not between 0 and 1.

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

Writes an error file where max infestation is not between 0 and 1.

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

Writes an error file where X0 = zero.

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

Writes the parameter file for TestNormalProcessing2().

Returns
File name of the freshly written parameter file.
const char* clTestInsectInfestation::WriteXMLNormalFile ( int  iNumYrsTimestep,
int  iTSStart 
)
protected

Writes the parameter file for TestNormalProcessingX().

Parameters
iNumYrsTimestepNumber of years per timestep.
Returns
File name of the freshly written parameter file.

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