SORTIE C++ Test Documentation
Public Member Functions | Protected Member Functions | List of all members
clTestTree Class Reference

Tests the clTree class. More...

#include <TestTree.h>

Inheritance diagram for clTestTree:

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.
 
const char * WriteXMLFile1 ()
 Writes a parameter file to test trees.
 
const char * WriteXMLFile2 ()
 Writes a parameter file to test trees.
 

Detailed Description

Tests the clTree class.

Member Function Documentation

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.

Parameters
p_oSimManager
void clTestTree::TestTree ( )

Groups together all the tree testing functions into a comprehensive test.

const 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.

Returns
Filename written.
const char* clTestTree::WriteXMLFile2 ( )
protected

Writes a parameter file to test trees.

This provides lots of tree data members.

Returns
Filename written.

The documentation for this class was generated from the following file: