clTestRelativeGrowth Class Reference

Tests the clRelativeGrowth class. More...

#include <TestRelativeGrowth.h>

List of all members.

Public Member Functions

void TestRelativeGrowth ()
 Combines the testing into one function.

Protected Member Functions

void Test1Run1YearPerTimestep (clSimManager *p_oSimManager)
 Tests the growth when the timestep length is one year.
void Test1Run3YearsPerTimestep (clSimManager *p_oSimManager)
 Tests the growth when the timestep length is three years.
void Test2Run1YearPerTimestep (clSimManager *p_oSimManager)
 Tests the growth when the timestep length is one year.
void Test2Run3YearsPerTimestep (clSimManager *p_oSimManager)
 Tests the growth when the timestep length is three years.
void Test3Run1YearPerTimestep (clSimManager *p_oSimManager)
 Tests height growth when the timestep length is one year.
void Test3Run3YearsPerTimestep (clSimManager *p_oSimManager)
 Tests height growth when the timestep length is three years.
char * WriteXMLFile1 ()
 Writes a parameter file to direct testing.
char * WriteXMLFile2 ()
 Writes a parameter file to direct testing.
char * WriteXMLFile3 ()
 Writes a parameter file to direct testing.
char * WriteXMLFile4 ()
 Writes a parameter file to direct testing.
char * WriteXMLFile5 ()
 Writes a parameter file to direct testing for run 3.
char * WriteXMLFile6 ()
 Writes a parameter file to direct testing for run 3.
void WriteRun3CommonStuff (std::fstream &oOut)
 Writes common portions of the run 3 test parameter files.


Detailed Description

Tests the clRelativeGrowth class.

This tests all six types of relative growth - non-limited relative growth, relative growth limited to constant radial increment, relative growth limited to constant basal area increment, non-limited relative growth - diameter update only, relative growth limited to constant radial increment - diameter update only, and relative growth limited to constant basal area increment - diameter update only.


Member Function Documentation

void clTestRelativeGrowth::TestRelativeGrowth (  ) 

Combines the testing into one function.

void clTestRelativeGrowth::Test1Run1YearPerTimestep ( clSimManager *  p_oSimManager  )  [protected]

Tests the growth when the timestep length is one year.

WriteXMLFile1() is used to set up the run. 10 trees are created of four species, assigned to all six growth types and with growth levels both above and below limits. GLIs are assigned to them, and then 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 clTestRelativeGrowth::Test1Run3YearsPerTimestep ( clSimManager *  p_oSimManager  )  [protected]

Tests the growth when the timestep length is three years.

WriteXMLFile2() is used to set up the run. 10 trees are created of three species, assigned to all six growth types and with growth levels both above and below limits. GLIs are assigned to them, and then 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 clTestRelativeGrowth::Test2Run1YearPerTimestep ( clSimManager *  p_oSimManager  )  [protected]

Tests the growth when the timestep length is one year.

WriteXMLFile3() is used to set up the run. 10 trees are created of four species, assigned to all six growth types and with growth levels both above and below limits. There are non-1 diameter exponents. GLIs are assigned to them, and then 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 clTestRelativeGrowth::Test2Run3YearsPerTimestep ( clSimManager *  p_oSimManager  )  [protected]

Tests the growth when the timestep length is three years.

WriteXMLFile4() is used to set up the run. 10 trees are created of three species, assigned to all six growth types and with growth levels both above and below limits. There are non-1 diameter exponents. GLIs are assigned to them, and then 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 clTestRelativeGrowth::Test3Run1YearPerTimestep ( clSimManager *  p_oSimManager  )  [protected]

Tests height growth when the timestep length is one year.

WriteXMLFile5() is used to set up the run. 10 trees are created of four species. GLIs are assigned to them, and then 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 clTestRelativeGrowth::Test3Run3YearsPerTimestep ( clSimManager *  p_oSimManager  )  [protected]

Tests height growth when the timestep length is three years.

WriteXMLFile6() is used to set up the run. 10 trees are created of four species. GLIs are assigned to them, and then 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* clTestRelativeGrowth::WriteXMLFile1 (  )  [protected]

Writes a parameter file to direct testing.

Timestep length is 1 year. This contains three species. Behaviors:

  • Non-limited relative growth is applied to Species 1 saplings.
  • Relative growth limited to constant radial increment is applied to Species 2 saplings.
  • Relative growth limited to basal area increment is applied to Species 1 adults.
  • Non-limited relative growth - diameter only is applied to Species 3 saplings.
  • Relative growth limited to constant radial increment - diameter only is applied to Species 4 saplings.
  • Relative growth limited to basal area increment - diameter only is applied to Species 3 adults.
  • Height incrementer applied to all with diameter only behaviors.
  • Diameter exponents are 1.

Returns:
Filename written.

char* clTestRelativeGrowth::WriteXMLFile2 (  )  [protected]

Writes a parameter file to direct testing.

Timestep length is 3 years. This contains three species. Behaviors:

  • Non-limited relative growth is applied to Species 1 saplings.
  • Relative growth limited to constant radial increment is applied to Species 2 saplings.
  • Relative growth limited to basal area increment is applied to Species 1 adults.
  • Non-limited relative growth - diameter only is applied to Species 3 saplings.
  • Relative growth limited to constant radial increment - diameter only is applied to Species 4 saplings.
  • Relative growth limited to basal area increment - diameter only is applied to Species 3 adults.
  • Height incrementer applied to all with diameter only behaviors.
  • Diameter exponents are 1.

Returns:
Filename written.

char* clTestRelativeGrowth::WriteXMLFile3 (  )  [protected]

Writes a parameter file to direct testing.

Timestep length is 1 year. This contains three species. Behaviors:

  • Non-limited relative growth is applied to Species 1 saplings.
  • Relative growth limited to constant radial increment is applied to Species 2 saplings.
  • Relative growth limited to basal area increment is applied to Species 1 adults.
  • Non-limited relative growth - diameter only is applied to Species 3 saplings.
  • Relative growth limited to constant radial increment - diameter only is applied to Species 4 saplings.
  • Relative growth limited to basal area increment - diameter only is applied to Species 3 adults.
  • Height incrementer applied to all with diameter only behaviors.
  • Diameter exponents are non-1.

Returns:
Filename written.

char* clTestRelativeGrowth::WriteXMLFile4 (  )  [protected]

Writes a parameter file to direct testing.

Timestep length is 3 years. This contains three species. Behaviors:

  • Non-limited relative growth is applied to Species 1 saplings.
  • Relative growth limited to constant radial increment is applied to Species 2 saplings.
  • Relative growth limited to basal area increment is applied to Species 1 adults.
  • Non-limited relative growth - diameter only is applied to Species 3 saplings.
  • Relative growth limited to constant radial increment - diameter only is applied to Species 4 saplings.
  • Relative growth limited to basal area increment - diameter only is applied to Species 3 adults.
  • Height incrementer applied to all with diameter only behaviors.
  • Diameter exponents are non-1.

Returns:
Filename written.

char* clTestRelativeGrowth::WriteXMLFile5 (  )  [protected]

Writes a parameter file to direct testing for run 3.

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

Returns:
Filename written.

char* clTestRelativeGrowth::WriteXMLFile6 (  )  [protected]

Writes a parameter file to direct testing for run 3.

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

Returns:
Filename written.

void clTestRelativeGrowth::WriteRun3CommonStuff ( std::fstream &  oOut  )  [protected]

Writes common portions of the run 3 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