#include <TestNeighborhoodSeedPredation.h>
Public Member Functions | |
void | TestNeighborhoodSeedPredation () |
Compiles all tests into one function. | |
Private Member Functions | |
void | TestNormalProcessingRun1 (clSimManager *p_oSimManager) |
First normal processing run. | |
void | TestNormalProcessingRun2 (clSimManager *p_oSimManager) |
Second normal processing run. | |
void | TestNormalProcessingRun3 (clSimManager *p_oSimManager) |
Third normal processing run. | |
void | TestErrorProcessing (clSimManager *p_oSimManager) |
Tests error processing. | |
char * | WriteXMLFile1 () |
Writes the parameter file for normal processing run 1. | |
char * | WriteXMLFile2 () |
Writes the parameter file for normal processing run 2. | |
char * | WriteXMLFile3 () |
Writes the parameter file for normal processing run 3. | |
char * | WriteXMLErrorFile1 () |
Writes a file where minimum neighbor DBH is negative. | |
char * | WriteXMLErrorFile2 () |
Writes a file where masting threshod is negative. | |
char * | WriteXMLErrorFile3 () |
Writes a file where neighborhood radius is negative. | |
char * | WriteXMLErrorFile4 () |
Writes a file where there are no disperse behaviors. | |
void | WriteTreesAllometry (std::fstream &oOut) |
Writes common portions of the parameter file - trees and allometry. |
void clTestNeighborhoodSeedPredation::TestNormalProcessingRun1 | ( | clSimManager * | p_oSimManager | ) | [private] |
First normal processing run.
WriteXMLFile1() does setup. Seed predation is applied to species 1, 2, and 4. This run tests not counting seeds of unapplied species when checking the masting threshold, and choosing the correct parameters in a non-mast situation. This uses non-spatial disperse to drop 1 seed/m2 of each species, plus 2 of species 3 (5 seeds/m2 total). After a run occurs, the number of new seedlings is verified.
p_oSimManager | Sim manager object. |
void clTestNeighborhoodSeedPredation::TestNormalProcessingRun2 | ( | clSimManager * | p_oSimManager | ) | [private] |
Second normal processing run.
WriteXMLFile2() does setup. This tests choosing the correct parameters in a mast situation, and correctly calculating mast density. This puts 10000 seeds of species 1 in seed grid cell (0,0) and 100 seeds of species 2 in grid cell (4,4). After a run occurs, the number of new seedlings is verified.
p_oSimManager | Sim manager object. |
void clTestNeighborhoodSeedPredation::TestNormalProcessingRun3 | ( | clSimManager * | p_oSimManager | ) | [private] |
Third normal processing run.
WriteXMLFile3() does setup. Seed predation is applied to species 1, 2, and 4. This run tests multi-year timesteps. This uses non-spatial disperse to drop 3 seeds/m2 of each species, plus 2 of species 3 (11 seeds/m2 total). After a run occurs, the number of new seedlings is verified.
p_oSimManager | Sim manager object. |
void clTestNeighborhoodSeedPredation::TestErrorProcessing | ( | clSimManager * | p_oSimManager | ) | [private] |
Tests error processing.
This uses the error parameter files to make sure errors are correctly caught.
p_oSimManager | Sim manager object. |
char* clTestNeighborhoodSeedPredation::WriteXMLFile1 | ( | ) | [private] |
Writes the parameter file for normal processing run 1.
char* clTestNeighborhoodSeedPredation::WriteXMLFile2 | ( | ) | [private] |
Writes the parameter file for normal processing run 2.
char* clTestNeighborhoodSeedPredation::WriteXMLFile3 | ( | ) | [private] |
Writes the parameter file for normal processing run 3.
char* clTestNeighborhoodSeedPredation::WriteXMLErrorFile1 | ( | ) | [private] |
Writes a file where minimum neighbor DBH is negative.
char* clTestNeighborhoodSeedPredation::WriteXMLErrorFile2 | ( | ) | [private] |
Writes a file where masting threshod is negative.
char* clTestNeighborhoodSeedPredation::WriteXMLErrorFile3 | ( | ) | [private] |
Writes a file where neighborhood radius is negative.
char* clTestNeighborhoodSeedPredation::WriteXMLErrorFile4 | ( | ) | [private] |
Writes a file where there are no disperse behaviors.
void clTestNeighborhoodSeedPredation::WriteTreesAllometry | ( | std::fstream & | oOut | ) | [private] |
Writes common portions of the parameter file - trees and allometry.
oOut | Filestream to write to. |