#include <TestTreePopulation2.h>
Public Member Functions | |
void | TestTreePopulation () |
Combines all the tests for testing the tree population. | |
Protected Member Functions | |
void | TestTreeMapReading (clSimManager *p_oSimManager) |
Makes sure that tree maps are read correctly. | |
void | TestTextTreeMapReading (clSimManager *p_oSimManager) |
This is a clone of TestTreeMapReading except it uses a text tree map. | |
void | TestInitialDensities (clSimManager *p_oSimManager) |
Makes sure that initial densities are set up correctly. | |
void | TreeMapBugFixTesting (clSimManager *p_oSimManager) |
This checks hash table organization bugs I've run into to make sure they're fixed. | |
void | TestErrorProcessing (clSimManager *p_oSimManager) |
Tests error processing. | |
char * | WriteXMLFile1 () |
Writes a parameter file for testing. | |
char * | WriteXMLFile2 () |
Writes a parameter file for testing. | |
char * | WriteXMLFile3 () |
Writes a parameter file for testing. | |
char * | WriteXMLFile4 () |
Writes a parameter file for testing. | |
char * | WriteXMLFile5 () |
Writes a parameter file for testing. | |
char * | WriteXMLFile6 () |
Writes a parameter file for testing. | |
char * | WriteXMLFile7 () |
Writes a parameter file for testing. | |
char * | WriteXMLFile8 () |
Writes a parameter file for testing. | |
char * | WriteXMLFile9 () |
Writes a parameter file for testing. | |
char * | WriteXMLFile10 () |
Writes a parameter file for testing. | |
char * | WriteXMLErrorFile1 () |
Writes a parameter file for error testing. | |
char * | WriteXMLErrorFile2 () |
Writes a parameter file for error testing. | |
char * | WriteXMLErrorFile3 () |
Writes a parameter file for error testing. | |
char * | WriteXMLErrorFile4 () |
Writes a parameter file for error testing. | |
char * | WriteXMLErrorFile5 () |
Writes a parameter file for error testing. | |
char * | WriteXMLErrorFile6 () |
Writes a parameter file for error testing. | |
char * | WriteXMLErrorFile7 () |
Writes a parameter file for error testing. | |
char * | WriteXMLErrorFile8 () |
Writes a parameter file for error testing. | |
char * | WriteTextTreeMap () |
Writes a tab-delimited text tree map. | |
void | WriteCommonPlotStuff (std::fstream &oOut) |
Writes a common portion of the test parameter files. | |
void | WriteCommonFileStuff (std::fstream &oOut) |
Writes a common portion of the test parameter files. |
This is because TestTreePopulation got too big.
void clTestTreePopulation2::TestTreePopulation | ( | ) |
Combines all the tests for testing the tree population.
void clTestTreePopulation2::TestTreeMapReading | ( | clSimManager * | p_oSimManager | ) | [protected] |
Makes sure that tree maps are read correctly.
This includes trees of every tree type, with each type defined by either diameter or height. WriteXMLFile1() writes the tree map parameter file.
void clTestTreePopulation2::TestTextTreeMapReading | ( | clSimManager * | p_oSimManager | ) | [protected] |
This is a clone of TestTreeMapReading except it uses a text tree map.
void clTestTreePopulation2::TestInitialDensities | ( | clSimManager * | p_oSimManager | ) | [protected] |
Makes sure that initial densities are set up correctly.
There are 7 runs. They are as follows:
void clTestTreePopulation2::TreeMapBugFixTesting | ( | clSimManager * | p_oSimManager | ) | [protected] |
This checks hash table organization bugs I've run into to make sure they're fixed.
WriteXMLFile9() does setup with a particular tree map.
void clTestTreePopulation2::TestErrorProcessing | ( | clSimManager * | p_oSimManager | ) | [protected] |
Tests error processing.
Bad parameter files are fed in to see if the errors are caught.
char* clTestTreePopulation2::WriteXMLFile1 | ( | ) | [protected] |
Writes a parameter file for testing.
This contains a tree map to test tree map reading.
char* clTestTreePopulation2::WriteXMLFile2 | ( | ) | [protected] |
Writes a parameter file for testing.
This contains no initial densities.
char* clTestTreePopulation2::WriteXMLFile3 | ( | ) | [protected] |
Writes a parameter file for testing.
This contains no seedlings in any form.
char* clTestTreePopulation2::WriteXMLFile4 | ( | ) | [protected] |
Writes a parameter file for testing.
This contains all possible ways of specifying seedlings.
char* clTestTreePopulation2::WriteXMLFile5 | ( | ) | [protected] |
Writes a parameter file for testing.
This contains only seedlings in the first height class.
char* clTestTreePopulation2::WriteXMLFile6 | ( | ) | [protected] |
Writes a parameter file for testing.
This contains only seedlings in the second height class.
char* clTestTreePopulation2::WriteXMLFile7 | ( | ) | [protected] |
Writes a parameter file for testing.
This contains only seedlings in the third height class.
char* clTestTreePopulation2::WriteXMLFile8 | ( | ) | [protected] |
Writes a parameter file for testing.
This contains only seedlings in the DBH class.
char* clTestTreePopulation2::WriteXMLFile9 | ( | ) | [protected] |
Writes a parameter file for testing.
This contains a tree map to test tree map reading to verify bug fixes.
char* clTestTreePopulation2::WriteXMLFile10 | ( | ) | [protected] |
Writes a parameter file for testing.
This contains a filename for a text- based tree map.
char* clTestTreePopulation2::WriteXMLErrorFile1 | ( | ) | [protected] |
Writes a parameter file for error testing.
This contains an initial density value that is negative.
char* clTestTreePopulation2::WriteXMLErrorFile2 | ( | ) | [protected] |
Writes a parameter file for error testing.
This contains an initial density value that cannot be converted into a number.
char* clTestTreePopulation2::WriteXMLErrorFile3 | ( | ) | [protected] |
Writes a parameter file for error testing.
This contains initial densities with no size classes.
char* clTestTreePopulation2::WriteXMLErrorFile4 | ( | ) | [protected] |
Writes a parameter file for error testing.
This contains an initial density value for an unrecognized species.
char* clTestTreePopulation2::WriteXMLErrorFile5 | ( | ) | [protected] |
Writes a parameter file for error testing.
This contains an initial density value with an unrecognized size class.
char* clTestTreePopulation2::WriteXMLErrorFile6 | ( | ) | [protected] |
Writes a parameter file for error testing.
This contains an initial density class that cannot be converted into a number.
char* clTestTreePopulation2::WriteXMLErrorFile7 | ( | ) | [protected] |
Writes a parameter file for error testing.
This contains a seedling height class taller than 135.
char* clTestTreePopulation2::WriteXMLErrorFile8 | ( | ) | [protected] |
Writes a parameter file for error testing.
An upper bound for the first seedling height class is above the value for the upper bound of the second seedling height class for that species.
char* clTestTreePopulation2::WriteTextTreeMap | ( | ) | [protected] |
Writes a tab-delimited text tree map.
void clTestTreePopulation2::WriteCommonPlotStuff | ( | std::fstream & | oOut | ) | [protected] |
Writes a common portion of the test parameter files.
This writes from the beginning of the file to "</plot>".
oOut | File stream to write to. |
void clTestTreePopulation2::WriteCommonFileStuff | ( | std::fstream & | oOut | ) | [protected] |
Writes a common portion of the test parameter files.
This writes all tree parameters and the rest of the plot.
oOut | File stream to write to. |