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

Tests the clNciGrowth class. More...

#include <TestNCIJuvenileGrowth.h>

Inheritance diagram for clTestNCIJuvenileGrowth:

Public Member Functions

void TestNCIJuvenileGrowth ()
 Tests the clNciGrowth class.
 
void TestRun1 (clSimManager *p_oSimManager)
 Performs a test run of NCI growth.
 
void TestRun2 (clSimManager *p_oSimManager)
 Tests the growth calculations at two timestep lengths.
 
void TestErrorProcessing (clSimManager *p_oSimManager)
 Tests error processing for input files.
 

Protected Member Functions

const char * WriteXMLFile1 ()
 Writes a 1-year timestep file.
 
const char * WriteXMLFile2 ()
 Writes a 3-year timestep file.
 
const char * WriteXMLFile3 ()
 Writes a 1-year timestep file.
 
const char * WriteXMLFile4 ()
 Writes a 3-year timestep file.
 
const char * WriteXMLErrorFile1 ()
 Writes an error condition where max radius of neighbor effects is < 0.
 
const char * WriteXMLErrorFile2 ()
 Writes an error condition where max growth for a species is < 0.
 
const char * WriteXMLErrorFile3 ()
 Writes an error condition where a min neighbor diam10 is less than 0.
 
void WriteCommonStuff (std::fstream &oOut)
 Writes common portions of the test parameter files (tree pop, plot, etc).
 
void WriteRunCommonStuff (std::fstream &oOut)
 Writes common portions of the test parameter files for Run 1.
 
void WriteErrorFileCommonStuff (std::fstream &oOut)
 Writes common portions of the test error parameter files (tree pop, plot, etc).
 

Detailed Description

Tests the clNciGrowth class.

Member Function Documentation

void clTestNCIJuvenileGrowth::TestErrorProcessing ( clSimManager *  p_oSimManager)

Tests error processing for input files.

void clTestNCIJuvenileGrowth::TestNCIJuvenileGrowth ( )

Tests the clNciGrowth class.

void clTestNCIJuvenileGrowth::TestRun1 ( clSimManager *  p_oSimManager)

Performs a test run of NCI growth.

WriteXMLFile1() performs setup for a 1-year timestep; then WriteXMLFile2() performs setup for an otherwise identical 3-year timestep.

Parameters
p_oSimManagerSim Manager object to do the runs.
void clTestNCIJuvenileGrowth::TestRun2 ( clSimManager *  p_oSimManager)

Tests the growth calculations at two timestep lengths.

WriteXMLFile3() is used to do setup in the first case, for a 1 year timestep. WriteXMLFile4() does setup for a 3 year timestep and the growth is checked for the same trees.

Parameters
p_oSimManagerSim Manager object to do the runs.
void clTestNCIJuvenileGrowth::WriteCommonStuff ( std::fstream &  oOut)
protected

Writes common portions of the test parameter files (tree pop, plot, etc).

Picks up right after the number of years per timestep and ends at the closing tree tag.

Parameters
oOutFile stream to write to.
void clTestNCIJuvenileGrowth::WriteErrorFileCommonStuff ( std::fstream &  oOut)
protected

Writes common portions of the test error parameter files (tree pop, plot, etc).

Starts at the beginning of the file and ends at the closing tree tag.

Parameters
oOutFile stream to write to.
void clTestNCIJuvenileGrowth::WriteRunCommonStuff ( std::fstream &  oOut)
protected

Writes common portions of the test parameter files for Run 1.

Picks up at the behavior list through the end of the file.

Parameters
oOutFile stream to write to.
const char* clTestNCIJuvenileGrowth::WriteXMLErrorFile1 ( )
protected

Writes an error condition where max radius of neighbor effects is < 0.

Returns
Filename written.
const char* clTestNCIJuvenileGrowth::WriteXMLErrorFile2 ( )
protected

Writes an error condition where max growth for a species is < 0.

Returns
Filename written.
const char* clTestNCIJuvenileGrowth::WriteXMLErrorFile3 ( )
protected

Writes an error condition where a min neighbor diam10 is less than 0.

Returns
Filename written.
const char* clTestNCIJuvenileGrowth::WriteXMLFile1 ( )
protected

Writes a 1-year timestep file.

This contains 3 species. NCI growth (auto-height) is assigned to adults of Species 1.

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

Writes a 3-year timestep file.

This contains 3 species. NCI growth (auto-height) is assigned to adults of Species 1.

Returns
Filename written.
const char* clTestNCIJuvenileGrowth::WriteXMLFile3 ( )
protected

Writes a 1-year timestep file.

This contains 4 species, one unused (species 3; this helps catch array-index problems). NCI growth (auto-height) is assigned to all saplings and adults.

Returns
Filename written.
const char* clTestNCIJuvenileGrowth::WriteXMLFile4 ( )
protected

Writes a 3-year timestep file.

This contains 4 species, one unused (species 3; this helps catch array-index problems). NCI growth (auto-height) is assigned to all saplings and adults.

Returns
Filename written.

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