Tests the clWeibullClimateSurvival class.
More...
#include <TestWeibullClimateSurvival.h>
|
void | TestWeibullClimateSurvival () |
| Tests the clWeibullClimateSurvival class.
|
|
void | TestRun1 (clSimManager *p_oSimManager) |
| Performs a test run of survival.
|
|
void | TestRun2 (clSimManager *p_oSimManager) |
| Performs a test run of survival.
|
|
void | TestErrorProcessing (clSimManager *p_oSimManager) |
| Tests error processing for input files.
|
|
|
void | CreateTrees (clTreePopulation *p_oPop) |
|
const char * | WriteXMLFile (int iYearsPerTimestep) |
| Writes a parameter file with the designated number of years per time step.
|
|
const char * | WriteXMLErrorFile1 () |
| Writes an error condition where max radius of neighbor effects is < 0.
|
|
const char * | WriteXMLErrorFile2 () |
| Writes an error condition where max survival for a species is < 0.
|
|
const char * | WriteXMLErrorFile3 () |
| Writes an error condition where Xb for a species = 0.
|
|
const char * | WriteXMLErrorFile4 () |
| Writes an error condition where X0 for a species = 0.
|
|
const char * | WriteXMLErrorFile5 () |
| Writes an error condition where a precipitation A = 0.
|
|
const char * | WriteXMLErrorFile6 () |
| Writes an error condition where a temperature A = 0.
|
|
void | WriteCommonStuff (std::fstream &oOut) |
| Writes common portions of the test parameter files (tree pop, plot, etc).
|
|
void | WriteTreeStuff (std::fstream &oOut) |
| Writes common portions of the test parameter files (tree pop, plot, etc).
|
|
void | WriteErrorFileCommonStuff (std::fstream &oOut) |
| Writes common portions of the test error parameter files (tree pop, plot, etc).
|
|
Tests the clWeibullClimateSurvival class.
void clTestWeibullClimateSurvival::CreateTrees |
( |
clTreePopulation * |
p_oPop | ) |
|
|
protected |
void clTestWeibullClimateSurvival::TestErrorProcessing |
( |
clSimManager * |
p_oSimManager | ) |
|
Tests error processing for input files.
WriteXMLErrorFileX (where X = 1-8) is written and checked to make sure that each produces an error.
void clTestWeibullClimateSurvival::TestRun1 |
( |
clSimManager * |
p_oSimManager | ) |
|
Performs a test run of survival.
WriteXMLFile1() performs setup for a 1-year timestep.
- Parameters
-
p_oSimManager | Sim Manager object to do the runs. |
void clTestWeibullClimateSurvival::TestRun2 |
( |
clSimManager * |
p_oSimManager | ) |
|
Performs a test run of survival.
WriteXMLFile2() performs setup for a 3-year timestep.
- Parameters
-
p_oSimManager | Sim Manager object to do the runs. |
void clTestWeibullClimateSurvival::TestWeibullClimateSurvival |
( |
| ) |
|
Tests the clWeibullClimateSurvival class.
void clTestWeibullClimateSurvival::WriteCommonStuff |
( |
std::fstream & |
oOut | ) |
|
|
protected |
Writes common portions of the test parameter files (tree pop, plot, etc).
Picks up right after the number of years per timestep and finishes out the file.
- Parameters
-
oOut | File stream to write to. |
void clTestWeibullClimateSurvival::WriteErrorFileCommonStuff |
( |
std::fstream & |
oOut | ) |
|
|
protected |
Writes common portions of the test error parameter files (tree pop, plot, etc).
Starts at the beginning of the file and ends at the closing tree tag.
- Parameters
-
oOut | File stream to write to. |
void clTestWeibullClimateSurvival::WriteTreeStuff |
( |
std::fstream & |
oOut | ) |
|
|
protected |
Writes common portions of the test parameter files (tree pop, plot, etc).
- Parameters
-
oOut | File stream to write to. |
const char* clTestWeibullClimateSurvival::WriteXMLErrorFile1 |
( |
| ) |
|
|
protected |
Writes an error condition where max radius of neighbor effects is < 0.
- Returns
- Filename written.
const char* clTestWeibullClimateSurvival::WriteXMLErrorFile2 |
( |
| ) |
|
|
protected |
Writes an error condition where max survival for a species is < 0.
- Returns
- Filename written.
const char* clTestWeibullClimateSurvival::WriteXMLErrorFile3 |
( |
| ) |
|
|
protected |
Writes an error condition where Xb for a species = 0.
- Returns
- Filename written.
const char* clTestWeibullClimateSurvival::WriteXMLErrorFile4 |
( |
| ) |
|
|
protected |
Writes an error condition where X0 for a species = 0.
- Returns
- Filename written.
const char* clTestWeibullClimateSurvival::WriteXMLErrorFile5 |
( |
| ) |
|
|
protected |
Writes an error condition where a precipitation A = 0.
- Returns
- Filename written.
const char* clTestWeibullClimateSurvival::WriteXMLErrorFile6 |
( |
| ) |
|
|
protected |
Writes an error condition where a temperature A = 0.
- Returns
- Filename written.
const char* clTestWeibullClimateSurvival::WriteXMLFile |
( |
int |
iYearsPerTimestep | ) |
|
|
protected |
Writes a parameter file with the designated number of years per time step.
- Parameters
-
iYearsPerTimestep | The desired number of years per time step. |
- Returns
- Filename written.
The documentation for this class was generated from the following file: