#include <TestPowerHeightGrowth.h>
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. |
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.
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.
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.
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.
void clTestPowerHeightGrowth::WriteCommonStuff | ( | std::fstream & | oOut | ) | [protected] |
Writes common portions of the test parameter files.
oOut | File stream to write to. |