SORTIE C++ Test Documentation
|
#include <fstream>
Functions | |
void | TestStormKillerRun1Timestep1 (clTreePopulation *p_oPop) |
Tests the clStormKiller class. More... | |
void | TestStormKillerRun1Timestep2 (clTreePopulation *p_oPop) |
Checks the expected results for timestep 2 of TestNormalProcessingRun1(). More... | |
void | TestStormKillerRun1Timestep3 (clTreePopulation *p_oPop) |
Checks the expected results for timestep 3 of TestNormalProcessingRun1(). More... | |
void | TestStormKillerRun1Timestep4 (clTreePopulation *p_oPop) |
Checks the expected results for timestep 4 of TestNormalProcessingRun1(). More... | |
void | TestStormKillerRun1Timestep5 (clTreePopulation *p_oPop) |
Checks the expected results for timestep 5 of TestNormalProcessingRun1(). More... | |
void | TestStormKillerRun3Timestep1 (clTreePopulation *p_oPop) |
Checks the expected results for timestep 1 of TestNormalProcessingRun3(). More... | |
void | TestStormKillerRun3Timestep2 (clTreePopulation *p_oPop) |
Checks the expected results for timestep 2 of TestNormalProcessingRun3(). More... | |
void | TestStormKillerRun3Timestep3 (clTreePopulation *p_oPop) |
Checks the expected results for timestep 3 of TestNormalProcessingRun3(). More... | |
void | TestStormKillerRun3Timestep4 (clTreePopulation *p_oPop) |
Checks the expected results for timestep 4 of TestNormalProcessingRun3(). More... | |
void | TestStormKillerRun3Timestep5 (clTreePopulation *p_oPop) |
Checks the expected results for timestep 5 of TestNormalProcessingRun3(). More... | |
void | TestErrorProcessing (clSimManager *p_oSimManager) |
Tests error processing. More... | |
const char * | WriteStormKillerXMLFile1 () |
Writes the parameter file for TestNormalProcessing1(). More... | |
const char * | WriteStormKillerXMLFile2 () |
Writes the parameter file for TestNormalProcessing2(). More... | |
const char * | WriteStormKillerXMLFile3 () |
Writes the parameter file for TestNormalProcessing3(). More... | |
const char * | WriteStormKillerXMLErrorFile1 () |
Writes an error file where the storm behavior is not also enabled. More... | |
const char * | WriteStormKillerXMLErrorFile2 () |
Writes an error file where the storm killer behavior is applied to seedlings. More... | |
const char * | WriteStormKillerXMLErrorFile3 () |
Writes an error file where the storm damage applier behavior is not also enabled. More... | |
const char * | WriteStormKillerXMLErrorFile4 () |
Writes an error file where the proportion of fully damaged trees that tip up is not a proportion. More... | |
const char * | WriteStormKillerXMLErrorFile5 () |
Writes an error file where the max snag lifespan is negative. More... | |
const char * | WriteStormKillerXMLErrorFile6 () |
Writes an error file where mortality behaviors aren't applied to all storm trees. More... | |
void | WriteStormKillerCommonStuff (std::fstream &oOut) |
Writes common portions of the test parameter files. More... | |
void | WriteStormKillerSnagBehaviorList (std::fstream &oOut) |
Writes a behavior list with snags. More... | |
void | WriteStormKillerNoSnagBehaviorList (std::fstream &oOut) |
Writes a behavior list with no snags. More... | |
void | WriteStormKillerStormParameters (std::fstream &oOut) |
Writes common storm parameters. More... | |
void TestErrorProcessing | ( | clSimManager * | p_oSimManager | ) |
Tests error processing.
error | if any of the errors are not caught, or an error other than the intended error is thrown by a parameter file. |
void TestStormKillerRun1Timestep1 | ( | clTreePopulation * | p_oPop | ) |
Tests the clStormKiller class.
Checks the expected results for timestep 1 of TestNormalProcessingRun1().
p_oPop | Tree population object. |
void TestStormKillerRun1Timestep2 | ( | clTreePopulation * | p_oPop | ) |
Checks the expected results for timestep 2 of TestNormalProcessingRun1().
p_oPop | Tree population object. |
void TestStormKillerRun1Timestep3 | ( | clTreePopulation * | p_oPop | ) |
Checks the expected results for timestep 3 of TestNormalProcessingRun1().
p_oPop | Tree population object. |
void TestStormKillerRun1Timestep4 | ( | clTreePopulation * | p_oPop | ) |
Checks the expected results for timestep 4 of TestNormalProcessingRun1().
p_oPop | Tree population object. |
void TestStormKillerRun1Timestep5 | ( | clTreePopulation * | p_oPop | ) |
Checks the expected results for timestep 5 of TestNormalProcessingRun1().
p_oPop | Tree population object. |
void TestStormKillerRun3Timestep1 | ( | clTreePopulation * | p_oPop | ) |
Checks the expected results for timestep 1 of TestNormalProcessingRun3().
p_oPop | Tree population object. |
void TestStormKillerRun3Timestep2 | ( | clTreePopulation * | p_oPop | ) |
Checks the expected results for timestep 2 of TestNormalProcessingRun3().
p_oPop | Tree population object. |
void TestStormKillerRun3Timestep3 | ( | clTreePopulation * | p_oPop | ) |
Checks the expected results for timestep 3 of TestNormalProcessingRun3().
p_oPop | Tree population object. |
void TestStormKillerRun3Timestep4 | ( | clTreePopulation * | p_oPop | ) |
Checks the expected results for timestep 4 of TestNormalProcessingRun3().
p_oPop | Tree population object. |
void TestStormKillerRun3Timestep5 | ( | clTreePopulation * | p_oPop | ) |
Checks the expected results for timestep 5 of TestNormalProcessingRun3().
p_oPop | Tree population object. |
void WriteStormKillerCommonStuff | ( | std::fstream & | oOut | ) |
Writes common portions of the test parameter files.
Starts with <randomSeed> and ends with </allometry>.
oOut | File stream to write to. |
void WriteStormKillerNoSnagBehaviorList | ( | std::fstream & | oOut | ) |
Writes a behavior list with no snags.
oOut | File stream to write to. |
void WriteStormKillerSnagBehaviorList | ( | std::fstream & | oOut | ) |
Writes a behavior list with snags.
oOut | File stream to write to. |
void WriteStormKillerStormParameters | ( | std::fstream & | oOut | ) |
Writes common storm parameters.
Starts with <storm> and ends with </storm>.
oOut | File stream to write to. |
const char* WriteStormKillerXMLErrorFile1 | ( | ) |
Writes an error file where the storm behavior is not also enabled.
(By necessity the storm damage applier behavior is not enabled either, otherwise it would catch the error.)
const char* WriteStormKillerXMLErrorFile2 | ( | ) |
Writes an error file where the storm killer behavior is applied to seedlings.
const char* WriteStormKillerXMLErrorFile3 | ( | ) |
Writes an error file where the storm damage applier behavior is not also enabled.
const char* WriteStormKillerXMLErrorFile4 | ( | ) |
Writes an error file where the proportion of fully damaged trees that tip up is not a proportion.
const char* WriteStormKillerXMLErrorFile5 | ( | ) |
Writes an error file where the max snag lifespan is negative.
const char* WriteStormKillerXMLErrorFile6 | ( | ) |
Writes an error file where mortality behaviors aren't applied to all storm trees.
const char* WriteStormKillerXMLFile1 | ( | ) |
Writes the parameter file for TestNormalProcessing1().
const char* WriteStormKillerXMLFile2 | ( | ) |
Writes the parameter file for TestNormalProcessing2().
const char* WriteStormKillerXMLFile3 | ( | ) |
Writes the parameter file for TestNormalProcessing3().