clTestStochasticGapGrowth Class Reference

Tests the clStochasticGapGrowth class. More...

#include <TestStochasticGapGrowth.h>

List of all members.

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.
char * WriteXMLFile1 ()
 Writes a parameter file for normal processing.
char * WriteXMLErrorFile1 ()
 Writes a parameter file for error processing.


Detailed Description

Tests the clStochasticGapGrowth class.

Author:
Lora E. Murphy

Member Function Documentation

void clTestStochasticGapGrowth::TestStochasticGapGrowth (  ) 

Rolls up all testing into one function.

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_oSimManager Sim manager to run the test with.

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.

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.

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.


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

Generated on Tue Apr 19 14:06:03 2011 for SORTIE C++ Test Documentation by  doxygen 1.5.6