#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 damage pattern is "stochastic", the probability distribution function is "negative_binomial", and there is no value for the clumping parameter. | |
char * | WriteXMLErrorFile9 () |
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. |
|
Tests error processing. Tests:
|
|
Tests multi-year timestep testing. WriteXMLFile5() does setup. Here's how it goes:
|
|
Tests normal processing for a deterministic damage pattern. WriteXMLFile1() does setup. Here's how it goes:
|
|
Tests normal processing for a deterministic mapped damage pattern. WriteXMLFile2() does setup. Here's how it goes:
|
|
Tests normal processing for a stochastic mapped damage pattern. WriteXMLFile4() does setup. Here's how it goes:
|
|
Tests normal processing for a stochastic damage pattern. WriteXMLFile3() does setup. Here's how it goes:
|
|
Writes the portion of the parameter file common to all test files.
|
|
Writes a parameter file where there are grid maps for both "Storm Damage" and "Storm Susceptibility" and the grid cell resolutions don't match.
|
|
Writes a parameter file where the damage pattern is set to "mapped" but there is no "Storm Susceptibility" grid map in the parameter file.
|
|
Writes a parameter file where not all storm interval return values are greater than 0.
|
|
Writes a parameter file where the value for susceptibility pattern in the parameter file is not recognized.
|
|
Writes a parameter file where the damage pattern is "stochastic" and there is no value for probability distribution function.
|
|
Writes a parameter file where the damage pattern is "stochastic" and the value for probability distribution function is not recognized.
|
|
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.
|
|
Writes a parameter file where the damage pattern is "stochastic", the probability distribution function is "negative_binomial", and there is no value for the clumping parameter.
|
|
Writes a parameter file where the value for stochasticity is not recognized.
|
|
Writes a parameter file with the specifications given for TestNormalDeterministic().
|
|
Writes a parameter file with the specifications given for TestNormalMappedDeterministic().
|
|
Writes a parameter file with the specifications given for TestNormalStochastic().
|
|
Writes a parameter file with the specifications given for TestNormalMappedStochastic().
|
|
Writes a parameter file with the specifications given for TestMultiYearTimesteps().
|