#include <TestBoleVolumeCalculator.h>
Public Member Functions | |
void | TestBoleVolumeCalculator () |
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. | |
char * | WriteXMLFile1 () |
Writes a parameter file for normal processing. | |
char * | WriteXMLErrorFile1 () |
Writes an error file where a form class value is less than 60. | |
char * | WriteXMLErrorFile2 () |
Writes an error file where a form class value is greater than 100. | |
char * | WriteXMLErrorFile3 () |
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 clTestBoleVolumeCalculator::TestErrorProcessing | ( | clSimManager * | p_oSimManager | ) | [protected] |
Tests error processing.
This uses WriteXMLErrorFile1(), WriteXMLErrorFile2(), and WriteXMLErrorFile3() to introduce errors and make sure that they are caught.
p_oSimManager | Sim Manager object to call for runs. |
void clTestBoleVolumeCalculator::TestNormalProcessing | ( | clSimManager * | p_oSimManager | ) | [protected] |
Tests normal processing.
WriteXMLFile1() does setup. Then 87 trees are created. A simulation is run for one timestep then the volume checked for all those trees.
p_oSimManager | Sim Manager object to call for runs. |
void clTestBoleVolumeCalculator::WriteCommonStuff | ( | std::fstream & | oOut | ) | [protected] |
Writes common portions of the test parameter files (tree pop, plot, etc).
Ends with </trees>.
oOut | File stream to write to. |
char* clTestBoleVolumeCalculator::WriteXMLErrorFile1 | ( | ) | [protected] |
Writes an error file where a form class value is less than 60.
char* clTestBoleVolumeCalculator::WriteXMLErrorFile2 | ( | ) | [protected] |
Writes an error file where a form class value is greater than 100.
char* clTestBoleVolumeCalculator::WriteXMLErrorFile3 | ( | ) | [protected] |
Writes an error file where the volume behavior is applied to seedlings.
char* clTestBoleVolumeCalculator::WriteXMLFile1 | ( | ) | [protected] |
Writes a parameter file for normal processing.
There are 8 species (of which 7 are used), and the bole volume behavior is the only one in the run.