SORTIE C++ Test Documentation
|
Tests the clStorm class. More...
#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. | |
const char * | WriteXMLFile1 () |
Writes a parameter file with the specifications given for TestNormalDeterministic(). | |
const char * | WriteXMLFile2 () |
Writes a parameter file with the specifications given for TestNormalMappedDeterministic(). | |
const char * | WriteXMLFile3 () |
Writes a parameter file with the specifications given for TestNormalStochastic(). | |
const char * | WriteXMLFile4 () |
Writes a parameter file with the specifications given for TestNormalMappedStochastic(). | |
const char * | WriteXMLFile5 () |
Writes a parameter file with the specifications given for TestMultiYearTimesteps(). | |
const 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. | |
const 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. | |
const char * | WriteXMLErrorFile3 () |
Writes a parameter file where not all storm interval return values are greater than 0. | |
const char * | WriteXMLErrorFile4 () |
Writes a parameter file where the value for susceptibility pattern in the parameter file is not recognized. | |
const char * | WriteXMLErrorFile5 () |
Writes a parameter file where the damage pattern is "stochastic" and there is no value for probability distribution function. | |
const char * | WriteXMLErrorFile6 () |
Writes a parameter file where the damage pattern is "stochastic" and the value for probability distribution function is not recognized. | |
const 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. | |
const char * | WriteXMLErrorFile8 () |
Writes a parameter file where the value for stochasticity is not recognized. | |
const char * | WriteXMLErrorFile9 () |
Writes a parameter file where a scheduled storm's minimum is greater than its maximum. | |
const char * | WriteXMLErrorFile10 () |
Writes a parameter file where a scheduled storm's minimum is not between 0 and 1. | |
const char * | WriteXMLErrorFile11 () |
Writes a parameter file where a scheduled storm's maximum is not between 0 and 1. | |
void | WriteCommonStuff (std::fstream &oOut) |
Writes the portion of the parameter file common to all test files. | |
Tests the clStorm class.
|
protected |
Tests error processing.
Tests:
|
protected |
Tests multi-year timestep testing.
WriteXMLFile5() does setup. Here's how it goes:
|
protected |
Tests normal processing for a deterministic damage pattern.
WriteXMLFile1() does setup. Here's how it goes:
p_oSimManager | Sim Manager object. |
|
protected |
Tests normal processing for a deterministic mapped damage pattern.
WriteXMLFile2() does setup. Here's how it goes:
p_oSimManager | Sim Manager object. |
|
protected |
Tests normal processing for a stochastic mapped damage pattern.
WriteXMLFile4() does setup. Here's how it goes:
|
protected |
Tests normal processing for a stochastic damage pattern.
WriteXMLFile3() does setup. Here's how it goes:
p_oSimManager | Sim Manager object. |
void clTestStorm::TestStorm | ( | ) |
Does all the storm testing.
|
protected |
Writes the portion of the parameter file common to all test files.
oOut | File stream to write to. |
|
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.
|
protected |
Writes a parameter file where a scheduled storm's minimum is not between 0 and 1.
|
protected |
Writes a parameter file where a scheduled storm's maximum is not between 0 and 1.
|
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.
|
protected |
Writes a parameter file where not all storm interval return values are greater than 0.
|
protected |
Writes a parameter file where the value for susceptibility pattern in the parameter file is not recognized.
|
protected |
Writes a parameter file where the damage pattern is "stochastic" and there is no value for probability distribution function.
|
protected |
Writes a parameter file where the damage pattern is "stochastic" and the value for probability distribution function is not recognized.
|
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.
|
protected |
Writes a parameter file where the value for stochasticity is not recognized.
|
protected |
Writes a parameter file where a scheduled storm's minimum is greater than its maximum.
|
protected |
Writes a parameter file with the specifications given for TestNormalDeterministic().
|
protected |
Writes a parameter file with the specifications given for TestNormalMappedDeterministic().
|
protected |
Writes a parameter file with the specifications given for TestNormalStochastic().
|
protected |
Writes a parameter file with the specifications given for TestNormalMappedStochastic().
|
protected |
Writes a parameter file with the specifications given for TestMultiYearTimesteps().