clTestPowerHeightGrowth Class Reference

Tests the clPowerHeightGrowth class. More...

#include <TestPowerHeightGrowth.h>

List of all members.

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.
char * WriteXMLFile1 ()
 Writes a parameter file to direct testing for run 1.
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_oSimManager Sim 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_oSimManager Sim manager object for doing the run.

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.

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.

void clTestPowerHeightGrowth::WriteCommonStuff ( std::fstream &  oOut  )  [protected]

Writes common portions of the test parameter files.

Parameters:
oOut File stream to write to.


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

Generated on Tue Apr 19 14:06:02 2011 for SORTIE C++ Test Documentation by  doxygen 1.5.6