clTestAllometry Class Reference

Tests the clAllometry class. More...

#include <TestAllometry.h>

List of all members.

Public Member Functions

void TestAllometry ()
 Groups together all the testing functions.

Protected Member Functions

void TestNormalProcessing (clSimManager *p_oSimManager)
 Verifies that allometry functions calculate correctly.
void TestErrorProcessing (clSimManager *p_oSimManager)
 Tests error processing.
char * WriteXMLFile1 ()
 Writes a parameter file to test allometry.
char * WriteXMLFile2 ()
 This writes a file with only standard functions and parameters, to make sure that the others aren't required if not needed.
char * WriteXMLFile3 ()
 This writes a file with only linear functions and parameters, to make sure that the others aren't required if not needed.
char * WriteXMLFile4 ()
 This writes a file with only reverse linear functions and parameters, to make sure that the others aren't required if not needed.
char * WriteXMLFile5 ()
 This writes a file with linear height-DBH and standard crown adult parameters, and standard height-DBH and Chapman-Richards sapling parameters, to make sure arrays are declared correctly.
char * WriteXMLFile6 ()
 This writes a file with linear height-DBH and Chapman-Richards crown adult parameters, and standard sapling parameters, to make sure arrays are declared correctly.
char * WriteXMLErrorFile1 ()
 This writes a file with an unrecognized function for adult allometry.
char * WriteXMLErrorFile2 ()
 This writes a file with an unrecognized function for sapling allometry.
char * WriteXMLErrorFile3 ()
 This writes a file with an unrecognized function for seedling allometry.
char * WriteXMLErrorFile4 ()
 This writes a file with a 0 value for adult linear slope.
char * WriteXMLErrorFile5 ()
 This writes a file with a 0 value for adult reverse linear slope.
char * WriteXMLErrorFile6 ()
 This writes a file with a 0 value for sapling linear slope.
char * WriteXMLErrorFile7 ()
 This writes a file with a 0 value for sapling reverse linear slope.
char * WriteXMLErrorFile8 ()
 This writes a file with a 0 value for seedling linear slope.
char * WriteXMLErrorFile9 ()
 This writes a file with a 0 value for seedling reverse linear slope.
char * WriteXMLErrorFile10 ()
 This writes a file with a 0 value for diam10 to dbh ratio.
char * WriteXMLErrorFile11 ()
 This writes a file with an unrecognized function for adult crown radius.
char * WriteXMLErrorFile12 ()
 This writes a file with an unrecognized function for adult crown height.
char * WriteXMLErrorFile13 ()
 This writes a file with an unrecognized function for sapling crown radius.
char * WriteXMLErrorFile14 ()
 This writes a file with an unrecognized function for sapling crown height.


Detailed Description

Tests the clAllometry class.


Member Function Documentation

void clTestAllometry::TestErrorProcessing ( clSimManager *  p_oSimManager  )  [protected]

Tests error processing.

In the first part, invalid requests are made of the clAllometry functions. In the second part, parameter files with bad data are read in.

void clTestAllometry::TestNormalProcessing ( clSimManager *  p_oSimManager  )  [protected]

Verifies that allometry functions calculate correctly.

This run uses WriteXMLFile1 for setup. This file contains 6 species, with a mix of allometric functions throughout the life history stages. This tests each allometric function for each life history stage for each species. (No actual trees are used; we just call the functions directly.)

Parameters:
p_oSimManager Sim manager for performing runs.

char* clTestAllometry::WriteXMLErrorFile1 (  )  [protected]

This writes a file with an unrecognized function for adult allometry.

Returns:
Filename written.

char* clTestAllometry::WriteXMLErrorFile10 (  )  [protected]

This writes a file with a 0 value for diam10 to dbh ratio.

Returns:
Filename written.

char* clTestAllometry::WriteXMLErrorFile11 (  )  [protected]

This writes a file with an unrecognized function for adult crown radius.

Returns:
Filename written.

char* clTestAllometry::WriteXMLErrorFile12 (  )  [protected]

This writes a file with an unrecognized function for adult crown height.

Returns:
Filename written.

char* clTestAllometry::WriteXMLErrorFile13 (  )  [protected]

This writes a file with an unrecognized function for sapling crown radius.

Returns:
Filename written.

char* clTestAllometry::WriteXMLErrorFile14 (  )  [protected]

This writes a file with an unrecognized function for sapling crown height.

Returns:
Filename written.

char* clTestAllometry::WriteXMLErrorFile2 (  )  [protected]

This writes a file with an unrecognized function for sapling allometry.

Returns:
Filename written.

char* clTestAllometry::WriteXMLErrorFile3 (  )  [protected]

This writes a file with an unrecognized function for seedling allometry.

Returns:
Filename written.

char* clTestAllometry::WriteXMLErrorFile4 (  )  [protected]

This writes a file with a 0 value for adult linear slope.

Returns:
Filename written.

char* clTestAllometry::WriteXMLErrorFile5 (  )  [protected]

This writes a file with a 0 value for adult reverse linear slope.

Returns:
Filename written.

char* clTestAllometry::WriteXMLErrorFile6 (  )  [protected]

This writes a file with a 0 value for sapling linear slope.

Returns:
Filename written.

char* clTestAllometry::WriteXMLErrorFile7 (  )  [protected]

This writes a file with a 0 value for sapling reverse linear slope.

Returns:
Filename written.

char* clTestAllometry::WriteXMLErrorFile8 (  )  [protected]

This writes a file with a 0 value for seedling linear slope.

Returns:
Filename written.

char* clTestAllometry::WriteXMLErrorFile9 (  )  [protected]

This writes a file with a 0 value for seedling reverse linear slope.

Returns:
Filename written.

char* clTestAllometry::WriteXMLFile1 (  )  [protected]

Writes a parameter file to test allometry.

This contains six species, with functions mixed up between them.

Returns:
Filename written.

char* clTestAllometry::WriteXMLFile2 (  )  [protected]

This writes a file with only standard functions and parameters, to make sure that the others aren't required if not needed.

Returns:
Filename written.

char* clTestAllometry::WriteXMLFile3 (  )  [protected]

This writes a file with only linear functions and parameters, to make sure that the others aren't required if not needed.

Returns:
Filename written.

char* clTestAllometry::WriteXMLFile4 (  )  [protected]

This writes a file with only reverse linear functions and parameters, to make sure that the others aren't required if not needed.

Returns:
Filename written.

char* clTestAllometry::WriteXMLFile5 (  )  [protected]

This writes a file with linear height-DBH and standard crown adult parameters, and standard height-DBH and Chapman-Richards sapling parameters, to make sure arrays are declared correctly.

Returns:
Filename written.

char* clTestAllometry::WriteXMLFile6 (  )  [protected]

This writes a file with linear height-DBH and Chapman-Richards crown adult parameters, and standard sapling parameters, to make sure arrays are declared correctly.

Returns:
Filename written.


The documentation for this class was generated from the following file:
Generated on Wed Nov 15 11:27:25 2006 for SORTIE C++ Test Documentation by  doxygen 1.4.7