#include <TestInsectInfestation.h>
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. |
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.
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.
p_oSimManager | Sim Manager object to run our test run. |
char* clTestInsectInfestation::WriteXMLNormalFile | ( | int | iNumYrsTimestep, | |
int | iTSStart | |||
) | [protected] |
Writes the parameter file for TestNormalProcessingX().
iNumYrsTimestep | Number of years per timestep. |
char* clTestInsectInfestation::WriteXMLFile2 | ( | ) | [protected] |
Writes the parameter file for TestNormalProcessing2().
char* clTestInsectInfestation::WriteXMLErrorFile1 | ( | ) | [protected] |
Writes an error file where the minimum DBH is negative.
char* clTestInsectInfestation::WriteXMLErrorFile2 | ( | ) | [protected] |
Writes an error file where the insect infestation behavior is applied to seedlings.
char* clTestInsectInfestation::WriteXMLErrorFile3 | ( | ) | [protected] |
Writes an error file where the timestep to start infestation is negative.
char* clTestInsectInfestation::WriteXMLErrorFile4 | ( | ) | [protected] |
Writes an error file where the intercept is not between 0 and 1.
char* clTestInsectInfestation::WriteXMLErrorFile5 | ( | ) | [protected] |
Writes an error file where max infestation is not between 0 and 1.
char* clTestInsectInfestation::WriteXMLErrorFile6 | ( | ) | [protected] |
Writes an error file where X0 = zero.
void clTestInsectInfestation::WriteErrorCommonStuff | ( | std::fstream & | oOut | ) | [protected] |
Writes common portions of the test parameter files.
oOut | File stream to write to. |
void clTestInsectInfestation::GetTreeCount1Yr | ( | clTreePopulation * | p_oPop, | |
long * | p_iTotal, | |||
long * | p_iInfested, | |||
bool | bNoInfestation | |||
) | [protected] |
Counts trees.
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.
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. |