#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). |
void clTestVolumeCalculator::TestVolumeCalculator | ( | ) |
Performs all the tests from one function.
void clTestVolumeCalculator::TestNormalProcessing | ( | clSimManager * | p_oSimManager | ) | [protected] |
Tests normal processing.
It does this by calling NormalRun1(), NormalRun2(), NormalRun3(), NormalRun4(), and NormalRun5().
p_oSimManager | Sim Manager object to call for runs. |
void clTestVolumeCalculator::TestErrorProcessing | ( | clSimManager * | p_oSimManager | ) | [protected] |
Tests error processing.
This uses WriteXMLErrorFile1(), WriteXMLErrorFile2(), WriteXMLErrorFile3(), and WriteXMLErrorFile4() to introduce errors and makes sure that they are caught.
void clTestVolumeCalculator::NormalRun1 | ( | clSimManager * | p_oSimManager | ) | [protected] |
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.
p_oSimManager | Sim Manager object to call for runs. |
void clTestVolumeCalculator::NormalRun2 | ( | clSimManager * | p_oSimManager | ) | [protected] |
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.
p_oSimManager | Sim Manager object to call for runs. |
void clTestVolumeCalculator::NormalRun3 | ( | clSimManager * | p_oSimManager | ) | [protected] |
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.
p_oSimManager | Sim Manager object to call for runs. |
void clTestVolumeCalculator::NormalRun4 | ( | clSimManager * | p_oSimManager | ) | [protected] |
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.
p_oSimManager | Sim Manager object to call for runs. |
void clTestVolumeCalculator::NormalRun5 | ( | clSimManager * | p_oSimManager | ) | [protected] |
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.
p_oSimManager | Sim Manager object to call for runs. |
char* clTestVolumeCalculator::WriteXMLFile1 | ( | ) | [protected] |
char* clTestVolumeCalculator::WriteXMLFile2 | ( | ) | [protected] |
char* clTestVolumeCalculator::WriteXMLFile3 | ( | ) | [protected] |
char* clTestVolumeCalculator::WriteXMLFile4 | ( | ) | [protected] |
char* clTestVolumeCalculator::WriteXMLFile5 | ( | ) | [protected] |
char* clTestVolumeCalculator::WriteXMLErrorFile1 | ( | ) | [protected] |
Writes an error file where the stump height is less than 0.
char* clTestVolumeCalculator::WriteXMLErrorFile2 | ( | ) | [protected] |
Writes an error file where the minimum usable diameter is less than 0.
char* clTestVolumeCalculator::WriteXMLErrorFile3 | ( | ) | [protected] |
Writes an error file where the segment length is less than 0.
char* clTestVolumeCalculator::WriteXMLErrorFile4 | ( | ) | [protected] |
Writes an error file where the volume behavior is applied to seedlings.
void clTestVolumeCalculator::WriteCommonStuff | ( | std::fstream & | oOut | ) | [protected] |
Writes common portions of the test parameter files (tree pop, plot, etc).
oOut | File stream to write to. |