#include <TestAnisotropicDisperse.h>
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. |
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.
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.
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.
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.
char* clTestAnisotropicDisperse::WriteXMLErrorFile1 | ( | ) | [private] |
Writes a file where an azimuth angle for anisotropic disperse is less than 0.
char* clTestAnisotropicDisperse::WriteXMLErrorFile2 | ( | ) | [private] |
Writes a file where an azimuth angle for anisotropic disperse is greater than 2PI.
char* clTestAnisotropicDisperse::WriteXMLErrorFile3 | ( | ) | [private] |
Writes a file where max search radius is less than 0.
char* clTestAnisotropicDisperse::WriteXMLErrorFile4 | ( | ) | [private] |
Writes a file where max search radius is greater than 0.5 the smallest plot dimension.