#include <TestGermination.h>
Public Member Functions | |
void | TestGermination () |
Tests normal processing germination. | |
Private Member Functions | |
void | TestGerminationNormalProcessing (clSimManager *p_oSimManager) |
Tests normal processing. | |
void | TestGerminationErrorProcessing (clSimManager *p_oSimManager) |
This tests the two error processing files. | |
void | VerifyXMLFile1 (clGridBase *p_oSeedGrid) |
Verifies the seedling counts for TestGermination. | |
char * | WriteXMLFile1 () |
Writes a parameter file to direct testing using the first set of testing conditions. | |
char * | WriteXMLErrorFile1 () |
Writes a parameter file with a germination parameter less than 0. | |
char * | WriteXMLErrorFile2 () |
Writes a parameter file with a germination parameter greater than 1. |
It writes out parameter files and uses them as input to perform setup; it then sets up the desired initial conditions, causes the behavior to run, then tests its output. There will be one normal processing run and two error runs.
void clTestGermination::TestGermination | ( | ) |
Tests normal processing germination.
It will cause a parameter file to be written and then passed to a clSimManager object. This object will read it. The germination behavior is run and seedlings counted.
void clTestGermination::TestGerminationNormalProcessing | ( | clSimManager * | p_oSimManager | ) | [private] |
Tests normal processing.
p_oSimManager | Sim Manager object. |
void clTestGermination::TestGerminationErrorProcessing | ( | clSimManager * | p_oSimManager | ) | [private] |
This tests the two error processing files.
p_oSimManager | Sim Manager object. |
void clTestGermination::VerifyXMLFile1 | ( | clGridBase * | p_oSeedGrid | ) | [private] |
Verifies the seedling counts for TestGermination.
p_oSeedGrid | Dispersed seeds grid. |
char* clTestGermination::WriteXMLFile1 | ( | ) | [private] |
Writes a parameter file to direct testing using the first set of testing conditions.
This contains all tree information and disperse information. It also has a tree map so we'll be dealing with a known list of trees.
char* clTestGermination::WriteXMLErrorFile1 | ( | ) | [private] |
Writes a parameter file with a germination parameter less than 0.
char* clTestGermination::WriteXMLErrorFile2 | ( | ) | [private] |
Writes a parameter file with a germination parameter greater than 1.