clTestDoubleMMRelGrowth Class Reference

Tests the clDoubleMMRelGrowth class. More...

#include <TestDoubleMMRelGrowth.h>

List of all members.

Public Member Functions

void TestDoubleMMRelGrowth ()
 Combines the testing into one function.

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 clDoubleMMRelGrowth class.

This tests both types of double- resource relative growth - diam with auto height and diam only


Member Function Documentation

void clTestDoubleMMRelGrowth::TestDoubleMMRelGrowth (  ) 

Combines the testing into one function.

void clTestDoubleMMRelGrowth::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 four species, assigned to both growth types. 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 clTestDoubleMMRelGrowth::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 four species, assigned to both growth types. 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* clTestDoubleMMRelGrowth::WriteXMLFile1 (  )  [protected]

Writes a parameter file to direct testing.

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

  • Diam with auto height growth is applied to Species 2 and 4 saplings and adults.
  • Diam only growth is applied to Species 1 and 3 saplings and adults.
  • Height incrementer applied to all with diameter only behaviors.

Returns:
Filename written.

char* clTestDoubleMMRelGrowth::WriteXMLFile2 (  )  [protected]

Writes a parameter file to direct testing.

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

  • Diam with auto height growth is applied to Species 2 and 4 saplings and adults.
  • Diam only growth is applied to Species 1 and 3 saplings and 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 Tue Apr 19 14:05:59 2011 for SORTIE C++ Test Documentation by  doxygen 1.5.6