SORTIE C++ Test Documentation
|
Tests the clStochasticGapGrowth class. More...
#include <TestStochasticGapGrowth.h>
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. | |
Tests the clStochasticGapGrowth class.
|
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.
|
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.
p_oSimManager | Sim manager to run the test with. |
void clTestStochasticGapGrowth::TestStochasticGapGrowth | ( | ) |
Rolls up all testing into one function.
|
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.
|
protected |
Writes a parameter file for normal processing.
There are three species. The behaviors are gap light and stochastic gap growth.