clTestSelectionHarvest Class Reference

Tests the clSelectionHarvest class. More...

#include <TestSelectionHarvest.h>

List of all members.

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...


Detailed Description

Tests the clSelectionHarvest class.


Member Function Documentation

void clTestSelectionHarvest::CheckResults ( clTreePopulation *  p_oPop,
int  iNumTrees,
tree p_FakeTrees 
) [protected]

Checks the results of the tree population against the expected results.

Parameters:
p_oPop Tree population object
iNumTrees Number of trees in p_FakeTrees
p_FakeTrees List of trees.

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::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)

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::WriteTreeMap ( char *  cFileName  )  [protected]

Writes the tree map for harvest parameter files.

Parameters:
cFileName File to write to.

char* clTestSelectionHarvest::WriteXMLFile1 (  )  [protected]

Writes a parameter file to test disturbance for run 1.

This has a tree map so an expected tree set is created.

Returns:
Filename written.

char* clTestSelectionHarvest::WriteXMLFile10 (  )  [protected]

Writes a parameter file to test disturbance for run 10.

This has a tree map so an expected tree set is created.

Returns:
Filename written.

char* clTestSelectionHarvest::WriteXMLFile11 (  )  [protected]

Writes a parameter file to test disturbance for run 11.

This has a tree map so an expected tree set is created.

Returns:
Filename written.

char* clTestSelectionHarvest::WriteXMLFile12 (  )  [protected]

Writes a parameter file to test disturbance for run 12.

This has a tree map so an expected tree set is created.

Returns:
Filename written.

char* clTestSelectionHarvest::WriteXMLFile13 (  )  [protected]

Writes a parameter file to test disturbance for run 12.

This has a tree map so an expected tree set is created.

Returns:
Filename written.

char* clTestSelectionHarvest::WriteXMLFile2 (  )  [protected]

Writes a parameter file to test disturbance for run 2.

This has a tree map so an expected tree set is created.

Returns:
Filename written.

char* clTestSelectionHarvest::WriteXMLFile3 (  )  [protected]

Writes a parameter file to test disturbance for run 3.

This has a tree map so an expected tree set is created.

Returns:
Filename written.

char* clTestSelectionHarvest::WriteXMLFile4 (  )  [protected]

Writes a parameter file to test disturbance for run 4.

This has a tree map so an expected tree set is created.

Returns:
Filename written.

char* clTestSelectionHarvest::WriteXMLFile5 (  )  [protected]

Writes a parameter file to test disturbance for run 5.

This has a tree map so an expected tree set is created.

Returns:
Filename written.

char* clTestSelectionHarvest::WriteXMLFile6 (  )  [protected]

Writes a parameter file to test disturbance for run 6.

This has a tree map so an expected tree set is created.

Returns:
Filename written.

char* clTestSelectionHarvest::WriteXMLFile7 (  )  [protected]

Writes a parameter file to test disturbance for run 7.

This has a tree map so an expected tree set is created.

Returns:
Filename written.

char* clTestSelectionHarvest::WriteXMLFile8 (  )  [protected]

Writes a parameter file to test disturbance for run 8.

This has a tree map so an expected tree set is created.

Returns:
Filename written.

char* clTestSelectionHarvest::WriteXMLFile9 (  )  [protected]

Writes a parameter file to test disturbance for run 9.

This has a tree map so an expected tree set is created.

Returns:
Filename written.


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