#include <TestAllometricGrowthIncrementer.h>
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. |
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?
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.
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.
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.
char* clTestAllometricGrowthIncrementer::WriteXMLFile2 | ( | ) | [protected] |
Writes a parameter file for normal processing run 2.