clTestMastingNonSpatialDisperse Class Reference

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

#include <TestMastingNonSpatialDisperse.h>

List of all members.

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.
char * WriteXMLFile1 ()
 Writes a parameter file to direct testing for run 1.
char * WriteXMLFile2 ()
 Writes a parameter file to direct testing for run 2.
char * WriteXMLFile3 ()
 Writes a parameter file to direct testing for run 3.
char * WriteXMLErrorFile1 ()
 Writes an error file where masting inverse gaussian mu is not > 0.
char * WriteXMLErrorFile2 ()
 Writes an error file where non-masting inverse gaussian mu is not > 0.
char * WriteXMLErrorFile3 ()
 Writes an error file where masting inverse gaussian lambda is not > 0.
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::TestMastingNonSpatialDisperse (  ) 

Rolls together all the tests.

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_oSimManager Sim 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_oSimManager Sim 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_oSimManager Sim 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_oSimManager Sim Manager object to call for runs.

char* clTestMastingNonSpatialDisperse::WriteXMLFile1 (  )  [private]

Writes a parameter file to direct testing for run 1.

Returns:
Filename written.

char* clTestMastingNonSpatialDisperse::WriteXMLFile2 (  )  [private]

Writes a parameter file to direct testing for run 2.

Returns:
Filename written.

char* clTestMastingNonSpatialDisperse::WriteXMLFile3 (  )  [private]

Writes a parameter file to direct testing for run 3.

Returns:
Filename written.

char* clTestMastingNonSpatialDisperse::WriteXMLErrorFile1 (  )  [private]

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

Returns:
Filename written.

char* clTestMastingNonSpatialDisperse::WriteXMLErrorFile2 (  )  [private]

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

Returns:
Filename written.

char* clTestMastingNonSpatialDisperse::WriteXMLErrorFile3 (  )  [private]

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

Returns:
Filename written.

char* clTestMastingNonSpatialDisperse::WriteXMLErrorFile4 (  )  [private]

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

Returns:
Filename written.

void clTestMastingNonSpatialDisperse::WriteTrees ( std::fstream &  oOut  )  [private]

Writes tree stuff.

Parameters:
oOut File stream to write to.

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

Writes allometry stuff.

Parameters:
oOut File stream to write to.


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

Generated on Tue Apr 19 14:06:00 2011 for SORTIE C++ Test Documentation by  doxygen 1.5.6