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

This class tests the germination behavior. More...

#include <TestGermination.h>

Inheritance diagram for clTestGermination:

Public Member Functions

void TestGermination ()
 Tests normal processing germination.
 

Private Member Functions

void TestGerminationNormalProcessing (clSimManager *p_oSimManager)
 Tests normal processing.
 
void TestGerminationErrorProcessing (clSimManager *p_oSimManager)
 This tests the two error processing files.
 
void VerifyXMLFile1 (clGrid *p_oSeedGrid)
 Verifies the seedling counts for TestGermination.
 
const char * WriteXMLFile1 ()
 Writes a parameter file to direct testing using the first set of testing conditions.
 
const char * WriteXMLErrorFile1 ()
 Writes a parameter file with a germination parameter less than 0.
 
const char * WriteXMLErrorFile2 ()
 Writes a parameter file with a germination parameter greater than 1.
 

Detailed Description

This class tests the germination 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 one normal processing run and two error runs.

Member Function Documentation

void clTestGermination::TestGermination ( )

Tests normal processing germination.

It will cause a parameter file to be written and then passed to a clSimManager object. This object will read it. The germination behavior is run and seedlings counted.

void clTestGermination::TestGerminationErrorProcessing ( clSimManager *  p_oSimManager)
private

This tests the two error processing files.

Parameters
p_oSimManagerSim Manager object.
void clTestGermination::TestGerminationNormalProcessing ( clSimManager *  p_oSimManager)
private

Tests normal processing.

Parameters
p_oSimManagerSim Manager object.
void clTestGermination::VerifyXMLFile1 ( clGrid *  p_oSeedGrid)
private

Verifies the seedling counts for TestGermination.

Parameters
p_oSeedGridDispersed seeds grid.
const char* clTestGermination::WriteXMLErrorFile1 ( )
private

Writes a parameter file with a germination parameter less than 0.

Returns
Filename written.
const char* clTestGermination::WriteXMLErrorFile2 ( )
private

Writes a parameter file with a germination parameter greater than 1.

Returns
Filename written.
const char* clTestGermination::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.

Returns
Filename written.

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