clTestMerchantableStemWoodVolume Class Reference

Tests the class clMerchantableStemWoodVolume. More...

#include <TestMerchantableStemWoodVolume.h>

List of all members.

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.


Detailed Description

Tests the class clMerchantableStemWoodVolume.

Member Function Documentation

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.

Parameters:
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.

Parameters:
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.

Returns:
Filename written.

char* clTestMerchantableStemWoodVolume::WriteXMLErrorFile1 (  )  [protected]

Writes an error file where Dimension analysis is not applied to all trees that use merchantable stem wood volume.

Returns:
Filename written.

char* clTestMerchantableStemWoodVolume::WriteXMLErrorFile2 (  )  [protected]

Writes an error file where merchantable stem wood volume is applied to a tree type other than adult.

Returns:
Filename written.


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

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