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

This class tests the clEstablishment behavior. More...

#include <TestEstablishment.h>

Inheritance diagram for clTestEstablishment:

Public Member Functions

void TestEstablishment ()
 Groups all establishment tests into one function.
 

Private Member Functions

void TestNormalProcessingRun1 (clSimManager *p_oSimManager)
 Tests establishment.
 
void TestNormalProcessingRun2 (clSimManager *p_oSimManager)
 Tests establishment.
 
void TestErrorProcessing (clSimManager *p_oSimManager)
 Runs through the error files to make sure that errors are caught correctly.
 
const char * WriteXMLFile1 ()
 Writes a parameter file to direct testing.
 
const char * WriteXMLFile2 ()
 Writes a parameter file to direct testing.
 
const char * WriteXMLErrorFile1 ()
 Writes a parameter file with no disperse behaviors whatsoever.
 

Detailed Description

This class tests the clEstablishment behavior.

Member Function Documentation

void clTestEstablishment::TestErrorProcessing ( clSimManager *  p_oSimManager)
private

Runs through the error files to make sure that errors are caught correctly.

Parameters
p_oSimManagerSim Manager object to run testing.
void clTestEstablishment::TestEstablishment ( )

Groups all establishment tests into one function.

void clTestEstablishment::TestNormalProcessingRun1 ( clSimManager *  p_oSimManager)
private

Tests establishment.

WriteXMLFile1() does setup. Non-spatial dispserse is included with parameters such that it creates no seeds. The "Dispersed Seeds" grid cells do not divide evenly into the plot lengths. The grid is populated with some initial values. Then one timestep of a simulation is run and this verifies that the number of seedlings is right, and the number of seeds is 0.

Parameters
p_oSimManagerSim Manager object to run testing.
void clTestEstablishment::TestNormalProcessingRun2 ( clSimManager *  p_oSimManager)
private

Tests establishment.

WriteXMLFile2() does setup. Non-spatial dispserse is included with parameters such that it creates no seeds. The "Dispersed Seeds" grid cells divide evenly into the plot lengths. The grid is populated with some initial values. Then one timestep of a simulation is run and this verifies that the number of seedlings is right, and the number of seeds is 0.

Parameters
p_oSimManagerSim Manager object to run testing.
const char* clTestEstablishment::WriteXMLErrorFile1 ( )
private

Writes a parameter file with no disperse behaviors whatsoever.

Returns
Filename written.
const char* clTestEstablishment::WriteXMLFile1 ( )
private

Writes a parameter file to direct testing.

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

Writes a parameter file to direct testing.

Returns
Filename written.

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