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

Tests the clStochasticGapGrowth class. More...

#include <TestStochasticGapGrowth.h>

Inheritance diagram for clTestStochasticGapGrowth:

Public Member Functions

void TestStochasticGapGrowth ()
 Rolls up all testing into one function.
 

Protected Member Functions

void TestNormalProcessing (clSimManager *p_oSimManager)
 Tests normal processing.
 
void TestErrorProcessing (clSimManager *p_oSimManager)
 Tests error processing.
 
const char * WriteXMLFile1 ()
 Writes a parameter file for normal processing.
 
const char * WriteXMLErrorFile1 ()
 Writes a parameter file for error processing.
 

Detailed Description

Tests the clStochasticGapGrowth class.

Author
Lora E. Murphy

Member Function Documentation

void clTestStochasticGapGrowth::TestErrorProcessing ( clSimManager *  p_oSimManager)
protected

Tests error processing.

This tests the case where the gap light behavior is not called before the stochastic gap growth behavior. WriteXMLErrorFile1() is used to write the error file.

void clTestStochasticGapGrowth::TestNormalProcessing ( clSimManager *  p_oSimManager)
protected

Tests normal processing.

WriteXMLFile1() does setup. 3 adult trees are placed so as to create non-gap conditions in certain cells of the "Gap Light" grid. A series of juveniles that are potential growers are placed in other cells. The simulation is run, and then for gap cells containing juveniles, we make sure that there is only one adult and that it has a size equal to the minimum adult DBH.

Parameters
p_oSimManagerSim manager to run the test with.
void clTestStochasticGapGrowth::TestStochasticGapGrowth ( )

Rolls up all testing into one function.

const char* clTestStochasticGapGrowth::WriteXMLErrorFile1 ( )
protected

Writes a parameter file for error processing.

In this case, the stochastic gap growth function is in the behavior list but the gap light behavior is not.

Returns
Filename written.
const char* clTestStochasticGapGrowth::WriteXMLFile1 ( )
protected

Writes a parameter file for normal processing.

There are three species. The behaviors are gap light and stochastic gap growth.

Returns
Filename written.

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