SORTIE C++ Test Documentation
|
Tests the clSelectionHarvest class. More...
#include <TestSelectionHarvest.h>
Classes | |
struct | tree |
Tree structure for testing. More... | |
Public Member Functions | |
void | TestSelectionHarvest () |
Groups together all the other harvest testing functions into a comprehensive harvest test. | |
Protected Member Functions | |
void | DoSelectionHarvestRun1 (clSimManager *p_oSimManager) |
Performs the first harvest run. | |
void | DoSelectionHarvestRun2 (clSimManager *p_oSimManager) |
Performs the second harvest run. | |
void | DoSelectionHarvestRun3 (clSimManager *p_oSimManager) |
Performs the third harvest run. | |
void | DoSelectionHarvestRun4 (clSimManager *p_oSimManager) |
Performs the fourth harvest run. | |
void | DoSelectionHarvestRun5 (clSimManager *p_oSimManager) |
Performs the fifth harvest run. | |
void | DoSelectionHarvestRun6 (clSimManager *p_oSimManager) |
Performs the sixth harvest run. | |
void | DoSelectionHarvestRun7 (clSimManager *p_oSimManager) |
Performs the seventh harvest run. | |
void | DoSelectionHarvestRun8 (clSimManager *p_oSimManager) |
Performs the eigth harvest run. | |
void | DoSelectionHarvestRun9 (clSimManager *p_oSimManager) |
Performs the ninth harvest run. | |
void | DoSelectionHarvestRun10 (clSimManager *p_oSimManager) |
Performs the tenth harvest run. | |
void | DoSelectionHarvestRun11 (clSimManager *p_oSimManager) |
Performs the eleventh harvest run. | |
void | DoSelectionHarvestRun12 (clSimManager *p_oSimManager) |
Performs the twelth harvest run. | |
void | DoSelectionHarvestRun13 (clSimManager *p_oSimManager) |
Performs the thirteenth harvest run. | |
const char * | WriteXMLFile1 () |
Writes a parameter file to test disturbance for run 1. | |
const char * | WriteXMLFile2 () |
Writes a parameter file to test disturbance for run 2. | |
const char * | WriteXMLFile3 () |
Writes a parameter file to test disturbance for run 3. | |
const char * | WriteXMLFile4 () |
Writes a parameter file to test disturbance for run 4. | |
const char * | WriteXMLFile5 () |
Writes a parameter file to test disturbance for run 5. | |
const char * | WriteXMLFile6 () |
Writes a parameter file to test disturbance for run 6. | |
const char * | WriteXMLFile7 () |
Writes a parameter file to test disturbance for run 7. | |
const char * | WriteXMLFile8 () |
Writes a parameter file to test disturbance for run 8. | |
const char * | WriteXMLFile9 () |
Writes a parameter file to test disturbance for run 9. | |
const char * | WriteXMLFile10 () |
Writes a parameter file to test disturbance for run 10. | |
const char * | WriteXMLFile11 () |
Writes a parameter file to test disturbance for run 11. | |
const char * | WriteXMLFile12 () |
Writes a parameter file to test disturbance for run 12. | |
const char * | WriteXMLFile13 () |
Writes a parameter file to test disturbance for run 12. | |
void | WriteTreeMap (const char *cFileName) |
Writes the tree map for harvest parameter files. | |
void | CheckResults (clTreePopulation *p_oPop, int iNumTrees, tree *p_FakeTrees) |
Checks the results of the tree population against the expected results. | |
Tests the clSelectionHarvest class.
|
protected |
Checks the results of the tree population against the expected results.
p_oPop | Tree population object |
iNumTrees | Number of trees in p_FakeTrees |
p_FakeTrees | List of trees. |
|
protected |
Performs the first harvest run.
This run has the following characteristics: Harvest # Timestep Cut Ranges Species Cut Type Target BA Amt (abs) Grids 1 1 0 - 100 1 AbsBA 6 Whole plot The harvest will be performed. Then the remaining trees are checked to make sure the proper ones were left alone.
|
protected |
Performs the tenth harvest run.
This run has the following characteristics: Harvest # Timestep Cut Ranges Species Cut Type Target BA Amt (abs) Grids 1 1 "bad", 21-40 1 AbsBA 6, 6 Whole plot The harvest will not be performed. An error message will be thrown.
|
protected |
Performs the eleventh harvest run.
This run has the following characteristics: Harvest # Timestep Cut Ranges Species Cut Type Target BA Amt (abs) Grids 1 1 none 1 AbsBA N/A Whole plot The harvest will not be performed. An error message will be thrown.
|
protected |
Performs the twelth harvest run.
This run has the following characteristics: Harvest # Timestep Cut Ranges Species Cut Type Target BA Amt (abs) Grids 1 2 0-100 1 AbsBA 6 Whole plot The harvest will be performed. The purpose of the run is to test the TimeSinceHarvest function. Each cell will be given an intial age of 5000 years. They will be cut as the target BA is lower than initial BA. The timeSinceHarvest function will reflect this by returning the timestep length as the amount of time elapsed since harvest
|
protected |
Performs the thirteenth harvest run.
This run has the following characteristics: Harvest # Timestep Cut Ranges Species Cut Type Target BA Amt (abs) Grids 1 2 0-100 1 AbsBA 500 Whole plot The harvest will not be performed. The purpose of the run is to test the TimeSinceHarvest function. Each cell will be given an intial age of 5000 years. They will not be cut as the target BA is too high. The timeSinceHarvest function will reflect this by returning the initial age + timestep length (5000+1)
|
protected |
Performs the second harvest run.
This run has the following characteristics: Harvest # Timestep Cut Ranges Species Cut Type Target BA Amt (abs) Grids 1 1 0 - 100 1 AbsBA 6.0 Whole plot The harvest will be performed. Then the remaining trees are checked to make sure the proper ones were left alone.
|
protected |
Performs the third harvest run.
This run has the following characteristics: Harvest # Timestep Cut Ranges Species Cut Type Target BA Amt (abs) Grids 1 1 0 - 100 1 AbsBA -5 Whole plot The harvest will not be performed. An error message will be thrown.
|
protected |
Performs the fourth harvest run.
This run has the following characteristics: Harvest # Timestep Cut Ranges Species Cut Type Target BA Amt (abs) Grids 1 1 0-100 1 AbsBA 500 Whole plot The harvest will not be performed. The run will continue.
|
protected |
Performs the fifth harvest run.
This run has the following characteristics: Harvest # Timestep Cut Ranges Species Cut Type Target BA Amt (abs) Grids 1 1 0-100 1 AbsBA Whole plot The harvest will not be performed. An error message will be thrown.
|
protected |
Performs the sixth harvest run.
This run has the following characteristics: Harvest # Timestep Cut Ranges Species Cut Type Target BA Amt (abs) Grids 1 1 0-100 1 AbsBA "bad" Whole plot The harvest will not be performed. An error message will be thrown.
|
protected |
Performs the seventh harvest run.
This run has the following characteristics: Harvest # Timestep Cut Ranges Species Cut Type Target BA Amt (abs) Grids 1 1 0-20, 15-40 1 AbsBA 6 , 6 Whole plot The harvest will not be performed. An error message will be thrown.
|
protected |
Performs the eigth harvest run.
This run has the following characteristics: Harvest # Timestep Cut Ranges Species Cut Type Target BA Amt (abs) Grids 1 1 0-20, 40-21 1 AbsBA 6, 6 Whole plot The harvest will not be performed. An error message will be thrown.
|
protected |
Performs the ninth harvest run.
This run has the following characteristics: Harvest # Timestep Cut Ranges Species Cut Type Target BA Amt (abs) Grids 1 1 -5-20, 21-40 1 AbsBA 6, 6 Whole plot The harvest will not be performed. An error message will be thrown.
void clTestSelectionHarvest::TestSelectionHarvest | ( | ) |
Groups together all the other harvest testing functions into a comprehensive harvest test.
|
protected |
Writes the tree map for harvest parameter files.
cFileName | File to write to. |
|
protected |
Writes a parameter file to test disturbance for run 1.
This has a tree map so an expected tree set is created.
|
protected |
Writes a parameter file to test disturbance for run 10.
This has a tree map so an expected tree set is created.
|
protected |
Writes a parameter file to test disturbance for run 11.
This has a tree map so an expected tree set is created.
|
protected |
Writes a parameter file to test disturbance for run 12.
This has a tree map so an expected tree set is created.
|
protected |
Writes a parameter file to test disturbance for run 12.
This has a tree map so an expected tree set is created.
|
protected |
Writes a parameter file to test disturbance for run 2.
This has a tree map so an expected tree set is created.
|
protected |
Writes a parameter file to test disturbance for run 3.
This has a tree map so an expected tree set is created.
|
protected |
Writes a parameter file to test disturbance for run 4.
This has a tree map so an expected tree set is created.
|
protected |
Writes a parameter file to test disturbance for run 5.
This has a tree map so an expected tree set is created.
|
protected |
Writes a parameter file to test disturbance for run 6.
This has a tree map so an expected tree set is created.
|
protected |
Writes a parameter file to test disturbance for run 7.
This has a tree map so an expected tree set is created.
|
protected |
Writes a parameter file to test disturbance for run 8.
This has a tree map so an expected tree set is created.
|
protected |
Writes a parameter file to test disturbance for run 9.
This has a tree map so an expected tree set is created.