#include <TestMerchantableStemWoodVolume.h>
Public Member Functions | |
void | TestMerchantableStemWoodVolume () |
Performs all the tests from one function. | |
Protected Member Functions | |
void | TestErrorProcessing (clSimManager *p_oSimManager) |
Tests error processing. | |
void | TestNormalProcessing (clSimManager *p_oSimManager) |
Performs test run 1. | |
char * | WriteXMLFile1 () |
Writes the parameter file for run 1. | |
char * | WriteXMLErrorFile1 () |
Writes an error file where Dimension analysis is not applied to all trees that use merchantable stem wood volume. | |
char * | WriteXMLErrorFile2 () |
Writes an error file where merchantable stem wood volume is applied to a tree type other than adult. |
void clTestMerchantableStemWoodVolume::TestMerchantableStemWoodVolume | ( | ) |
Performs all the tests from one function.
void clTestMerchantableStemWoodVolume::TestErrorProcessing | ( | clSimManager * | p_oSimManager | ) | [protected] |
Tests error processing.
This uses WriteXMLErrorFileX() to introduce errors and makes sure that they are caught.
p_oSimManager | Sim Manager object to call for runs. |
void clTestMerchantableStemWoodVolume::TestNormalProcessing | ( | clSimManager * | p_oSimManager | ) | [protected] |
Performs test run 1.
Uses the trees and equations from clTestDimensionAnalysis::TestRun1. WriteXMLFile1() does setup. This function creates three trees for each species, of varying sizes. The run goes for a timestep and then the function checks the volume values.
p_oSimManager | Sim Manager object to call for runs. |
char* clTestMerchantableStemWoodVolume::WriteXMLFile1 | ( | ) | [protected] |
Writes the parameter file for run 1.
There are 19 species (Species 13 is not used). Dimension analysis and merchantable stem wood volume are the only behaviors and are applied to adults of all used species.
char* clTestMerchantableStemWoodVolume::WriteXMLErrorFile1 | ( | ) | [protected] |
Writes an error file where Dimension analysis is not applied to all trees that use merchantable stem wood volume.
char* clTestMerchantableStemWoodVolume::WriteXMLErrorFile2 | ( | ) | [protected] |
Writes an error file where merchantable stem wood volume is applied to a tree type other than adult.