#include <TestAggregatedMortality.h>
Public Member Functions | |
void | TestAggregatedMortality () |
Assembles all other testing functions into one test. | |
Protected Member Functions | |
void | TestErrorProcessing (clSimManager *p_oSimManager) |
Tests error processing. | |
void | TestNormalProcessingRun1 (clSimManager *p_oSimManager) |
Tests normal processing Run 1. | |
void | TestNormalProcessingRun2 (clSimManager *p_oSimManager) |
Tests normal processing Run 2. | |
void | TestNormalProcessingRun3 (clSimManager *p_oSimManager) |
Tests normal processing Run 3. | |
void | TestNormalProcessingRun4 (clSimManager *p_oSimManager) |
Tests normal processing Run 4. | |
void | TestNormalProcessingRun5 (clSimManager *p_oSimManager) |
Tests normal processing Run 5. | |
void | TestNormalProcessingRun6 (clSimManager *p_oSimManager) |
Tests normal processing Run 6. | |
char * | WriteXMLFile1 () |
Writes the parameter file for TestNormalProcessing1(). | |
char * | WriteXMLFile2 () |
Writes the parameter file for TestNormalProcessing2(). | |
char * | WriteXMLFile3 () |
Writes the parameter file for TestNormalProcessing3(). | |
char * | WriteXMLFile4 () |
Writes the parameter file for TestNormalProcessing4(). | |
char * | WriteXMLFile5 () |
Writes the parameter file for TestNormalProcessing5(). | |
char * | WriteXMLFile6 () |
Writes the parameter file for TestNormalProcessing6(). | |
char * | WriteXMLErrorFile1 () |
Writes an error file where the value for amount to cut is not between 0 and 1. | |
char * | WriteXMLErrorFile2 () |
Writes an error file where the return interval is less than 0. | |
void | WriteCommonStuff (std::fstream &oOut) |
Writes common portions of the test parameter files. |
void clTestAggregatedMortality::TestNormalProcessingRun1 | ( | clSimManager * | p_oSimManager | ) | [protected] |
Tests normal processing Run 1.
WriteXMLFile1() writes the parameter file. This run tests getting proportions right, and general aggregation.
p_oSimManager | Sim Manager object to run our test run. |
void clTestAggregatedMortality::TestNormalProcessingRun2 | ( | clSimManager * | p_oSimManager | ) | [protected] |
Tests normal processing Run 2.
WriteXMLFile2() writes the parameter file. Tests aggregation across multiple grid cells.
p_oSimManager | Sim Manager object to run our test run. |
void clTestAggregatedMortality::TestNormalProcessingRun3 | ( | clSimManager * | p_oSimManager | ) | [protected] |
Tests normal processing Run 3.
WriteXMLFile3() writes the parameter file. Tests that only trees to which the behavior applies are cut.
p_oSimManager | Sim Manager object to run our test run. |
void clTestAggregatedMortality::TestNormalProcessingRun4 | ( | clSimManager * | p_oSimManager | ) | [protected] |
Tests normal processing Run 4.
WriteXMLFile4() writes the parameter file. Tests correct aggregation across longer distances.
p_oSimManager | Sim Manager object to run our test run. |
void clTestAggregatedMortality::TestNormalProcessingRun5 | ( | clSimManager * | p_oSimManager | ) | [protected] |
Tests normal processing Run 5.
WriteXMLFile5() writes the parameter file. Tests that behavior acts correctly when the clumping number is 1.
p_oSimManager | Sim Manager object to run our test run. |
void clTestAggregatedMortality::TestNormalProcessingRun6 | ( | clSimManager * | p_oSimManager | ) | [protected] |
Tests normal processing Run 6.
WriteXMLFile6() writes the parameter file. Tests that return intervals are correctly calculated.
p_oSimManager | Sim Manager object to run our test run. |
void clTestAggregatedMortality::WriteCommonStuff | ( | std::fstream & | oOut | ) | [protected] |
Writes common portions of the test parameter files.
Starts with <randomSeed> and ends with </allometry>.
oOut | File stream to write to. |
char* clTestAggregatedMortality::WriteXMLErrorFile1 | ( | ) | [protected] |
Writes an error file where the value for amount to cut is not between 0 and 1.
char* clTestAggregatedMortality::WriteXMLErrorFile2 | ( | ) | [protected] |
Writes an error file where the return interval is less than 0.
char* clTestAggregatedMortality::WriteXMLFile1 | ( | ) | [protected] |
Writes the parameter file for TestNormalProcessing1().
char* clTestAggregatedMortality::WriteXMLFile2 | ( | ) | [protected] |
Writes the parameter file for TestNormalProcessing2().
char* clTestAggregatedMortality::WriteXMLFile3 | ( | ) | [protected] |
Writes the parameter file for TestNormalProcessing3().
char* clTestAggregatedMortality::WriteXMLFile4 | ( | ) | [protected] |
Writes the parameter file for TestNormalProcessing4().
char* clTestAggregatedMortality::WriteXMLFile5 | ( | ) | [protected] |
Writes the parameter file for TestNormalProcessing5().
char* clTestAggregatedMortality::WriteXMLFile6 | ( | ) | [protected] |
Writes the parameter file for TestNormalProcessing6().