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

This class tests the masting non-spatial disperse behavior (clMastingNonSpatialDisperse). More...

#include <TestMastingNonSpatialDisperse.h>

Inheritance diagram for clTestMastingNonSpatialDisperse:

Public Member Functions

void TestMastingNonSpatialDisperse ()
 Rolls together all the tests.
 

Private Member Functions

void NormalProcessingRun1 (clSimManager *p_oSimManager)
 Tests masting non-spatial dispersal, run 1.
 
void NormalProcessingRun2 (clSimManager *p_oSimManager)
 Tests masting non-spatial dispersal, run 2.
 
void NormalProcessingRun3 (clSimManager *p_oSimManager)
 Tests masting non-spatial dispersal, run 3.
 
void TestErrorProcessing (clSimManager *p_oSimManager)
 Tests error processing.
 
const char * WriteXMLFile1 ()
 Writes a parameter file to direct testing for run 1.
 
const char * WriteXMLFile2 ()
 Writes a parameter file to direct testing for run 2.
 
const char * WriteXMLFile3 ()
 Writes a parameter file to direct testing for run 3.
 
const char * WriteXMLErrorFile1 ()
 Writes an error file where masting inverse gaussian mu is not > 0.
 
const char * WriteXMLErrorFile2 ()
 Writes an error file where non-masting inverse gaussian mu is not > 0.
 
const char * WriteXMLErrorFile3 ()
 Writes an error file where masting inverse gaussian lambda is not > 0.
 
const char * WriteXMLErrorFile4 ()
 Writes an error file where non-masting inverse gaussian lambda is not > 0.
 
void WriteTrees (std::fstream &oOut)
 Writes tree stuff.
 
void WriteAllometry (std::fstream &oOut)
 Writes allometry stuff.
 

Detailed Description

This class tests the masting non-spatial disperse behavior (clMastingNonSpatialDisperse).

Member Function Documentation

void clTestMastingNonSpatialDisperse::NormalProcessingRun1 ( clSimManager *  p_oSimManager)
private

Tests masting non-spatial dispersal, run 1.

It does the following: Checks that the correct params are used for mast vs. nonmast; checks that grouping happens correctly; checks that when there are no trees, basal area is split correctly. WriteXMLFile1 does setup.

Parameters
p_oSimManagerSim manager to direct testing.
void clTestMastingNonSpatialDisperse::NormalProcessingRun2 ( clSimManager *  p_oSimManager)
private

Tests masting non-spatial dispersal, run 2.

It does the following: Checks that grouping happens correctly; checks that basal area splits happen correctly; and checks multi-year timestep. WriteXMLFile2 does setup.

Parameters
p_oSimManagerSim manager to direct testing.
void clTestMastingNonSpatialDisperse::NormalProcessingRun3 ( clSimManager *  p_oSimManager)
private

Tests masting non-spatial dispersal, run 3.

It does the following: Checks using different draws appropriately. WriteXMLFile3 does setup.

Parameters
p_oSimManagerSim manager to direct testing.
void clTestMastingNonSpatialDisperse::TestErrorProcessing ( clSimManager *  p_oSimManager)
private

Tests error processing.

This uses WriteXMLErrorFileX to introduce errors and make sure that they are caught.

Parameters
p_oSimManagerSim Manager object to call for runs.
void clTestMastingNonSpatialDisperse::TestMastingNonSpatialDisperse ( )

Rolls together all the tests.

void clTestMastingNonSpatialDisperse::WriteAllometry ( std::fstream &  oOut)
private

Writes allometry stuff.

Parameters
oOutFile stream to write to.
void clTestMastingNonSpatialDisperse::WriteTrees ( std::fstream &  oOut)
private

Writes tree stuff.

Parameters
oOutFile stream to write to.
const char* clTestMastingNonSpatialDisperse::WriteXMLErrorFile1 ( )
private

Writes an error file where masting inverse gaussian mu is not > 0.

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

Writes an error file where non-masting inverse gaussian mu is not > 0.

Returns
Filename written.
const char* clTestMastingNonSpatialDisperse::WriteXMLErrorFile3 ( )
private

Writes an error file where masting inverse gaussian lambda is not > 0.

Returns
Filename written.
const char* clTestMastingNonSpatialDisperse::WriteXMLErrorFile4 ( )
private

Writes an error file where non-masting inverse gaussian lambda is not > 0.

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

Writes a parameter file to direct testing for run 1.

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

Writes a parameter file to direct testing for run 2.

Returns
Filename written.
const char* clTestMastingNonSpatialDisperse::WriteXMLFile3 ( )
private

Writes a parameter file to direct testing for run 3.

Returns
Filename written.

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