#include <TestQuadratGLILight.h>
Public Member Functions | |
void | TestQuadratGLILight () |
Rolls all other tests into a single function to call. | |
Protected Member Functions | |
void | TestGridSetup (clSimManager *p_oSimManager) |
Tests the setup for the "Quadrat GLI" grid. | |
void | TestParameterSetup (clSimManager *p_oSimManager) |
Tests the setup for the parameters. | |
void | TestNormalProcessingRun1 (clSimManager *p_oSimManager) |
Makes sure Quadrat GLI processing is performed correctly. | |
void | TestNormalProcessingRun2 (clSimManager *p_oSimManager) |
Makes sure Quadrat GLI processing is performed correctly. | |
void | TestErrorProcessing (clSimManager *p_oSimManager) |
Tests error processing. | |
char * | WriteXMLFile1 () |
Writes a parameter file to direct testing. | |
char * | WriteXMLFile2 () |
Writes a parameter file to direct testing. | |
char * | WriteXMLFile3 () |
Writes a parameter file to direct testing. | |
char * | WriteXMLFile4 () |
Writes a parameter file to direct testing. | |
char * | WriteXMLFile5 () |
Writes a parameter file to direct testing. | |
char * | WriteXMLErrorFile1 () |
Writes a parameter file to direct error testing. | |
char * | WriteXMLErrorFile2 () |
Writes a parameter file to direct error testing. | |
char * | WriteXMLErrorFile3 () |
Writes a parameter file to direct error testing. | |
void | WriteCommonStuff (std::fstream &oOut) |
Writes common portions of the test parameter files (tree pop, plot, etc). |
void clTestQuadratGLILight::TestQuadratGLILight | ( | ) |
Rolls all other tests into a single function to call.
void clTestQuadratGLILight::TestGridSetup | ( | clSimManager * | p_oSimManager | ) | [protected] |
Tests the setup for the "Quadrat GLI" grid.
Tests the following conditions:
p_oSimManager | Sim manager for running tests. |
void clTestQuadratGLILight::TestParameterSetup | ( | clSimManager * | p_oSimManager | ) | [protected] |
Tests the setup for the parameters.
Tests the following conditions:
p_oSimManager | Sim manager for running tests. |
void clTestQuadratGLILight::TestNormalProcessingRun1 | ( | clSimManager * | p_oSimManager | ) | [protected] |
Makes sure Quadrat GLI processing is performed correctly.
WriteXMLFile2() does setup. Two "Quadrat GLI" grid cells, (0, 0) and (5, 5), have their GLIs tested according to expected values from a spreadsheet. This verifies that GLI is being correctly calculated. All other cell values should be -1.
p_oSimManager | Sim manager for running tests. |
void clTestQuadratGLILight::TestNormalProcessingRun2 | ( | clSimManager * | p_oSimManager | ) | [protected] |
Makes sure Quadrat GLI processing is performed correctly.
WriteXMLFile5() does setup. This makes sure that every cell gets a GLI value when that flag is set.
p_oSimManager | Sim manager for running tests. |
void clTestQuadratGLILight::TestErrorProcessing | ( | clSimManager * | p_oSimManager | ) | [protected] |
Tests error processing.
Each of the error files is fed in to make sure that clGLIMap correctly throws an error.
char* clTestQuadratGLILight::WriteXMLFile1 | ( | ) | [protected] |
Writes a parameter file to direct testing.
char* clTestQuadratGLILight::WriteXMLFile2 | ( | ) | [protected] |
Writes a parameter file to direct testing.
char* clTestQuadratGLILight::WriteXMLFile3 | ( | ) | [protected] |
Writes a parameter file to direct testing.
char* clTestQuadratGLILight::WriteXMLFile4 | ( | ) | [protected] |
Writes a parameter file to direct testing.
char* clTestQuadratGLILight::WriteXMLFile5 | ( | ) | [protected] |
Writes a parameter file to direct testing.
char* clTestQuadratGLILight::WriteXMLErrorFile1 | ( | ) | [protected] |
Writes a parameter file to direct error testing.
The number of azimuth grids for Quadrat GLI is less than or equal to 0.
char* clTestQuadratGLILight::WriteXMLErrorFile2 | ( | ) | [protected] |
Writes a parameter file to direct error testing.
The number of altitude grids for Quadrat GLI is less than or equal to 0.
char* clTestQuadratGLILight::WriteXMLErrorFile3 | ( | ) | [protected] |
Writes a parameter file to direct error testing.
The height of the GLI photo is less than 0.
void clTestQuadratGLILight::WriteCommonStuff | ( | std::fstream & | oOut | ) | [protected] |
Writes common portions of the test parameter files (tree pop, plot, etc).
oOut | File stream to write to. |