clTestStormLight Class Reference

Tests the clStormLight class. More...

#include <TestStormLight.h>

List of all members.

Public Member Functions

void TestStormLight ()
 Rolls together all the tests into one function.

Private Member Functions

void NormalProcessingRun1 (clSimManager *p_oSimManager)
 Tests normal processing - run 1.
void NormalProcessingRun2 (clSimManager *p_oSimManager)
 Tests normal processing - run 2.
void TestErrorProcessing (clSimManager *p_oSimManager)
 Tests error processing.
char * WriteXMLFile1 ()
 Writes a parameter file for normal proceessing run 1.
char * WriteXMLFile2 ()
 Writes a parameter file for normal proceessing run 1.
char * WriteXMLErrorFile1 ()
 Writes an error file where the minimum number of trees for a full canopy is less than 0.


Detailed Description

Tests the clStormLight class.


Member Function Documentation

void clTestStormLight::NormalProcessingRun1 ( clSimManager *  p_oSimManager  )  [private]

Tests normal processing - run 1.

This run uses a deterministic light level and puts in a given set of trees, both with and without storm damage. This then checks the light values in select cells to make sure that the proper values are set. WriteXMLFile1() does setup.

Parameters:
p_oSimManager Sim Manager to do runs.

void clTestStormLight::NormalProcessingRun2 ( clSimManager *  p_oSimManager  )  [private]

Tests normal processing - run 2.

This run uses a deterministic light level but no snags in the run. This puts in a given set of trees, both with and without storm damage. This then checks the light values in select cells to make sure that the proper values are set. WriteXMLFile2() does setup.

Parameters:
p_oSimManager Sim Manager to do runs.

void clTestStormLight::TestErrorProcessing ( clSimManager *  p_oSimManager  )  [private]

Tests error processing.

Parameters:
p_oSimManager Sim Manager to do runs.

char* clTestStormLight::WriteXMLErrorFile1 (  )  [private]

Writes an error file where the minimum number of trees for a full canopy is less than 0.

Returns:
File name of the freshly written parameter file.

char* clTestStormLight::WriteXMLFile1 (  )  [private]

Writes a parameter file for normal proceessing run 1.

This has the storm and storm damage appliers, a mortality behavior to satisfy storm requirements, and the storm light behavior. The timestep length is 1 year.

Returns:
Filename written.

char* clTestStormLight::WriteXMLFile2 (  )  [private]

Writes a parameter file for normal proceessing run 1.

This has the storm and storm damage appliers, a mortality behavior to satisfy storm requirements, and the storm light behavior. The timestep length is 1 year.

Returns:
Filename written.


The documentation for this class was generated from the following file:
Generated on Wed Nov 15 11:27:27 2006 for SORTIE C++ Test Documentation by  doxygen 1.4.7