SORTIE C++ Test Documentation
|
Tests the clAllometry class. More...
#include <TestAllometry.h>
Public Member Functions | |
void | TestAllometry () |
Groups together all the testing functions. | |
Protected Member Functions | |
void | TestNormalProcessingRun1 (clSimManager *p_oSimManager) |
Verifies that allometry functions calculate correctly. | |
void | TestNormalProcessingRun2 (clSimManager *p_oSimManager) |
Verifies that non-spatial density dependent crown allometry functions calculate correctly. | |
void | TestNormalProcessingRun3 (clSimManager *p_oSimManager) |
Verifies that NCI crown allometry functions calculate correctly. | |
void | TestErrorProcessing (clSimManager *p_oSimManager) |
Tests error processing. | |
const char * | WriteXMLFile1 () |
Writes a parameter file to test allometry. | |
const char * | WriteXMLFile2 () |
This writes a file with only standard functions and parameters, to make sure that the others aren't required if not needed. | |
const char * | WriteXMLFile3 () |
This writes a file with only linear functions and parameters, to make sure that the others aren't required if not needed. | |
const 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. | |
const 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. | |
const 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. | |
const char * | WriteXMLFile7 () |
This writes a file with non-spatial density dependent crown allometry parameters. | |
const char * | WriteXMLFile8 () |
This writes a file with NCI crown allometry parameters. | |
const char * | WriteXMLErrorFile1 () |
This writes a file with an unrecognized function for adult allometry. | |
const char * | WriteXMLErrorFile2 () |
This writes a file with an unrecognized function for sapling allometry. | |
const char * | WriteXMLErrorFile3 () |
This writes a file with an unrecognized function for seedling allometry. | |
const char * | WriteXMLErrorFile4 () |
This writes a file with a 0 value for adult linear slope. | |
const char * | WriteXMLErrorFile5 () |
This writes a file with a 0 value for adult reverse linear slope. | |
const char * | WriteXMLErrorFile6 () |
This writes a file with a 0 value for sapling linear slope. | |
const char * | WriteXMLErrorFile7 () |
This writes a file with a 0 value for sapling reverse linear slope. | |
const char * | WriteXMLErrorFile8 () |
This writes a file with a 0 value for seedling linear slope. | |
const char * | WriteXMLErrorFile9 () |
This writes a file with a 0 value for seedling reverse linear slope. | |
const char * | WriteXMLErrorFile10 () |
This writes a file with a 0 value for diam10 to dbh ratio. | |
const char * | WriteXMLErrorFile11 () |
This writes a file with an unrecognized function for adult crown radius. | |
const char * | WriteXMLErrorFile12 () |
This writes a file with an unrecognized function for adult crown height. | |
const char * | WriteXMLErrorFile13 () |
This writes a file with an unrecognized function for sapling crown radius. | |
const char * | WriteXMLErrorFile14 () |
This writes a file with an unrecognized function for sapling crown height. | |
Tests the clAllometry class.
void clTestAllometry::TestAllometry | ( | ) |
Groups together all the testing functions.
|
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.
|
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.)
p_oSimManager | Sim manager for performing runs. |
|
protected |
Verifies that non-spatial density dependent crown allometry functions calculate correctly.
This run uses WriteXMLFile7 for setup. This file contains 4 species, three of which use those functions.
p_oSimManager | Sim manager for performing runs. |
|
protected |
Verifies that NCI crown allometry functions calculate correctly.
This run uses WriteXMLFile8 for setup. This file contains 4 species, three of which use those functions.
p_oSimManager | Sim manager for performing runs. |
|
protected |
This writes a file with an unrecognized function for adult allometry.
|
protected |
This writes a file with a 0 value for diam10 to dbh ratio.
|
protected |
This writes a file with an unrecognized function for adult crown radius.
|
protected |
This writes a file with an unrecognized function for adult crown height.
|
protected |
This writes a file with an unrecognized function for sapling crown radius.
|
protected |
This writes a file with an unrecognized function for sapling crown height.
|
protected |
This writes a file with an unrecognized function for sapling allometry.
|
protected |
This writes a file with an unrecognized function for seedling allometry.
|
protected |
This writes a file with a 0 value for adult linear slope.
|
protected |
This writes a file with a 0 value for adult reverse linear slope.
|
protected |
This writes a file with a 0 value for sapling linear slope.
|
protected |
This writes a file with a 0 value for sapling reverse linear slope.
|
protected |
This writes a file with a 0 value for seedling linear slope.
|
protected |
This writes a file with a 0 value for seedling reverse linear slope.
|
protected |
Writes a parameter file to test allometry.
This contains six species, with functions mixed up between them.
|
protected |
This writes a file with only standard functions and parameters, to make sure that the others aren't required if not needed.
|
protected |
This writes a file with only linear functions and parameters, to make sure that the others aren't required if not needed.
|
protected |
This writes a file with only reverse linear functions and parameters, to make sure that the others aren't required if not needed.
|
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.
|
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.
|
protected |
This writes a file with non-spatial density dependent crown allometry parameters.
|
protected |
This writes a file with NCI crown allometry parameters.