clTestSailLight Class Reference

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

#include <TestSailLight.h>

List of all members.

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.
char * WriteXMLFile1 ()
 Writes a parameter file to direct testing.
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.

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.

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:
Generated on Wed Nov 15 11:27:26 2006 for SORTIE C++ Test Documentation by  doxygen 1.4.7