#include <TestDensityLight.h>
Public Member Functions | |
void | TestDensityLight () |
Rolls together all the tests into one function. | |
Private 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 | NormalProcessingRun4 (clSimManager *p_oSimManager) |
Tests normal processing - run 4. | |
void | TestErrorProcessing (clSimManager *p_oSimManager) |
Tests error processing. | |
char * | WriteXMLFile1 () |
Writes a parameter file for normal proceessing run 1. | |
char * | WriteXMLFile2 () |
Writes a parameter file for normal proceessing run 2. | |
char * | WriteXMLFile3 () |
Writes a parameter file for normal proceessing run 3. | |
char * | WriteXMLFile4 () |
Writes a parameter file for normal proceessing run 4. | |
char * | WriteXMLErrorFile1 () |
Writes an error file where the "c" parameter = 0. | |
char * | WriteXMLErrorFile2 () |
Writes an error file where the change threshold < 0. | |
char * | WriteXMLErrorFile3 () |
Writes an error file where the minimum DBH < 0. | |
char * | WriteXMLErrorFile4 () |
Writes an error file where the "Density Light" grid cell lengths don't divide evenly into the plot lengths. | |
void | WriteCommonStuff (std::fstream &oOut) |
Writes common portions of the test parameter files (allometry and tree pop). |
void clTestDensityLight::NormalProcessingRun1 | ( | clSimManager * | p_oSimManager | ) | [private] |
Tests normal processing - run 1.
This checks the calculation of mean GLI and verifies that new light level calculations are triggered correctly. WriteXMLFile1() does setup.
p_oSimManager | Sim Manager to do runs. |
void clTestDensityLight::NormalProcessingRun2 | ( | clSimManager * | p_oSimManager | ) | [private] |
Tests normal processing - run 2.
This ensures that the calculation of mean GLI is bounded between 0 and 100. WriteXMLFile2() does setup.
p_oSimManager | Sim Manager to do runs. |
void clTestDensityLight::NormalProcessingRun3 | ( | clSimManager * | p_oSimManager | ) | [private] |
Tests normal processing - run 3.
This checks to make sure grid cell sizes are honored and allows checking of the light level distribution. WriteXMLFile3() does setup. This produces an output file called "Density Light Distribution.txt".
p_oSimManager | Sim Manager to do runs. |
void clTestDensityLight::NormalProcessingRun4 | ( | clSimManager * | p_oSimManager | ) | [private] |
Tests normal processing - run 4.
This double-checks grid map reading. WriteXMLFile4() does setup.
p_oSimManager | Sim Manager to do runs. |
void clTestDensityLight::TestErrorProcessing | ( | clSimManager * | p_oSimManager | ) | [private] |
Tests error processing.
p_oSimManager | Sim Manager to do runs. |
void clTestDensityLight::WriteCommonStuff | ( | std::fstream & | oOut | ) | [private] |
Writes common portions of the test parameter files (allometry and tree pop).
oOut | File stream to write to. |
char* clTestDensityLight::WriteXMLErrorFile1 | ( | ) | [private] |
Writes an error file where the "c" parameter = 0.
char* clTestDensityLight::WriteXMLErrorFile2 | ( | ) | [private] |
Writes an error file where the change threshold < 0.
char* clTestDensityLight::WriteXMLErrorFile3 | ( | ) | [private] |
Writes an error file where the minimum DBH < 0.
char* clTestDensityLight::WriteXMLErrorFile4 | ( | ) | [private] |
Writes an error file where the "Density Light" grid cell lengths don't divide evenly into the plot lengths.
char* clTestDensityLight::WriteXMLFile1 | ( | ) | [private] |
Writes a parameter file for normal proceessing run 1.
char* clTestDensityLight::WriteXMLFile2 | ( | ) | [private] |
Writes a parameter file for normal proceessing run 2.
char* clTestDensityLight::WriteXMLFile3 | ( | ) | [private] |
Writes a parameter file for normal proceessing run 3.
char* clTestDensityLight::WriteXMLFile4 | ( | ) | [private] |
Writes a parameter file for normal proceessing run 4.