clTestAnisotropicDisperse Class Reference

This class tests the anisotropic dispersal behavior. More...

#include <TestAnisotropicDisperse.h>

List of all members.

Public Member Functions

void TestIsotropicDispersal1 ()
 Tests isotropic dispersal when the timestep length is 1 year.
void TestIsotropicDispersal2 ()
 Tests isotropic dispersal when the timestep length is 3 years.
void TestErrorProcessing ()
 Tests error processing for bad input.

Private Member Functions

void VerifyXMLFile1 (clGridBase *p_oSeedGrid)
 Verifies the numbers of seeds during TestIsotropicDispersal1.
void VerifyXMLFile2 (clGridBase *p_oSeedGrid)
 Verifies the numbers of seeds during TestIsotropicDispersal2.
char * WriteXMLFile1 ()
 Writes a parameter file with isotropic disperse and a timestep length of 1 year.
char * WriteXMLFile2 ()
 Writes a parameter file with isotropic disperse and a timestep length of 3 years.
char * WriteXMLErrorFile1 ()
 Writes a file where an azimuth angle for anisotropic disperse is less than 0.
char * WriteXMLErrorFile2 ()
 Writes a file where an azimuth angle for anisotropic disperse is greater than 2PI.
char * WriteXMLErrorFile3 ()
 Writes a file where max search radius is less than 0.
char * WriteXMLErrorFile4 ()
 Writes a file where max search radius is greater than 0.5 the smallest plot dimension.


Detailed Description

This class tests the anisotropic 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.

Two runs will be tested: one in which the timestep length is 1 year and one in which the timestep length is 3 years.


Member Function Documentation

void clTestAnisotropicDisperse::TestIsotropicDispersal1 (  ) 

Tests isotropic dispersal when the timestep length is 1 year.

It will cause a parameter file to be written and then passed to a clSimManager object. This object will read it. The disperse behavior is run and the contents of the seed grid examined.

void clTestAnisotropicDisperse::TestIsotropicDispersal2 (  ) 

Tests isotropic dispersal when the timestep length is 3 years.

It will cause a parameter file to be written and then passed to a clSimManager object. This object will read it. The disperse behavior is run and the contents of the seed grid examined.

void clTestAnisotropicDisperse::TestErrorProcessing (  ) 

Tests error processing for bad input.

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

Verifies the numbers of seeds during TestIsotropicDispersal1.

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

Verifies the numbers of seeds during TestIsotropicDispersal2.

char* clTestAnisotropicDisperse::WriteXMLFile1 (  )  [private]

Writes a parameter file with isotropic disperse and a timestep length of 1 year.

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.

Returns:
Filename written.

char* clTestAnisotropicDisperse::WriteXMLFile2 (  )  [private]

Writes a parameter file with isotropic disperse and a timestep length of 3 years.

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.

Returns:
Filename written.

char* clTestAnisotropicDisperse::WriteXMLErrorFile1 (  )  [private]

Writes a file where an azimuth angle for anisotropic disperse is less than 0.

Returns:
Filename written.

char* clTestAnisotropicDisperse::WriteXMLErrorFile2 (  )  [private]

Writes a file where an azimuth angle for anisotropic disperse is greater than 2PI.

Returns:
Filename written.

char* clTestAnisotropicDisperse::WriteXMLErrorFile3 (  )  [private]

Writes a file where max search radius is less than 0.

Returns:
Filename written.

char* clTestAnisotropicDisperse::WriteXMLErrorFile4 (  )  [private]

Writes a file where max search radius is greater than 0.5 the smallest plot dimension.

Returns:
Filename written.


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

Generated on Wed Oct 28 14:03:21 2009 for SORTIE C++ Test Documentation by  doxygen 1.5.6