This class tests the clNeighborhoodSeedPredation class.
More...
#include <TestNeighborhoodSeedPredation.h>
|
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 | TestNormalProcessingRun4 (clSimManager *p_oSimManager) |
| Fourth normal processing run.
|
|
void | TestNormalProcessingRun5 (clSimManager *p_oSimManager) |
| Fifth normal processing run.
|
|
void | TestNormalProcessingRun6 (clSimManager *p_oSimManager) |
| Sixth normal processing run.
|
|
void | TestNormalProcessingRun7 (clSimManager *p_oSimManager) |
| Seventh normal processing run.
|
|
void | TestErrorProcessing (clSimManager *p_oSimManager) |
| Tests error processing.
|
|
void | TestRun1And5 (clSimManager *p_oSimManager) |
| Does the testing for runs one and five.
|
|
void | TestRun2And6 (clSimManager *p_oSimManager) |
| Does the testing for runs two and six.
|
|
const char * | WriteXMLFile1 () |
| Writes the parameter file for normal processing run 1.
|
|
const char * | WriteXMLFile2 () |
| Writes the parameter file for normal processing run 2.
|
|
const char * | WriteXMLFile3 () |
| Writes the parameter file for normal processing run 3.
|
|
const char * | WriteXMLFile4 () |
| Writes the parameter file for normal processing run 4.
|
|
const char * | WriteXMLFile5 () |
| Writes the parameter file for normal processing run 5.
|
|
const char * | WriteXMLFile6 () |
| Writes the parameter file for normal processing run 6.
|
|
const char * | WriteXMLFile7 () |
| Writes the parameter file for normal processing run 7.
|
|
const char * | WriteXMLErrorFile1 () |
| Writes a file where minimum neighbor DBH is negative.
|
|
const char * | WriteXMLErrorFile2 () |
| Writes a file where masting threshod is negative.
|
|
const char * | WriteXMLErrorFile3 () |
| Writes a file where neighborhood radius is negative.
|
|
const char * | WriteXMLErrorFile4 () |
| Writes a file where there are no disperse behaviors.
|
|
const char * | WriteXMLErrorFile5 () |
| Writes a file where the neighborhood seed predation behavior is the linked version but there is no functional response seed predation.
|
|
void | WriteTreesAllometry (std::fstream &oOut) |
| Writes common portions of the parameter file - trees and allometry.
|
|
void | WriteCommonPredationParameters (std::fstream &oOut) |
| Writes common seed predation parameters.
|
|
This class tests the clNeighborhoodSeedPredation class.
void clTestNeighborhoodSeedPredation::TestErrorProcessing |
( |
clSimManager * |
p_oSimManager | ) |
|
|
private |
Tests error processing.
This uses the error parameter files to make sure errors are correctly caught.
- Parameters
-
p_oSimManager | Sim manager object. |
void clTestNeighborhoodSeedPredation::TestNeighborhoodSeedPredation |
( |
| ) |
|
Compiles all tests into one function.
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.
- Parameters
-
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.
- Parameters
-
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.
- Parameters
-
p_oSimManager | Sim manager object. |
void clTestNeighborhoodSeedPredation::TestNormalProcessingRun4 |
( |
clSimManager * |
p_oSimManager | ) |
|
|
private |
Fourth normal processing run.
WriteXMLFile4() does setup. Linked seed predation is applied to species 1, 2, and 4, and unlinked to species 5. This run tests linked vs. standalone predation. After a run occurs, the number of new seedlings is verified.
- Parameters
-
p_oSimManager | Sim manager object. |
void clTestNeighborhoodSeedPredation::TestNormalProcessingRun5 |
( |
clSimManager * |
p_oSimManager | ) |
|
|
private |
Fifth normal processing run.
WriteXMLFile5() does setup. Clone of run 1, except the method of determining masting is asking the disperse behaviors.
- Parameters
-
p_oSimManager | Sim manager object. |
void clTestNeighborhoodSeedPredation::TestNormalProcessingRun6 |
( |
clSimManager * |
p_oSimManager | ) |
|
|
private |
Sixth normal processing run.
WriteXMLFile6 () does setup. Clone of run 2, except the method of determining masting is asking the disperse behaviors.
- Parameters
-
p_oSimManager | Sim manager object. |
void clTestNeighborhoodSeedPredation::TestNormalProcessingRun7 |
( |
clSimManager * |
p_oSimManager | ) |
|
|
private |
Seventh normal processing run.
WriteXMLFile7() does setup. Clone of run 2, except the method of determining masting is asking the disperse behaviors.
- Parameters
-
p_oSimManager | Sim manager object. |
void clTestNeighborhoodSeedPredation::TestRun1And5 |
( |
clSimManager * |
p_oSimManager | ) |
|
|
private |
Does the testing for runs one and five.
- Parameters
-
p_oSimManager | Sim manager object. |
void clTestNeighborhoodSeedPredation::TestRun2And6 |
( |
clSimManager * |
p_oSimManager | ) |
|
|
private |
Does the testing for runs two and six.
- Parameters
-
p_oSimManager | Sim manager object. |
void clTestNeighborhoodSeedPredation::WriteCommonPredationParameters |
( |
std::fstream & |
oOut | ) |
|
|
private |
Writes common seed predation parameters.
- Parameters
-
oOut | File stream to write to. |
void clTestNeighborhoodSeedPredation::WriteTreesAllometry |
( |
std::fstream & |
oOut | ) |
|
|
private |
Writes common portions of the parameter file - trees and allometry.
- Parameters
-
oOut | Filestream to write to. |
const char* clTestNeighborhoodSeedPredation::WriteXMLErrorFile1 |
( |
| ) |
|
|
private |
Writes a file where minimum neighbor DBH is negative.
- Returns
- Filename written.
const char* clTestNeighborhoodSeedPredation::WriteXMLErrorFile2 |
( |
| ) |
|
|
private |
Writes a file where masting threshod is negative.
- Returns
- Filename written.
const char* clTestNeighborhoodSeedPredation::WriteXMLErrorFile3 |
( |
| ) |
|
|
private |
Writes a file where neighborhood radius is negative.
- Returns
- Filename written.
const char* clTestNeighborhoodSeedPredation::WriteXMLErrorFile4 |
( |
| ) |
|
|
private |
Writes a file where there are no disperse behaviors.
- Returns
- Filename written.
const char* clTestNeighborhoodSeedPredation::WriteXMLErrorFile5 |
( |
| ) |
|
|
private |
Writes a file where the neighborhood seed predation behavior is the linked version but there is no functional response seed predation.
- Returns
- Filename written.
const char* clTestNeighborhoodSeedPredation::WriteXMLFile1 |
( |
| ) |
|
|
private |
Writes the parameter file for normal processing run 1.
- Returns
- Filename written.
const char* clTestNeighborhoodSeedPredation::WriteXMLFile2 |
( |
| ) |
|
|
private |
Writes the parameter file for normal processing run 2.
- Returns
- Filename written.
const char* clTestNeighborhoodSeedPredation::WriteXMLFile3 |
( |
| ) |
|
|
private |
Writes the parameter file for normal processing run 3.
- Returns
- Filename written.
const char* clTestNeighborhoodSeedPredation::WriteXMLFile4 |
( |
| ) |
|
|
private |
Writes the parameter file for normal processing run 4.
- Returns
- Filename written.
const char* clTestNeighborhoodSeedPredation::WriteXMLFile5 |
( |
| ) |
|
|
private |
Writes the parameter file for normal processing run 5.
- Returns
- Filename written.
const char* clTestNeighborhoodSeedPredation::WriteXMLFile6 |
( |
| ) |
|
|
private |
Writes the parameter file for normal processing run 6.
- Returns
- Filename written.
const char* clTestNeighborhoodSeedPredation::WriteXMLFile7 |
( |
| ) |
|
|
private |
Writes the parameter file for normal processing run 7.
- Returns
- Filename written.
The documentation for this class was generated from the following file: