SORTIE C++ Test Documentation
Public Member Functions | Protected Member Functions | List of all members
clTestTreeAgeCalculator Class Reference

Tests the class clTreeAgeCalculator. More...

#include <TestTreeAgeCalculator.h>

Inheritance diagram for clTestTreeAgeCalculator:

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.
 
const char * WriteXMLFile1 ()
 Writes the parameter file for normal processing.
 
const char * WriteXMLFile2 ()
 Writes the parameter file for normal processing.
 
const char * WriteXMLErrorFile1 ()
 Writes an error file where the behavior is applied to snags.
 

Detailed Description

Tests the class clTreeAgeCalculator.

Member Function Documentation

void clTestTreeAgeCalculator::TestErrorProcessing ( clSimManager *  p_oSimManager)
protected

Tests error processing.

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

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_oSimManagerSim 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_oSimManagerSim Manager object to call for runs.
void clTestTreeAgeCalculator::TestTreeAgeCalculator ( )

Performs all the tests from one function.

const char* clTestTreeAgeCalculator::WriteXMLErrorFile1 ( )
protected

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

const 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.
const 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.

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