#include <TestVolumeCalculator.h>
Public Member Functions | |
void | TestVolumeCalculator () |
Performs all the tests from one function. | |
Protected Member Functions | |
void | TestNormalProcessing (clSimManager *p_oSimManager) |
Tests normal processing. | |
void | TestErrorProcessing (clSimManager *p_oSimManager) |
Tests error processing. | |
void | NormalRun1 (clSimManager *p_oSimManager) |
Performs the first normal processing run. | |
void | NormalRun2 (clSimManager *p_oSimManager) |
Performs the second normal processing run. | |
void | NormalRun3 (clSimManager *p_oSimManager) |
Performs the third normal processing run. | |
void | NormalRun4 (clSimManager *p_oSimManager) |
Performs the fourth normal processing run. | |
void | NormalRun5 (clSimManager *p_oSimManager) |
Performs the fifth normal processing run. | |
char * | WriteXMLFile1 () |
Writes the parameter file for NormalRun1(). | |
char * | WriteXMLFile2 () |
Writes the parameter file for NormalRun2(). | |
char * | WriteXMLFile3 () |
Writes the parameter file for NormalRun3(). | |
char * | WriteXMLFile4 () |
Writes the parameter file for NormalRun4(). | |
char * | WriteXMLFile5 () |
Writes the parameter file for NormalRun5(). | |
char * | WriteXMLErrorFile1 () |
Writes an error file where the stump height is less than 0. | |
char * | WriteXMLErrorFile2 () |
Writes an error file where the minimum usable diameter is less than 0. | |
char * | WriteXMLErrorFile3 () |
Writes an error file where the segment length is less than 0. | |
char * | WriteXMLErrorFile4 () |
Writes an error file where the volume behavior is applied to seedlings. | |
void | WriteCommonStuff (std::fstream &oOut) |
Writes common portions of the test parameter files (tree pop, plot, etc). |
|
Performs the first normal processing run. WriteXMLFile1() does setup. Five trees are created of two species. Then the run is allowed to proceed and their volumes are checked.
|
|
Performs the second normal processing run. WriteXMLFile2() does setup. Two trees are created of two species. Then the run is allowed to proceed and their volumes are checked.
|
|
Performs the third normal processing run. WriteXMLFile3() does setup. One tree is created. Then the run is allowed to proceed and its volume is checked.
|
|
Performs the fourth normal processing run. WriteXMLFile4() does setup. Four trees are created of two species. Then the run is allowed to proceed and their volumes are checked.
|
|
Performs the fifth normal processing run. WriteXMLFile5() does setup. Two trees are created of two species. Then the run is allowed to proceed and their volumes are checked.
|
|
Tests error processing. This uses WriteXMLErrorFile1(), WriteXMLErrorFile2(), WriteXMLErrorFile3(), and WriteXMLErrorFile4() to introduce errors and makes sure that they are caught. |
|
Tests normal processing. It does this by calling NormalRun1(), NormalRun2(), NormalRun3(), NormalRun4(), and NormalRun5().
|
|
Writes common portions of the test parameter files (tree pop, plot, etc).
|
|
Writes the parameter file for NormalRun1().
|
|
Writes the parameter file for NormalRun2().
|
|
Writes the parameter file for NormalRun3().
|
|
Writes the parameter file for NormalRun4().
|
|
Writes the parameter file for NormalRun5().
|