clTestTreeAgeCalculator Class Reference

Tests the class clTreeAgeCalculator. More...

#include <TestTreeAgeCalculator.h>

List of all members.

Public Member Functions

void TestTreeAgeCalculator ()
 Performs all the tests from one function.

Protected Member Functions

void TestNormalProcessingRun1 (clSimManager *p_oSimManager)
 Tests normal processing, run 1.
void TestNormalProcessingRun2 (clSimManager *p_oSimManager)
 Tests normal processing, run 2.
void TestErrorProcessing (clSimManager *p_oSimManager)
 Tests error processing.
char * WriteXMLFile1 ()
 Writes the parameter file for normal processing.
char * WriteXMLFile2 ()
 Writes the parameter file for normal processing.
char * WriteXMLErrorFile1 ()
 Writes an error file where the behavior is applied to snags.


Detailed Description

Tests the class clTreeAgeCalculator.

Member Function Documentation

void clTestTreeAgeCalculator::TestTreeAgeCalculator (  ) 

Performs all the tests from one function.

void clTestTreeAgeCalculator::TestNormalProcessingRun1 ( clSimManager *  p_oSimManager  )  [protected]

Tests normal processing, run 1.

WriteXMLFile1() does setup. Several trees are created and their age checked to make sure it's correct after each of two timesteps.

Parameters:
p_oSimManager Sim Manager object to call for runs.

void clTestTreeAgeCalculator::TestNormalProcessingRun2 ( clSimManager *  p_oSimManager  )  [protected]

Tests normal processing, run 2.

WriteXMLFile2() does setup. Several trees are created and their age checked to make sure it's correct after each of two timesteps.

Parameters:
p_oSimManager Sim Manager object to call for runs.

void clTestTreeAgeCalculator::TestErrorProcessing ( clSimManager *  p_oSimManager  )  [protected]

Tests error processing.

This uses WriteXMLErrorFile1() to introduce errors and makes sure that they are caught.

char* clTestTreeAgeCalculator::WriteXMLFile1 (  )  [protected]

Writes the parameter file for normal processing.

There is 1 species; timestep length is 1 year; there is only one behavior, the tree age calculator behavior. There are 30 trees in a tree map, 10 of which have an age specified, 10 of which do not, and 10 of which do not have the age behavior applied.

Returns:
Filename written.

char* clTestTreeAgeCalculator::WriteXMLFile2 (  )  [protected]

Writes the parameter file for normal processing.

There is 1 species; timestep length is 3 years; there is only one behavior, the tree age calculator behavior. There are also 10 trees per hectare as initial conditions.

Returns:
Filename written.

char* clTestTreeAgeCalculator::WriteXMLErrorFile1 (  )  [protected]

Writes an error file where the behavior is applied to snags.


The documentation for this class was generated from the following file:

Generated on Wed Oct 28 14:03:23 2009 for SORTIE C++ Test Documentation by  doxygen 1.5.6