#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 | 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 * | 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. | |
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.
|
Tests error processing. Bad parameter files are fed in to see if the errors are caught. |
|
Makes sure that initial densities are set up correctly. There are 7 runs. They are as follows:
|
|
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. |
|
This checks hash table organization bugs I've run into to make sure they're fixed. WriteXMLFile9() does setup with a particular tree map. |
|
Writes a common portion of the test parameter files. This writes all tree parameters and the rest of the plot.
|
|
Writes a common portion of the test parameter files. This writes from the beginning of the file to "</plot>".
|
|
Writes a parameter file for error testing. This contains an initial density value that is negative.
|
|
Writes a parameter file for error testing. This contains an initial density value that cannot be converted into a number.
|
|
Writes a parameter file for error testing. This contains initial densities with no size classes.
|
|
Writes a parameter file for error testing. This contains an initial density value for an unrecognized species.
|
|
Writes a parameter file for error testing. This contains an initial density value with an unrecognized size class.
|
|
Writes a parameter file for error testing. This contains an initial density class that cannot be converted into a number.
|
|
Writes a parameter file for error testing. This contains a seedling height class taller than 135.
|
|
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.
|
|
Writes a parameter file for testing. This contains a tree map to test tree map reading.
|
|
Writes a parameter file for testing. This contains no initial densities.
|
|
Writes a parameter file for testing. This contains no seedlings in any form.
|
|
Writes a parameter file for testing. This contains all possible ways of specifying seedlings.
|
|
Writes a parameter file for testing. This contains only seedlings in the first height class.
|
|
Writes a parameter file for testing. This contains only seedlings in the second height class.
|
|
Writes a parameter file for testing. This contains only seedlings in the third height class.
|
|
Writes a parameter file for testing. This contains only seedlings in the DBH class.
|
|
Writes a parameter file for testing. This contains a tree map to test tree map reading to verify bug fixes.
|