#include <TestSelectionHarvest.h>
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. | |
char * | WriteXMLFile1 () |
Writes a parameter file to test disturbance for run 1. | |
char * | WriteXMLFile2 () |
Writes a parameter file to test disturbance for run 2. | |
char * | WriteXMLFile3 () |
Writes a parameter file to test disturbance for run 3. | |
char * | WriteXMLFile4 () |
Writes a parameter file to test disturbance for run 4. | |
char * | WriteXMLFile5 () |
Writes a parameter file to test disturbance for run 5. | |
char * | WriteXMLFile6 () |
Writes a parameter file to test disturbance for run 6. | |
char * | WriteXMLFile7 () |
Writes a parameter file to test disturbance for run 7. | |
char * | WriteXMLFile8 () |
Writes a parameter file to test disturbance for run 8. | |
char * | WriteXMLFile9 () |
Writes a parameter file to test disturbance for run 9. | |
char * | WriteXMLFile10 () |
Writes a parameter file to test disturbance for run 10. | |
char * | WriteXMLFile11 () |
Writes a parameter file to test disturbance for run 11. | |
char * | WriteXMLFile12 () |
Writes a parameter file to test disturbance for run 12. | |
char * | WriteXMLFile13 () |
Writes a parameter file to test disturbance for run 12. | |
void | WriteTreeMap (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. | |
Classes | |
struct | tree |
Tree structure for testing. More... |
void clTestSelectionHarvest::DoSelectionHarvestRun1 | ( | clSimManager * | p_oSimManager | ) | [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.
void clTestSelectionHarvest::DoSelectionHarvestRun2 | ( | clSimManager * | p_oSimManager | ) | [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.
void clTestSelectionHarvest::DoSelectionHarvestRun3 | ( | clSimManager * | p_oSimManager | ) | [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.
void clTestSelectionHarvest::DoSelectionHarvestRun4 | ( | clSimManager * | p_oSimManager | ) | [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.
void clTestSelectionHarvest::DoSelectionHarvestRun5 | ( | clSimManager * | p_oSimManager | ) | [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.
void clTestSelectionHarvest::DoSelectionHarvestRun6 | ( | clSimManager * | p_oSimManager | ) | [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.
void clTestSelectionHarvest::DoSelectionHarvestRun7 | ( | clSimManager * | p_oSimManager | ) | [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.
void clTestSelectionHarvest::DoSelectionHarvestRun8 | ( | clSimManager * | p_oSimManager | ) | [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.
void clTestSelectionHarvest::DoSelectionHarvestRun9 | ( | clSimManager * | p_oSimManager | ) | [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::DoSelectionHarvestRun10 | ( | clSimManager * | p_oSimManager | ) | [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.
void clTestSelectionHarvest::DoSelectionHarvestRun11 | ( | clSimManager * | p_oSimManager | ) | [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.
void clTestSelectionHarvest::DoSelectionHarvestRun12 | ( | clSimManager * | p_oSimManager | ) | [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
void clTestSelectionHarvest::DoSelectionHarvestRun13 | ( | clSimManager * | p_oSimManager | ) | [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)
char* clTestSelectionHarvest::WriteXMLFile1 | ( | ) | [protected] |
char* clTestSelectionHarvest::WriteXMLFile2 | ( | ) | [protected] |
char* clTestSelectionHarvest::WriteXMLFile3 | ( | ) | [protected] |
char* clTestSelectionHarvest::WriteXMLFile4 | ( | ) | [protected] |
char* clTestSelectionHarvest::WriteXMLFile5 | ( | ) | [protected] |
char* clTestSelectionHarvest::WriteXMLFile6 | ( | ) | [protected] |
char* clTestSelectionHarvest::WriteXMLFile7 | ( | ) | [protected] |
char* clTestSelectionHarvest::WriteXMLFile8 | ( | ) | [protected] |
char* clTestSelectionHarvest::WriteXMLFile9 | ( | ) | [protected] |
char* clTestSelectionHarvest::WriteXMLFile10 | ( | ) | [protected] |
char* clTestSelectionHarvest::WriteXMLFile11 | ( | ) | [protected] |
char* clTestSelectionHarvest::WriteXMLFile12 | ( | ) | [protected] |
char* clTestSelectionHarvest::WriteXMLFile13 | ( | ) | [protected] |
void clTestSelectionHarvest::WriteTreeMap | ( | char * | cFileName | ) | [protected] |
void clTestSelectionHarvest::CheckResults | ( | clTreePopulation * | p_oPop, | |
int | iNumTrees, | |||
tree * | p_FakeTrees | |||
) | [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. |