SORTIE C++ Test Documentation
Functions
TestStormKiller.h File Reference
#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...
 

Function Documentation

◆ TestErrorProcessing()

void TestErrorProcessing ( clSimManager *  p_oSimManager)

Tests error processing.

Exceptions
errorif any of the errors are not caught, or an error other than the intended error is thrown by a parameter file.

◆ TestStormKillerRun1Timestep1()

void TestStormKillerRun1Timestep1 ( clTreePopulation *  p_oPop)

Tests the clStormKiller class.

Checks the expected results for timestep 1 of TestNormalProcessingRun1().

Parameters
p_oPopTree population object.

◆ TestStormKillerRun1Timestep2()

void TestStormKillerRun1Timestep2 ( clTreePopulation *  p_oPop)

Checks the expected results for timestep 2 of TestNormalProcessingRun1().

Parameters
p_oPopTree population object.

◆ TestStormKillerRun1Timestep3()

void TestStormKillerRun1Timestep3 ( clTreePopulation *  p_oPop)

Checks the expected results for timestep 3 of TestNormalProcessingRun1().

Parameters
p_oPopTree population object.

◆ TestStormKillerRun1Timestep4()

void TestStormKillerRun1Timestep4 ( clTreePopulation *  p_oPop)

Checks the expected results for timestep 4 of TestNormalProcessingRun1().

Parameters
p_oPopTree population object.

◆ TestStormKillerRun1Timestep5()

void TestStormKillerRun1Timestep5 ( clTreePopulation *  p_oPop)

Checks the expected results for timestep 5 of TestNormalProcessingRun1().

Parameters
p_oPopTree population object.

◆ TestStormKillerRun3Timestep1()

void TestStormKillerRun3Timestep1 ( clTreePopulation *  p_oPop)

Checks the expected results for timestep 1 of TestNormalProcessingRun3().

Parameters
p_oPopTree population object.

◆ TestStormKillerRun3Timestep2()

void TestStormKillerRun3Timestep2 ( clTreePopulation *  p_oPop)

Checks the expected results for timestep 2 of TestNormalProcessingRun3().

Parameters
p_oPopTree population object.

◆ TestStormKillerRun3Timestep3()

void TestStormKillerRun3Timestep3 ( clTreePopulation *  p_oPop)

Checks the expected results for timestep 3 of TestNormalProcessingRun3().

Parameters
p_oPopTree population object.

◆ TestStormKillerRun3Timestep4()

void TestStormKillerRun3Timestep4 ( clTreePopulation *  p_oPop)

Checks the expected results for timestep 4 of TestNormalProcessingRun3().

Parameters
p_oPopTree population object.

◆ TestStormKillerRun3Timestep5()

void TestStormKillerRun3Timestep5 ( clTreePopulation *  p_oPop)

Checks the expected results for timestep 5 of TestNormalProcessingRun3().

Parameters
p_oPopTree population object.

◆ WriteStormKillerCommonStuff()

void WriteStormKillerCommonStuff ( std::fstream &  oOut)

Writes common portions of the test parameter files.

Starts with <randomSeed> and ends with </allometry>.

Parameters
oOutFile stream to write to.

◆ WriteStormKillerNoSnagBehaviorList()

void WriteStormKillerNoSnagBehaviorList ( std::fstream &  oOut)

Writes a behavior list with no snags.

Parameters
oOutFile stream to write to.

◆ WriteStormKillerSnagBehaviorList()

void WriteStormKillerSnagBehaviorList ( std::fstream &  oOut)

Writes a behavior list with snags.

Parameters
oOutFile stream to write to.

◆ WriteStormKillerStormParameters()

void WriteStormKillerStormParameters ( std::fstream &  oOut)

Writes common storm parameters.

Starts with <storm> and ends with </storm>.

Parameters
oOutFile stream to write to.

◆ WriteStormKillerXMLErrorFile1()

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.)

Returns
File name of the freshly written parameter file.

◆ WriteStormKillerXMLErrorFile2()

const char* WriteStormKillerXMLErrorFile2 ( )

Writes an error file where the storm killer behavior is applied to seedlings.

Returns
File name of the freshly written parameter file.

◆ WriteStormKillerXMLErrorFile3()

const char* WriteStormKillerXMLErrorFile3 ( )

Writes an error file where the storm damage applier behavior is not also enabled.

Returns
File name of the freshly written parameter file.

◆ WriteStormKillerXMLErrorFile4()

const char* WriteStormKillerXMLErrorFile4 ( )

Writes an error file where the proportion of fully damaged trees that tip up is not a proportion.

Returns
File name of the freshly written parameter file.

◆ WriteStormKillerXMLErrorFile5()

const char* WriteStormKillerXMLErrorFile5 ( )

Writes an error file where the max snag lifespan is negative.

Returns
File name of the freshly written parameter file.

◆ WriteStormKillerXMLErrorFile6()

const char* WriteStormKillerXMLErrorFile6 ( )

Writes an error file where mortality behaviors aren't applied to all storm trees.

Returns
File name of the freshly written parameter file.

◆ WriteStormKillerXMLFile1()

const char* WriteStormKillerXMLFile1 ( )

Writes the parameter file for TestNormalProcessing1().

Returns
File name of the freshly written parameter file.

◆ WriteStormKillerXMLFile2()

const char* WriteStormKillerXMLFile2 ( )

Writes the parameter file for TestNormalProcessing2().

Returns
File name of the freshly written parameter file.

◆ WriteStormKillerXMLFile3()

const char* WriteStormKillerXMLFile3 ( )

Writes the parameter file for TestNormalProcessing3().

Returns
File name of the freshly written parameter file.