#include <TestTree.h>
Public Member Functions | |
void | TestTree () |
Groups together all the tree testing functions into a comprehensive test. | |
Protected Member Functions | |
void | TestAllometryUpdating (clSimManager *p_oSimManager) |
Verifies that allometry is updated correctly. | |
void | TestClone (clSimManager *p_oSimManager) |
Tests the cloning function. | |
char * | WriteXMLFile1 () |
Writes a parameter file to test trees. | |
char * | WriteXMLFile2 () |
Writes a parameter file to test trees. |
void clTestTree::TestTree | ( | ) |
Groups together all the tree testing functions into a comprehensive test.
void clTestTree::TestAllometryUpdating | ( | clSimManager * | p_oSimManager | ) | [protected] |
Verifies that allometry is updated correctly.
(This is really more of a test of a clTreePopulation function, but that test unit is getting awfully crowded.) WriteXMLFile1() is used to create a run. A seedling, a sapling, and an adult are created, and then height and diameter are changed both with the allometry to be updated and without. This also tests transitions between the life history stages.
void clTestTree::TestClone | ( | clSimManager * | p_oSimManager | ) | [protected] |
Tests the cloning function.
p_oSimManager |
char* clTestTree::WriteXMLFile1 | ( | ) | [protected] |
Writes a parameter file to test trees.
Two species are used; the only difference between the two is the maximum seedling height.
char* clTestTree::WriteXMLFile2 | ( | ) | [protected] |
Writes a parameter file to test trees.
This provides lots of tree data members.