clTestAllometricGrowthIncrementer Class Reference

Tests the clAllometricGrowthIncrementer class. More...

#include <TestAllometricGrowthIncrementer.h>

List of all members.

Public Member Functions

void TestAllometricGrowthIncrementer ()
 Rolls the test up into one function.

Protected Member Functions

void TestNormalProcessingRun1 (clSimManager *p_oSimManager)
 Tests the clGrowthHeightIncrementer class when doing height incrementing.
void TestNormalProcessingRun2 (clSimManager *p_oSimManager)
 Tests the clGrowthHeightIncrementer class when doing diameter incrementing.
char * WriteXMLFile1 ()
 Writes a parameter file to direct testing.
char * WriteXMLFile2 ()
 Writes a parameter file for normal processing run 2.


Detailed Description

Tests the clAllometricGrowthIncrementer class.

I'm also allowing this to form part of the test of clConstBAGrowth and clConstantRadialGrowth. Ironically, since I wrote this, this is also now partly a test of clGrowthOrg, and TestGrowthOrg is partly a test of clGrowthHeightIncrementer, because I switched some functionality between classes. But I am much too lazy to switch the test code too. After all, it's all there, right?


Member Function Documentation

void clTestAllometricGrowthIncrementer::TestAllometricGrowthIncrementer (  ) 

Rolls the test up into one function.

void clTestAllometricGrowthIncrementer::TestNormalProcessingRun1 ( clSimManager *  p_oSimManager  )  [protected]

Tests the clGrowthHeightIncrementer class when doing height incrementing.

WriteXMLFile1() is used to do setup. This creates four trees; two of the trees should have heights incremented to below the maximum tree canopy height, and two must be limited to the maximum tree canopy height. A timestep is run and the DBH and height are checked.

Parameters:
p_oSimManager Sim manager object for doing the run.

void clTestAllometricGrowthIncrementer::TestNormalProcessingRun2 ( clSimManager *  p_oSimManager  )  [protected]

Tests the clGrowthHeightIncrementer class when doing diameter incrementing.

WriteXMLFile2() is used to do setup. Six trees are created representing all live life history stages. A timestep is run and the DBHs and heights are checked.

Parameters:
p_oSimManager Sim manager object for doing the run.

char* clTestAllometricGrowthIncrementer::WriteXMLFile1 (  )  [protected]

Writes a parameter file to direct testing.

This contains two species, with either constant basal area or constant radial growth assigned.

Returns:
Filename written.

char* clTestAllometricGrowthIncrementer::WriteXMLFile2 (  )  [protected]

Writes a parameter file for normal processing run 2.

Returns:
Filename written.


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

Generated on Tue Apr 19 14:05:57 2011 for SORTIE C++ Test Documentation by  doxygen 1.5.6