Tests the class clDimensionAnalysis.
More...
#include <TestDimensionAnalysis.h>
|
void | TestNormalProcessing (clSimManager *p_oSimManager) |
| Tests normal processing.
|
|
void | TestErrorProcessing (clSimManager *p_oSimManager) |
| Tests error processing.
|
|
void | TestRun1 (clSimManager *p_oSimManager) |
| Performs test run 1.
|
|
void | TestRun2 (clSimManager *p_oSimManager) |
| Performs test run 2.
|
|
void | TestRun3 (clSimManager *p_oSimManager) |
| Performs test run 3.
|
|
void | TestRun4 (clSimManager *p_oSimManager) |
| Performs test run 4.
|
|
void | TestRun5 (clSimManager *p_oSimManager) |
| Performs test run 5.
|
|
void | TestRun6 (clSimManager *p_oSimManager) |
| Performs test run 6.
|
|
void | TestRun7 (clSimManager *p_oSimManager) |
| Performs test run 7.
|
|
void | TestRun8 (clSimManager *p_oSimManager) |
| Performs test run 8.
|
|
const char * | WriteXMLFile1 () |
| Writes the parameter file for run 1.
|
|
const char * | WriteXMLFile2 () |
| Writes the parameter file for run 2.
|
|
const char * | WriteXMLFile3 () |
| Writes the parameter file for run 3.
|
|
const char * | WriteXMLFile4 () |
| Writes the parameter file for run 4.
|
|
const char * | WriteXMLFile5 () |
| Writes the parameter file for run 5.
|
|
const char * | WriteXMLFile6 () |
| Writes the parameter file for run 6.
|
|
const char * | WriteXMLFile7 () |
| Writes the parameter file for run 7.
|
|
const char * | WriteXMLFile8 () |
| Writes the parameter file for run 8.
|
|
const char * | WriteXMLErrorFile1 () |
| Writes an error file where an equation ID is unrecognized.
|
|
const char * | WriteXMLErrorFile2 () |
| Writes an error file where a DBH units value is unrecognized.
|
|
const char * | WriteXMLErrorFile3 () |
| Writes an error file where the biomass calculator is applied to a seedling.
|
|
const char * | WriteXMLErrorFile4 () |
| Writes an error file where a biomass units value is unrecognized.
|
|
const char * | WriteXMLErrorFile5 () |
| Writes an error file where a correction factor flag value is unrecognized.
|
|
const char * | WriteXMLErrorFile6 () |
| Writes an error file where a dia meaning value is unrecognized.
|
|
void | WriteCommonStuff (std::fstream &oOut) |
| Writes common portions of the test parameter files (tree pop, plot, etc).
|
|
void | WriteCommonErrorStuff (std::fstream &oOut) |
| Writes common portions of the test parameter files (tree pop, plot, etc).
|
|
clTree ** | CreateTrees (clTreePopulation *p_oPop) |
| Creates the trees.
|
|
Tests the class clDimensionAnalysis.
clTree** clTestDimensionAnalysis::CreateTrees |
( |
clTreePopulation * |
p_oPop | ) |
|
|
protected |
Creates the trees.
3 of each species are created (Species 1 to Species 19, Species 13 excepted). There is one of DBH 5 cm, one of DBH 50 cm, and one of DBH 100 cm. Pointers to the new trees are placed in the passed array.
- Parameters
-
p_oPop | Tree population object. |
- Returns
- Array of created trees, 54 trees long.
void clTestDimensionAnalysis::TestDimensionAnalysis |
( |
| ) |
|
Performs all the tests from one function.
void clTestDimensionAnalysis::TestErrorProcessing |
( |
clSimManager * |
p_oSimManager | ) |
|
|
protected |
Tests error processing.
This uses WriteXMLErrorFileX() to introduce errors and makes sure that they are caught.
- Parameters
-
p_oSimManager | Sim Manager object to call for runs. |
void clTestDimensionAnalysis::TestNormalProcessing |
( |
clSimManager * |
p_oSimManager | ) |
|
|
protected |
Tests normal processing.
This does runs 1 - 8.
- Parameters
-
p_oSimManager | Sim Manager object to call for runs. |
void clTestDimensionAnalysis::TestRun1 |
( |
clSimManager * |
p_oSimManager | ) |
|
|
protected |
Performs test run 1.
Tests equation 1, all possible units conversions. WriteXMLFile1() does setup. This function creates three trees for each species, of varying sizes. The run goes for a timestep and then the function checks the biomass values.
- Parameters
-
p_oSimManager | Sim Manager object to call for runs. |
void clTestDimensionAnalysis::TestRun2 |
( |
clSimManager * |
p_oSimManager | ) |
|
|
protected |
Performs test run 2.
Tests equation 2, all possible units conversions. WriteXMLFile2() does setup. This function creates three trees for each species, of varying sizes. The run goes for a timestep and then the function checks the biomass values.
- Parameters
-
p_oSimManager | Sim Manager object to call for runs. |
void clTestDimensionAnalysis::TestRun3 |
( |
clSimManager * |
p_oSimManager | ) |
|
|
protected |
Performs test run 3.
Tests equation 3, all possible units conversions. WriteXMLFile3() does setup. This function creates three trees for each species, of varying sizes. The run goes for a timestep and then the function checks the biomass values.
- Parameters
-
p_oSimManager | Sim Manager object to call for runs. |
void clTestDimensionAnalysis::TestRun4 |
( |
clSimManager * |
p_oSimManager | ) |
|
|
protected |
Performs test run 4.
Tests equations 4 and 5, all possible units conversions. WriteXMLFile4() does setup. This function creates three trees for each species, of varying sizes. The run goes for a timestep and then the function checks the biomass values.
- Parameters
-
p_oSimManager | Sim Manager object to call for runs. |
void clTestDimensionAnalysis::TestRun5 |
( |
clSimManager * |
p_oSimManager | ) |
|
|
protected |
Performs test run 5.
Tests equations 6 and 7, all possible units conversions. WriteXMLFile5() does setup. This function creates three trees for each species, of varying sizes. The run goes for a timestep and then the function checks the biomass values.
- Parameters
-
p_oSimManager | Sim Manager object to call for runs. |
void clTestDimensionAnalysis::TestRun6 |
( |
clSimManager * |
p_oSimManager | ) |
|
|
protected |
Performs test run 6.
Tests equation 8, all possible units conversions. WriteXMLFile6() does setup. This function creates three trees for each species, of varying sizes. The run goes for a timestep and then the function checks the biomass values.
- Parameters
-
p_oSimManager | Sim Manager object to call for runs. |
void clTestDimensionAnalysis::TestRun7 |
( |
clSimManager * |
p_oSimManager | ) |
|
|
protected |
Performs test run 7.
Tests equation 9, all possible units conversions. WriteXMLFile7() does setup. This function creates three trees for each species, of varying sizes. The run goes for a timestep and then the function checks the biomass values.
- Parameters
-
p_oSimManager | Sim Manager object to call for runs. |
void clTestDimensionAnalysis::TestRun8 |
( |
clSimManager * |
p_oSimManager | ) |
|
|
protected |
Performs test run 8.
Tests "dia" = DBH^2. WriteXMLFile8() does setup. This function creates three trees for each species, of varying sizes. The run goes for a timestep and then the function checks the biomass values.
- Parameters
-
p_oSimManager | Sim Manager object to call for runs. |
void clTestDimensionAnalysis::WriteCommonErrorStuff |
( |
std::fstream & |
oOut | ) |
|
|
protected |
Writes common portions of the test parameter files (tree pop, plot, etc).
This ends with </behaviorList>. There are only two species for this file.
- Parameters
-
oOut | File stream to write to. |
void clTestDimensionAnalysis::WriteCommonStuff |
( |
std::fstream & |
oOut | ) |
|
|
protected |
Writes common portions of the test parameter files (tree pop, plot, etc).
This ends with </behaviorList>.
- Parameters
-
oOut | File stream to write to. |
const char* clTestDimensionAnalysis::WriteXMLErrorFile1 |
( |
| ) |
|
|
protected |
Writes an error file where an equation ID is unrecognized.
- Returns
- Filename written.
const char* clTestDimensionAnalysis::WriteXMLErrorFile2 |
( |
| ) |
|
|
protected |
Writes an error file where a DBH units value is unrecognized.
- Returns
- Filename written.
const char* clTestDimensionAnalysis::WriteXMLErrorFile3 |
( |
| ) |
|
|
protected |
Writes an error file where the biomass calculator is applied to a seedling.
- Returns
- Filename written.
const char* clTestDimensionAnalysis::WriteXMLErrorFile4 |
( |
| ) |
|
|
protected |
Writes an error file where a biomass units value is unrecognized.
- Returns
- Filename written.
const char* clTestDimensionAnalysis::WriteXMLErrorFile5 |
( |
| ) |
|
|
protected |
Writes an error file where a correction factor flag value is unrecognized.
- Returns
- Filename written.
const char* clTestDimensionAnalysis::WriteXMLErrorFile6 |
( |
| ) |
|
|
protected |
Writes an error file where a dia meaning value is unrecognized.
- Returns
- Filename written.
const char* clTestDimensionAnalysis::WriteXMLFile1 |
( |
| ) |
|
|
protected |
Writes the parameter file for run 1.
There are 19 species (Species 13 is not used). The biomass calculator is the only behavior and is applied to saplings and adults of all used species. All 18 used species use equation
- The first 9 use a correction factor; the second 9 don't.
- Returns
- Filename written.
const char* clTestDimensionAnalysis::WriteXMLFile2 |
( |
| ) |
|
|
protected |
Writes the parameter file for run 2.
There are 19 species (Species 13 is not used). The biomass calculator is the only behavior and is applied to saplings and adults of all used species. All 18 used species use equation
- The first 9 use a correction factor; the second 9 don't.
- Returns
- Filename written.
const char* clTestDimensionAnalysis::WriteXMLFile3 |
( |
| ) |
|
|
protected |
Writes the parameter file for run 3.
There are 19 species (Species 13 is not used). The biomass calculator is the only behavior and is applied to saplings and adults of all used species. All 18 used species use equation
- The first 9 use a correction factor; the second 9 don't.
- Returns
- Filename written.
const char* clTestDimensionAnalysis::WriteXMLFile4 |
( |
| ) |
|
|
protected |
Writes the parameter file for run 4.
There are 19 species (Species 13 is not used). The biomass calculator is the only behavior and is applied to saplings and adults of all used species. The first 9 species use equation 4; the second 9 use equation 5.
- Returns
- Filename written.
const char* clTestDimensionAnalysis::WriteXMLFile5 |
( |
| ) |
|
|
protected |
Writes the parameter file for run 5.
There are 19 species (Species 13 is not used). The biomass calculator is the only behavior and is applied to saplings and adults of all used species. The first 9 species use equation 6; the second 9 use equation 7.
- Returns
- Filename written.
const char* clTestDimensionAnalysis::WriteXMLFile6 |
( |
| ) |
|
|
protected |
Writes the parameter file for run 6.
There are 19 species (Species 13 is not used). The biomass calculator is the only behavior and is applied to saplings and adults of all used species. All 18 used species use equation
- The first 9 use a correction factor; the second 9 don't.
- Returns
- Filename written.
const char* clTestDimensionAnalysis::WriteXMLFile7 |
( |
| ) |
|
|
protected |
Writes the parameter file for run 7.
There are 19 species (Species 13 is not used). The biomass calculator is the only behavior and is applied to saplings and adults of all used species. All 18 used species use equation
- The first 9 use a correction factor; the second 9 don't.
- Returns
- Filename written.
const char* clTestDimensionAnalysis::WriteXMLFile8 |
( |
| ) |
|
|
protected |
Writes the parameter file for run 8.
There are 19 species but only the first 9 are used. The biomass calculator is the only behavior and is applied to saplings and adults of all used species. All used species use dia=DBH^2.
- Returns
- Filename written.
The documentation for this class was generated from the following file: