clTestNonSpatialDispersal Class Reference

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

#include <TestNonSpatialDispersal.h>

List of all members.

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.
void VerifyXMLFile1 (clGridBase *p_oSeedGrid)
 Verifies the seedling counts for TestNonSpatialDispersal1.
void VerifyXMLFile2 (clGridBase *p_oSeedGrid)
 Verifies the seedling counts for TestNonSpatialDispersal2.
char * WriteXMLFile1 ()
 Writes a parameter file to direct testing using the first set of testing conditions.
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::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 seeds per grid cell is compared with expected values.

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.

void clTestNonSpatialDispersal::VerifyXMLFile1 ( clGridBase *  p_oSeedGrid  )  [private]

Verifies the seedling counts for TestNonSpatialDispersal1.

Parameters:
p_oSeedGrid Dispersed seeds grid.

void clTestNonSpatialDispersal::VerifyXMLFile2 ( clGridBase *  p_oSeedGrid  )  [private]

Verifies the seedling counts for TestNonSpatialDispersal2.

Parameters:
p_oSeedGrid Dispersed seeds grid.

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.

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:
Generated on Wed Nov 15 11:27:26 2006 for SORTIE C++ Test Documentation by  doxygen 1.4.7