SORTIE C++ Test Documentation
Public Member Functions | Protected Member Functions | List of all members
clTestCrownRadiusReporter Class Reference

Tests the class clCrownRadiusReporter. More...

#include <TestCrownRadiusReporter.h>

Inheritance diagram for clTestCrownRadiusReporter:

Public Member Functions

void TestCrownRadiusReporter ()
 Performs all the tests from one function.
 

Protected Member Functions

void TestNormalProcessingRun1 (clSimManager *p_oSimManager)
 Tests normal processing, run 1.
 
void TestErrorProcessing (clSimManager *p_oSimManager)
 Tests error processing.
 
const char * WriteXMLFile1 ()
 Writes the parameter file for normal processing.
 
const char * WriteXMLErrorFile1 ()
 Writes an error file where the behavior is applied to seedlings.
 

Detailed Description

Tests the class clCrownRadiusReporter.

Member Function Documentation

void clTestCrownRadiusReporter::TestCrownRadiusReporter ( )

Performs all the tests from one function.

void clTestCrownRadiusReporter::TestErrorProcessing ( clSimManager *  p_oSimManager)
protected

Tests error processing.

This uses WriteXMLErrorFile1() to introduce errors and makes sure that they are caught.

void clTestCrownRadiusReporter::TestNormalProcessingRun1 ( clSimManager *  p_oSimManager)
protected

Tests normal processing, run 1.

WriteXMLFile1() does setup. Several trees are created and their radii checked to make sure it's correct after each of two timesteps.

Parameters
p_oSimManagerSim Manager object to call for runs.
const char* clTestCrownRadiusReporter::WriteXMLErrorFile1 ( )
protected

Writes an error file where the behavior is applied to seedlings.

const char* clTestCrownRadiusReporter::WriteXMLFile1 ( )
protected

Writes the parameter file for normal processing.

There are 3 species; timestep length is 1 year; there are two behaviors, growth and the crown radius reporter behavior.

Returns
Filename written.

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