#include <TestMastingNonSpatialDisperse.h>
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. |
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.
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.
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.
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.
p_oSimManager | Sim Manager object to call for runs. |
char* clTestMastingNonSpatialDisperse::WriteXMLFile1 | ( | ) | [private] |
Writes a parameter file to direct testing for run 1.
char* clTestMastingNonSpatialDisperse::WriteXMLFile2 | ( | ) | [private] |
Writes a parameter file to direct testing for run 2.
char* clTestMastingNonSpatialDisperse::WriteXMLFile3 | ( | ) | [private] |
Writes a parameter file to direct testing for run 3.
char* clTestMastingNonSpatialDisperse::WriteXMLErrorFile1 | ( | ) | [private] |
Writes an error file where masting inverse gaussian mu is not > 0.
char* clTestMastingNonSpatialDisperse::WriteXMLErrorFile2 | ( | ) | [private] |
Writes an error file where non-masting inverse gaussian mu is not > 0.
char* clTestMastingNonSpatialDisperse::WriteXMLErrorFile3 | ( | ) | [private] |
Writes an error file where masting inverse gaussian lambda is not > 0.
char* clTestMastingNonSpatialDisperse::WriteXMLErrorFile4 | ( | ) | [private] |
Writes an error file where non-masting inverse gaussian lambda is not > 0.
void clTestMastingNonSpatialDisperse::WriteTrees | ( | std::fstream & | oOut | ) | [private] |
Writes tree stuff.
oOut | File stream to write to. |
void clTestMastingNonSpatialDisperse::WriteAllometry | ( | std::fstream & | oOut | ) | [private] |
Writes allometry stuff.
oOut | File stream to write to. |