clTestStorm Class Reference

Tests the clStorm class. More...

#include <TestStorm.h>

List of all members.

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.


Detailed Description

Tests the clStorm class.


Member Function Documentation

void clTestStorm::TestNormalDeterministic ( clSimManager *  p_oSimManager  )  [protected]

Tests normal processing for a deterministic damage pattern.

WriteXMLFile1() does setup. Here's how it goes:

Parameters:
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:

Parameters:
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:

Parameters:
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().

Returns:
Filename written.

char* clTestStorm::WriteXMLFile2 (  )  [protected]

Writes a parameter file with the specifications given for TestNormalMappedDeterministic().

Returns:
Filename written.

char* clTestStorm::WriteXMLFile3 (  )  [protected]

Writes a parameter file with the specifications given for TestNormalStochastic().

Returns:
Filename written.

char* clTestStorm::WriteXMLFile4 (  )  [protected]

Writes a parameter file with the specifications given for TestNormalMappedStochastic().

Returns:
Filename written.

char* clTestStorm::WriteXMLFile5 (  )  [protected]

Writes a parameter file with the specifications given for TestMultiYearTimesteps().

Returns:
Filename written.

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.

Returns:
Filename written.

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.

Returns:
Filename written.

char* clTestStorm::WriteXMLErrorFile3 (  )  [protected]

Writes a parameter file where not all storm interval return values are greater than 0.

Returns:
Filename written.

char* clTestStorm::WriteXMLErrorFile4 (  )  [protected]

Writes a parameter file where the value for susceptibility pattern in the parameter file is not recognized.

Returns:
Filename written.

char* clTestStorm::WriteXMLErrorFile5 (  )  [protected]

Writes a parameter file where the damage pattern is "stochastic" and there is no value for probability distribution function.

Returns:
Filename written.

char* clTestStorm::WriteXMLErrorFile6 (  )  [protected]

Writes a parameter file where the damage pattern is "stochastic" and the value for probability distribution function is not recognized.

Returns:
Filename written.

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.

Returns:
Filename written.

char* clTestStorm::WriteXMLErrorFile8 (  )  [protected]

Writes a parameter file where the value for stochasticity is not recognized.

Returns:
Filename written.

void clTestStorm::WriteCommonStuff ( std::fstream &  oOut  )  [protected]

Writes the portion of the parameter file common to all test files.

Parameters:
oOut File stream to write to.


The documentation for this class was generated from the following file:
Generated on Thu May 24 09:35:11 2007 for SORTIE C++ Test Documentation by  doxygen 1.5.2