#include <TestLogBiLevelGrowth.h>
Public Member Functions | |
void | TestLogBiLevelGrowth () |
Combines the testing into one behavior. | |
Protected Member Functions | |
void | NormalProcessingRun1 (clSimManager *p_oSimManager) |
Tests normal processing run 1. | |
void | NormalProcessingRun2 (clSimManager *p_oSimManager) |
Tests normal processing run 2. | |
void | NormalProcessingRun3 (clSimManager *p_oSimManager) |
Tests normal processing run 3. | |
void | ErrorProcessing (clSimManager *p_oSimManager) |
Tests error processing. | |
char * | WriteXMLFile1 () |
Writes a parameter file for normal processing run 1. | |
char * | WriteXMLFile2 () |
Writes a parameter file for normal processing run 2. | |
char * | WriteXMLFile3 () |
Writes a parameter file for normal processing run 3. | |
char * | WriteXMLErrorFile1 () |
Writes a parameter file where a value for high-light growth threshold is not between 0 and 100. | |
char * | WriteXMLErrorFile2 () |
Writes a parameter file where a value for low-light Xb is 0. | |
char * | WriteXMLErrorFile3 () |
Writes a parameter file where a value for high-light Xb is 0. | |
char * | WriteXMLErrorFile4 () |
Writes a parameter file where a value for low-light max growth is less than 0. | |
char * | WriteXMLErrorFile5 () |
Writes a parameter file where a value for high-light max growth is less than 0. | |
char * | WriteXMLErrorFile6 () |
Writes a parameter file where a value for low-light X0 is 0. | |
char * | WriteXMLErrorFile7 () |
Writes a parameter file where a value for high-light X0 is 0. | |
void | WriteCommonStuff (std::fstream &oOut) |
Writes common portions of the test parameter files. | |
void | WriteGrowthParameters (std::fstream &oOut) |
Writes growth parameters for the test parameter files. |
void clTestLogBiLevelGrowth::TestLogBiLevelGrowth | ( | ) |
Combines the testing into one behavior.
void clTestLogBiLevelGrowth::NormalProcessingRun1 | ( | clSimManager * | p_oSimManager | ) | [protected] |
Tests normal processing run 1.
WriteXMLFile1() does setup. Timestep length is 1 year and there is a light grid present. 27 trees are created of 3 species and assigned to a mix of light levels. Then growth is run. Their heights are checked to make sure they are correct.
p_oSimManager | Sim manager object for doing the run. |
void clTestLogBiLevelGrowth::NormalProcessingRun2 | ( | clSimManager * | p_oSimManager | ) | [protected] |
Tests normal processing run 2.
WriteXMLFile2() does setup. Timestep length is 3 years and there is a light grid present. 27 trees are created of 3 species and assigned to a mix of light levels. Then growth is run. Their heights are checked to make sure they are correct.
p_oSimManager | Sim manager object for doing the run. |
void clTestLogBiLevelGrowth::NormalProcessingRun3 | ( | clSimManager * | p_oSimManager | ) | [protected] |
Tests normal processing run 3.
WriteXMLFile3() does setup. Timestep length is 1 year and there is no light grid present. 27 trees are created of 3 species. Then growth is run. Their heights are checked to make sure they are correct.
p_oSimManager | Sim manager object for doing the run. |
void clTestLogBiLevelGrowth::ErrorProcessing | ( | clSimManager * | p_oSimManager | ) | [protected] |
Tests error processing.
Inputs error files to make sure the errors are caught.
char* clTestLogBiLevelGrowth::WriteXMLFile1 | ( | ) | [protected] |
Writes a parameter file for normal processing run 1.
char* clTestLogBiLevelGrowth::WriteXMLFile2 | ( | ) | [protected] |
Writes a parameter file for normal processing run 2.
char* clTestLogBiLevelGrowth::WriteXMLFile3 | ( | ) | [protected] |
Writes a parameter file for normal processing run 3.
char* clTestLogBiLevelGrowth::WriteXMLErrorFile1 | ( | ) | [protected] |
Writes a parameter file where a value for high-light growth threshold is not between 0 and 100.
char* clTestLogBiLevelGrowth::WriteXMLErrorFile2 | ( | ) | [protected] |
Writes a parameter file where a value for low-light Xb is 0.
char* clTestLogBiLevelGrowth::WriteXMLErrorFile3 | ( | ) | [protected] |
Writes a parameter file where a value for high-light Xb is 0.
char* clTestLogBiLevelGrowth::WriteXMLErrorFile4 | ( | ) | [protected] |
Writes a parameter file where a value for low-light max growth is less than 0.
char* clTestLogBiLevelGrowth::WriteXMLErrorFile5 | ( | ) | [protected] |
Writes a parameter file where a value for high-light max growth is less than 0.
char* clTestLogBiLevelGrowth::WriteXMLErrorFile6 | ( | ) | [protected] |
Writes a parameter file where a value for low-light X0 is 0.
char* clTestLogBiLevelGrowth::WriteXMLErrorFile7 | ( | ) | [protected] |
Writes a parameter file where a value for high-light X0 is 0.
void clTestLogBiLevelGrowth::WriteCommonStuff | ( | std::fstream & | oOut | ) | [protected] |
Writes common portions of the test parameter files.
This starts with <randomSeed> and ends with </allometry>.
oOut | File stream to write to. |
void clTestLogBiLevelGrowth::WriteGrowthParameters | ( | std::fstream & | oOut | ) | [protected] |
Writes growth parameters for the test parameter files.
oOut | File stream to write to. |