clTestAbsoluteGrowth Class Reference

Tests the clAbsoluteGrowth class. More...

#include <TestAbsoluteGrowth.h>

List of all members.

Public Member Functions

void TestAbsoluteGrowth ()
 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.
char * WriteXMLFile1 ()
 Writes a parameter file to direct testing.
char * WriteXMLFile2 ()
 Writes a parameter file to direct testing.


Detailed Description

Tests the clAbsoluteGrowth class.

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

I have not yet put in testing of suppression/release.


Member Function Documentation

void clTestAbsoluteGrowth::TestAbsoluteGrowth (  ) 

Combines the testing into one behavior.

void clTestAbsoluteGrowth::Test1YearPerTimestep ( 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 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 lgm values are checked to make sure they are correct.

Parameters:
p_oSimManager Sim manager object for doing the run.

void clTestAbsoluteGrowth::Test3YearsPerTimestep ( clSimManager *  p_oSimManager  )  [protected]

Tests the growth when the timestep length is three years.

WriteXMLFile1() 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 lgm values are checked to make sure they are correct.

Parameters:
p_oSimManager Sim manager object for doing the run.

char* clTestAbsoluteGrowth::WriteXMLFile1 (  )  [protected]

Writes a parameter file to direct testing.

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

  • Unlimited absolute growth is applied to Species 1 saplings.
  • Absolute growth limited to constant radial increment is applied to Species 1 adults.
  • Absolute growth limited to basal area increment is applied to Species 2 adults.
  • Unlimited absolute growth - diameter only is applied to Species 2 saplings.
  • Absolute growth limited to constant radial increment - diameter only is applied to Species 3 saplings.
  • Absolute growth limited to basal area increment - diameter only is applied to Species 3 adults. Height incrementer applied to all with diameter only behaviors.

Returns:
Filename written.

char* clTestAbsoluteGrowth::WriteXMLFile2 (  )  [protected]

Writes a parameter file to direct testing.

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

  • Unlimited absolute growth is applied to Species 1 saplings.
  • Absolute growth limited to constant radial increment is applied to Species 1 adults.
  • Absolute growth limited to basal area increment is applied to Species 2 adults.
  • Unlimited absolute growth - diameter only is applied to Species 2 saplings.
  • Absolute growth limited to constant radial increment - diameter only is applied to Species 3 saplings.
  • Absolute growth limited to basal area increment - diameter only is applied to Species 3 adults. Height incrementer applied to all with diameter only behaviors.

Returns:
Filename written.


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

Generated on Wed Oct 28 14:03:20 2009 for SORTIE C++ Test Documentation by  doxygen 1.5.6