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

Tests the clSailLight class (currently not completely). More...

#include <TestSailLight.h>

Inheritance diagram for clTestSailLight:

Public Member Functions

void TestSailLight ()
 Gathers all testing into one function.
 

Protected Member Functions

void Run1 (clSimManager *p_oSimManager)
 Tests light extinction coefficient management by taking a target tree and surrounding it with both live and snag neighbors to see if the amount of shade calculated by sail light comes out right.
 
void Run2 (clSimManager *p_oSimManager)
 Tests light extinction coefficient management by taking 2 target trees and surrounding them with neighbors to see if the amount of shade calculated by sail light comes out right.
 
const char * WriteXMLFile1 ()
 Writes a parameter file to direct testing.
 
const char * WriteXMLFile2 ()
 Writes a parameter file to direct testing.
 

Detailed Description

Tests the clSailLight class (currently not completely).

Member Function Documentation

void clTestSailLight::Run1 ( clSimManager *  p_oSimManager)
protected

Tests light extinction coefficient management by taking a target tree and surrounding it with both live and snag neighbors to see if the amount of shade calculated by sail light comes out right.

WriteXMLFile1() is used to set up the run. A single sapling of species 1 is created, along with four neighbors. Then sail light is run and the resulting shade is compared to expected.

This run uses top-of-crown fisheye.

void clTestSailLight::Run2 ( clSimManager *  p_oSimManager)
protected

Tests light extinction coefficient management by taking 2 target trees and surrounding them with neighbors to see if the amount of shade calculated by sail light comes out right.

WriteXMLFile2() is used to set up the run.

This run uses mid-crown fisheye (with a seedling to make sure it still gets top-of-crown), and differing crown radius equations for saplings and adults.

void clTestSailLight::TestSailLight ( )

Gathers all testing into one function.

const char* clTestSailLight::WriteXMLFile1 ( )
protected

Writes a parameter file to direct testing.

Timestep length is 1 year. This contains one species. Sail light is applied to Species 1 saplings.

Returns
Filename written.
const char* clTestSailLight::WriteXMLFile2 ( )
protected

Writes a parameter file to direct testing.

Timestep length is 1 year. This contains one species. Sail light is applied to Species 1 saplings and seedlings.

Returns
Filename written.

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