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

Tests the clShadedLinearGrowth class. More...

#include <TestShadedLinearGrowth.h>

Inheritance diagram for clTestShadedLinearGrowth:

Public Member Functions

void TestShadedLinearGrowth ()
 Combines the testing into one behavior.
 

Protected Member Functions

void Test1YearPerTimestep (clSimManager *p_oSimManager)
 Tests the growth when the timestep length is one year.
 
void Test3YearsPerTimestep (clSimManager *p_oSimManager)
 Tests the growth when the timestep length is three years.
 
const char * WriteXMLFile1 ()
 Writes a parameter file to direct testing.
 
const char * WriteXMLFile2 ()
 Writes a parameter file to direct testing.
 

Detailed Description

Tests the clShadedLinearGrowth class.

This tests it in all versions - as a diameter-only incrementer with no height updating, as a DiameterIncrementer with auto-height updating, and as a HeightIncrementer.

Member Function Documentation

void clTestShadedLinearGrowth::Test1YearPerTimestep ( clSimManager *  p_oSimManager)
protected

Tests the growth when the timestep length is one year.

WriteXMLFile1() is used to set up the run. 8 trees are created of 2 species, assigned to all three growth types and with high and low GLIs. GLIs are assigned to them, and then growth is run. Their diameters, heights, and lgm values are checked to make sure they are correct.

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

Tests the growth when the timestep length is three years.

WriteXMLFile1() is used to set up the run. 8 trees are created of 2 species, assigned to all three growth types and with high and low GLIs. GLIs are assigned to them, and then growth is run. Their diameters, heights, and lgm values are checked to make sure they are correct.

Parameters
p_oSimManagerSim manager object for doing the run.
void clTestShadedLinearGrowth::TestShadedLinearGrowth ( )

Combines the testing into one behavior.

const char* clTestShadedLinearGrowth::WriteXMLFile1 ( )
protected

Writes a parameter file to direct testing.

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

  • shaded linear growth diam only - applied to species 0 seedlings and species 1 seedlings
  • shaded linear growth height only - applied to species 0 saplings and species 1 seedlings
  • constant radial growth - applied to species 0 saplings
  • HeightIncrementer - applied to species 0 seedlings
  • shaded linear growth - applied to species 1 saplings
Returns
Filename written.
const char* clTestShadedLinearGrowth::WriteXMLFile2 ( )
protected

Writes a parameter file to direct testing.

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

  • shaded linear growth diam only - applied to species 0 seedlings and species 1 seedlings
  • shaded linear growth height only - applied to species 0 saplings and species 1 seedlings
  • constant radial growth - applied to species 0 saplings
  • HeightIncrementer - applied to species 0 seedlings
  • shaded linear growth - applied to species 1 saplings
Returns
Filename written.

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