#include <TestStorm.h>
Public Member Functions | |
void | TestStorm () |
Does all the storm testing. | |
Protected Member Functions | |
void | TestNormalDeterministic (clSimManager *p_oSimManager) |
Tests normal processing for a deterministic damage pattern. | |
void | TestNormalMappedDeterministic (clSimManager *p_oSimManager) |
Tests normal processing for a deterministic mapped damage pattern. | |
void | TestNormalStochastic (clSimManager *p_oSimManager) |
Tests normal processing for a stochastic damage pattern. | |
void | TestNormalMappedStochastic (clSimManager *p_oSimManager) |
Tests normal processing for a stochastic mapped damage pattern. | |
void | TestMultiYearTimesteps (clSimManager *p_oSimManager) |
Tests multi-year timestep testing. | |
void | TestErrorProcessing (clSimManager *p_oSimManager) |
Tests error processing. | |
char * | WriteXMLFile1 () |
Writes a parameter file with the specifications given for TestNormalDeterministic(). | |
char * | WriteXMLFile2 () |
Writes a parameter file with the specifications given for TestNormalMappedDeterministic(). | |
char * | WriteXMLFile3 () |
Writes a parameter file with the specifications given for TestNormalStochastic(). | |
char * | WriteXMLFile4 () |
Writes a parameter file with the specifications given for TestNormalMappedStochastic(). | |
char * | WriteXMLFile5 () |
Writes a parameter file with the specifications given for TestMultiYearTimesteps(). | |
char * | WriteXMLErrorFile1 () |
Writes a parameter file where there are grid maps for both "Storm Damage" and "Storm Susceptibility" and the grid cell resolutions don't match. | |
char * | WriteXMLErrorFile2 () |
Writes a parameter file where the damage pattern is set to "mapped" but there is no "Storm Susceptibility" grid map in the parameter file. | |
char * | WriteXMLErrorFile3 () |
Writes a parameter file where not all storm interval return values are greater than 0. | |
char * | WriteXMLErrorFile4 () |
Writes a parameter file where the value for susceptibility pattern in the parameter file is not recognized. | |
char * | WriteXMLErrorFile5 () |
Writes a parameter file where the damage pattern is "stochastic" and there is no value for probability distribution function. | |
char * | WriteXMLErrorFile6 () |
Writes a parameter file where the damage pattern is "stochastic" and the value for probability distribution function is not recognized. | |
char * | WriteXMLErrorFile7 () |
Writes a parameter file where the damage pattern is "stochastic", the probability distribution function is "normal" or "lognormal", and there is no value for standard deviation. | |
char * | WriteXMLErrorFile8 () |
Writes a parameter file where the value for stochasticity is not recognized. | |
void | WriteCommonStuff (std::fstream &oOut) |
Writes the portion of the parameter file common to all test files. |
void clTestStorm::TestNormalDeterministic | ( | clSimManager * | p_oSimManager | ) | [protected] |
Tests normal processing for a deterministic damage pattern.
WriteXMLFile1() does setup. Here's how it goes:
p_oSimManager | Sim Manager object. |
void clTestStorm::TestNormalMappedDeterministic | ( | clSimManager * | p_oSimManager | ) | [protected] |
Tests normal processing for a deterministic mapped damage pattern.
WriteXMLFile2() does setup. Here's how it goes:
p_oSimManager | Sim Manager object. |
void clTestStorm::TestNormalStochastic | ( | clSimManager * | p_oSimManager | ) | [protected] |
Tests normal processing for a stochastic damage pattern.
WriteXMLFile3() does setup. Here's how it goes:
p_oSimManager | Sim Manager object. |
void clTestStorm::TestNormalMappedStochastic | ( | clSimManager * | p_oSimManager | ) | [protected] |
Tests normal processing for a stochastic mapped damage pattern.
WriteXMLFile4() does setup. Here's how it goes:
void clTestStorm::TestMultiYearTimesteps | ( | clSimManager * | p_oSimManager | ) | [protected] |
Tests multi-year timestep testing.
WriteXMLFile5() does setup. Here's how it goes:
void clTestStorm::TestErrorProcessing | ( | clSimManager * | p_oSimManager | ) | [protected] |
Tests error processing.
Tests:
char* clTestStorm::WriteXMLFile1 | ( | ) | [protected] |
Writes a parameter file with the specifications given for TestNormalDeterministic().
char* clTestStorm::WriteXMLFile2 | ( | ) | [protected] |
Writes a parameter file with the specifications given for TestNormalMappedDeterministic().
char* clTestStorm::WriteXMLFile3 | ( | ) | [protected] |
Writes a parameter file with the specifications given for TestNormalStochastic().
char* clTestStorm::WriteXMLFile4 | ( | ) | [protected] |
Writes a parameter file with the specifications given for TestNormalMappedStochastic().
char* clTestStorm::WriteXMLFile5 | ( | ) | [protected] |
Writes a parameter file with the specifications given for TestMultiYearTimesteps().
char* clTestStorm::WriteXMLErrorFile1 | ( | ) | [protected] |
Writes a parameter file where there are grid maps for both "Storm Damage" and "Storm Susceptibility" and the grid cell resolutions don't match.
char* clTestStorm::WriteXMLErrorFile2 | ( | ) | [protected] |
Writes a parameter file where the damage pattern is set to "mapped" but there is no "Storm Susceptibility" grid map in the parameter file.
char* clTestStorm::WriteXMLErrorFile3 | ( | ) | [protected] |
Writes a parameter file where not all storm interval return values are greater than 0.
char* clTestStorm::WriteXMLErrorFile4 | ( | ) | [protected] |
Writes a parameter file where the value for susceptibility pattern in the parameter file is not recognized.
char* clTestStorm::WriteXMLErrorFile5 | ( | ) | [protected] |
Writes a parameter file where the damage pattern is "stochastic" and there is no value for probability distribution function.
char* clTestStorm::WriteXMLErrorFile6 | ( | ) | [protected] |
Writes a parameter file where the damage pattern is "stochastic" and the value for probability distribution function is not recognized.
char* clTestStorm::WriteXMLErrorFile7 | ( | ) | [protected] |
Writes a parameter file where the damage pattern is "stochastic", the probability distribution function is "normal" or "lognormal", and there is no value for standard deviation.
char* clTestStorm::WriteXMLErrorFile8 | ( | ) | [protected] |
Writes a parameter file where the value for stochasticity is not recognized.
void clTestStorm::WriteCommonStuff | ( | std::fstream & | oOut | ) | [protected] |
Writes the portion of the parameter file common to all test files.
oOut | File stream to write to. |