clTestInsectInfestation Class Reference

Tests the clInsectInfestation class. More...

#include <TestInsectInfestation.h>

List of all members.

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.
char * WriteXMLNormalFile (int iNumYrsTimestep, int iTSStart)
 Writes the parameter file for TestNormalProcessingX().
char * WriteXMLFile2 ()
 Writes the parameter file for TestNormalProcessing2().
char * WriteXMLErrorFile1 ()
 Writes an error file where the minimum DBH is negative.
char * WriteXMLErrorFile2 ()
 Writes an error file where the insect infestation behavior is applied to seedlings.
char * WriteXMLErrorFile3 ()
 Writes an error file where the timestep to start infestation is negative.
char * WriteXMLErrorFile4 ()
 Writes an error file where the intercept is not between 0 and 1.
char * WriteXMLErrorFile5 ()
 Writes an error file where max infestation is not between 0 and 1.
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::TestInsectInfestation (  ) 

Assembles all other testing functions into one test.

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

Tests error processing.

void clTestInsectInfestation::TestNormalProcessingRun1 ( clSimManager *  p_oSimManager  )  [protected]

Tests normal processing Run 1.

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

Parameters:
p_oSimManager Sim 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_oSimManager Sim Manager object to run our test run.

char* clTestInsectInfestation::WriteXMLNormalFile ( int  iNumYrsTimestep,
int  iTSStart 
) [protected]

Writes the parameter file for TestNormalProcessingX().

Parameters:
iNumYrsTimestep Number of years per timestep.
Returns:
File name of the freshly written parameter file.

char* clTestInsectInfestation::WriteXMLFile2 (  )  [protected]

Writes the parameter file for TestNormalProcessing2().

Returns:
File name of the freshly written parameter file.

char* clTestInsectInfestation::WriteXMLErrorFile1 (  )  [protected]

Writes an error file where the minimum DBH is negative.

Returns:
File name of the freshly written parameter file.

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.

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.

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.

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.

char* clTestInsectInfestation::WriteXMLErrorFile6 (  )  [protected]

Writes an error file where X0 = zero.

Returns:
File name of the freshly written parameter file.

void clTestInsectInfestation::WriteErrorCommonStuff ( std::fstream &  oOut  )  [protected]

Writes common portions of the test parameter files.

Parameters:
oOut File stream to write to.

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

Counts trees.

Parameters:
p_oPop Tree population
p_iTotal Total trees per species, sized 5.
p_iInfested Infested trees per species, sized 5.
bNoInfestation If 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_oPop Tree population
p_iTotal Total trees per species, sized 5.
p_iInfested Infested trees per species, sized 5.
bNoInfestation If true, there will be no checking of the years infested value.


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

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