#include <TestWeibullClimateGrowth.h>
Public Member Functions | |
void | TestWeibullClimateGrowth () |
Tests the clWeibullClimateGrowth class. | |
void | TestRun1 (clSimManager *p_oSimManager) |
Performs a test run of growth. | |
void | TestRun2 (clSimManager *p_oSimManager) |
Performs a test run of growth. | |
void | TestErrorProcessing (clSimManager *p_oSimManager) |
Tests error processing for input files. | |
Protected Member Functions | |
char * | WriteXMLFile1 () |
Writes a 1-year timestep file. | |
char * | WriteXMLFile2 () |
Writes a 3-year timestep file. | |
char * | WriteXMLErrorFile1 () |
Writes an error condition where max radius of neighbor effects is < 0. | |
char * | WriteXMLErrorFile2 () |
Writes an error condition where max growth for a species is < 0. | |
char * | WriteXMLErrorFile3 () |
Writes an error condition where Xb for a species = 0. | |
char * | WriteXMLErrorFile4 () |
Writes an error condition where X0 for a species = 0. | |
char * | WriteXMLErrorFile5 () |
Writes an error condition where an adult precipitation A = 0. | |
char * | WriteXMLErrorFile6 () |
Writes an error condition where a juvenile precipitation A = 0. | |
char * | WriteXMLErrorFile7 () |
Writes an error condition where an adult temperature A = 0. | |
char * | WriteXMLErrorFile8 () |
Writes an error condition where a juvenile temperature A = 0. | |
void | WriteCommonStuff (std::fstream &oOut) |
Writes an error condition where Y0 for a species is not between 0 and 1. | |
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). |
void clTestWeibullClimateGrowth::TestWeibullClimateGrowth | ( | ) |
Tests the clWeibullClimateGrowth class.
void clTestWeibullClimateGrowth::TestRun1 | ( | clSimManager * | p_oSimManager | ) |
Performs a test run of growth.
WriteXMLFile1() performs setup for a 1-year timestep. There are 9 target trees whose values will be tested according to the testing spreadsheet prepared.
p_oSimManager | Sim Manager object to do the runs. |
void clTestWeibullClimateGrowth::TestRun2 | ( | clSimManager * | p_oSimManager | ) |
Performs a test run of growth.
WriteXMLFile2() performs setup for a 3-year timestep. There are 9 target trees whose values will be tested according to the testing spreadsheet prepared.
p_oSimManager | Sim Manager object to do the runs. |
void clTestWeibullClimateGrowth::TestErrorProcessing | ( | clSimManager * | p_oSimManager | ) |
Tests error processing for input files.
WriteXMLErrorFileX (where X = 1-9) is written and checked to make sure that each produces an error.
char* clTestWeibullClimateGrowth::WriteXMLFile1 | ( | ) | [protected] |
Writes a 1-year timestep file.
This contains 4 species. Weibull climate growth (auto-height) is assigned to saplings and adults of Species 2, 3, and 4.
char* clTestWeibullClimateGrowth::WriteXMLFile2 | ( | ) | [protected] |
Writes a 3-year timestep file.
This contains 4 species. Weibull climate growth (auto-height) is assigned to saplings and adults of Species 2, 3, and 4.
char* clTestWeibullClimateGrowth::WriteXMLErrorFile1 | ( | ) | [protected] |
Writes an error condition where max radius of neighbor effects is < 0.
char* clTestWeibullClimateGrowth::WriteXMLErrorFile2 | ( | ) | [protected] |
Writes an error condition where max growth for a species is < 0.
char* clTestWeibullClimateGrowth::WriteXMLErrorFile3 | ( | ) | [protected] |
Writes an error condition where Xb for a species = 0.
char* clTestWeibullClimateGrowth::WriteXMLErrorFile4 | ( | ) | [protected] |
Writes an error condition where X0 for a species = 0.
char* clTestWeibullClimateGrowth::WriteXMLErrorFile5 | ( | ) | [protected] |
Writes an error condition where an adult precipitation A = 0.
char* clTestWeibullClimateGrowth::WriteXMLErrorFile6 | ( | ) | [protected] |
Writes an error condition where a juvenile precipitation A = 0.
char* clTestWeibullClimateGrowth::WriteXMLErrorFile7 | ( | ) | [protected] |
Writes an error condition where an adult temperature A = 0.
char* clTestWeibullClimateGrowth::WriteXMLErrorFile8 | ( | ) | [protected] |
Writes an error condition where a juvenile temperature A = 0.
void clTestWeibullClimateGrowth::WriteCommonStuff | ( | std::fstream & | oOut | ) | [protected] |
Writes an error condition where Y0 for a species is not between 0 and 1.
oOut | File stream to write to. |
void clTestWeibullClimateGrowth::WriteTreeStuff | ( | std::fstream & | oOut | ) | [protected] |
Writes common portions of the test parameter files (tree pop, plot, etc).
oOut | File stream to write to. |
void clTestWeibullClimateGrowth::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.
oOut | File stream to write to. |