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

Tests the clPowerHeightGrowth class. More...

#include <TestPowerHeightGrowth.h>

Inheritance diagram for clTestPowerHeightGrowth:

Public Member Functions

void TestPowerHeightGrowth ()
 Combines the testing into one function.
 

Protected Member Functions

void TestRun1YearPerTimestep (clSimManager *p_oSimManager)
 Tests height growth when the timestep length is one year.
 
void TestRun3YearsPerTimestep (clSimManager *p_oSimManager)
 Tests height growth when the timestep length is three years.
 
const char * WriteXMLFile1 ()
 Writes a parameter file to direct testing for run 1.
 
const char * WriteXMLFile2 ()
 Writes a parameter file to direct testing for run 1.
 
void WriteCommonStuff (std::fstream &oOut)
 Writes common portions of the test parameter files.
 

Detailed Description

Tests the clPowerHeightGrowth class.

Member Function Documentation

void clTestPowerHeightGrowth::TestPowerHeightGrowth ( )

Combines the testing into one function.

void clTestPowerHeightGrowth::TestRun1YearPerTimestep ( clSimManager *  p_oSimManager)
protected

Tests height growth when the timestep length is one year.

WriteXMLFile1() is used to set up the run. 10 trees are created of four species. Growth is run. Their diameters, heights, and "Growth" values are checked to make sure they are correct.

Parameters
p_oSimManagerSim manager object for doing the run.
void clTestPowerHeightGrowth::TestRun3YearsPerTimestep ( clSimManager *  p_oSimManager)
protected

Tests height growth when the timestep length is three years.

WriteXMLFile2() is used to set up the run. 10 trees are created of four species. Growth is run. Their diameters, heights, and "Growth" values are checked to make sure they are correct.

Parameters
p_oSimManagerSim manager object for doing the run.
void clTestPowerHeightGrowth::WriteCommonStuff ( std::fstream &  oOut)
protected

Writes common portions of the test parameter files.

Parameters
oOutFile stream to write to.
const char* clTestPowerHeightGrowth::WriteXMLFile1 ( )
protected

Writes a parameter file to direct testing for run 1.

Timestep length is 1 year. This contains four species. Power height growth is applied to 3 species. Diameter incrementer applied as well.

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

Writes a parameter file to direct testing for run 1.

Timestep length is 3 years. This contains four species. Relative height growth is applied to 3 species. Diameter incrementer applied as well.

Returns
Filename written.

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