SORTIE C++ Test Documentation
Public Member Functions | Private Member Functions | List of all members
clTestNonSpatialDispersal Class Reference

This class tests the non-spatial dispersal behavior. More...

#include <TestNonSpatialDispersal.h>

Inheritance diagram for clTestNonSpatialDispersal:

Public Member Functions

void TestNonSpatialDispersal ()
 Rolls together all the non-spatial dispersal tests.
 

Private Member Functions

void TestNonSpatialDispersal1 (clSimManager *p_oSimManager)
 Tests non-spatial dispersal, run 1.
 
void TestNonSpatialDispersal2 (clSimManager *p_oSimManager)
 Tests non-spatial dispersal, run 2.
 
const char * WriteXMLFile1 ()
 Writes a parameter file to direct testing using the first set of testing conditions.
 
const char * WriteXMLFile2 ()
 Writes a parameter file to direct testing using the second set of testing conditions (same as the first set, just different number of years per timestep).
 

Detailed Description

This class tests the non-spatial dispersal behavior.

It writes out parameter files and uses them as input to perform setup; it then sets up the desired initial conditions, causes the behavior to run, then tests its output. There will be two normal processing runs. Both use deterministic seed numbers, which should equal the expected mean +- 1.

Member Function Documentation

void clTestNonSpatialDispersal::TestNonSpatialDispersal ( )

Rolls together all the non-spatial dispersal tests.

void clTestNonSpatialDispersal::TestNonSpatialDispersal1 ( clSimManager *  p_oSimManager)
private

Tests non-spatial dispersal, run 1.

It will cause a parameter file to be written and then passed to a clSimManager object. That object will read it. Then the non-spatial dispersal behavior is run. The number of seedlings per grid cell is compared with expected values.

Parameters
p_oSimManagerSim manager to direct testing.
void clTestNonSpatialDispersal::TestNonSpatialDispersal2 ( clSimManager *  p_oSimManager)
private

Tests non-spatial dispersal, run 2.

It will cause a parameter file to be written and then passed to a clSimManager object. That object will read it. Then the non-spatial dispersal behavior is run. The number of seeds per grid cell is compared with expected values.

Parameters
p_oSimManagerSim manager to direct testing.
const char* clTestNonSpatialDispersal::WriteXMLFile1 ( )
private

Writes a parameter file to direct testing using the first set of testing conditions.

This contains all tree information and disperse information. It also has a tree map so we'll be dealing with a known list of trees. The timestep length is 1 year.

Returns
Filename written.
const char* clTestNonSpatialDispersal::WriteXMLFile2 ( )
private

Writes a parameter file to direct testing using the second set of testing conditions (same as the first set, just different number of years per timestep).

This contains all tree information and disperse information. It also has a tree map so we'll be dealing with a known list of trees. The timestep length is three years.

Returns
Filename written.

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