SORTIE C++ Test Documentation
Classes | Public Member Functions | Protected Member Functions | List of all members
clTestEpisodicMortality Class Reference

Tests the clDisturbance class when it's in episodic mortality mode. More...

#include <TestEpisodicMortality.h>

Inheritance diagram for clTestEpisodicMortality:

Classes

struct  tree
 For testing trees. More...
 

Public Member Functions

void TestEpisodicMortality ()
 Groups together all the other plot testing functions into a comprehensive plot test.
 

Protected Member Functions

void DoMortEpisodeRun1 (clSimManager *p_oSimManager)
 Performs the first run.
 
void DoMortEpisodeRun2 (clSimManager *p_oSimManager)
 Performs the first mortality episode run.
 
void DoMortEpisodeRun3 (clSimManager *p_oSimManager)
 Performs the first mortality episode run.
 
void DoMortEpisodeRun4 (clSimManager *p_oSimManager)
 Performs the first mortality episode run.
 
void DoMortEpisodeRun5 (clSimManager *p_oSimManager)
 Performs the first mortality episode run.
 
void DoMortEpisodeRun6 (clSimManager *p_oSimManager)
 Performs the sixth mortality episode run.
 
void DoMortEpisodeRun8 (clSimManager *p_oSimManager)
 Performs the eighth mortality episode run.
 
const char * WriteXMLFile1 ()
 Writes a parameter file to test episodic mortality for run 1.
 
const char * WriteXMLFile2 ()
 Writes a parameter file to test episodic mortality for run 2.
 
const char * WriteXMLFile3 ()
 Writes a parameter file to test episodic mortality for run 3.
 
const char * WriteXMLFile4 ()
 Writes a parameter file to test episodic mortality for run 4.
 
const char * WriteXMLFile5 ()
 Writes a parameter file to test episodic mortality for run 5.
 
const char * WriteXMLFile6 ()
 Writes a parameter file to test episodic mortality for run 6.
 
const char * WriteXMLFile8 ()
 Writes a parameter file to test episodic mortality for run 8.
 
void WriteTreeMap (const char *cFileName)
 Writes the tree map for mortality episode parameter files.
 
void CheckResults (clTreePopulation *p_oPop, int iNumTrees, tree *p_FakeTrees)
 Checks the results of the tree population against the expected results.
 

Detailed Description

Tests the clDisturbance class when it's in episodic mortality mode.

Member Function Documentation

void clTestEpisodicMortality::CheckResults ( clTreePopulation *  p_oPop,
int  iNumTrees,
tree p_FakeTrees 
)
protected

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

The dead trees should be snags.

Parameters
p_oPopTree population
iNumTreesNumber of trees in p_FakeTrees
p_FakeTreesTree list.
void clTestEpisodicMortality::DoMortEpisodeRun1 ( clSimManager *  p_oSimManager)
protected

Performs the first run.

This run has the following characteristics: Mortality episode # Timestep Cut Ranges Species Cut Type Cut Amt (abs) Grids 1 1 0 - 300 2, 4 % BA 35 Whole plot 2 3 0 - 30, 40 - 80 5 Abs BA 0.2, 0.2 Whole plot 3 3 Min 0 2, 8 Clear 100% Whole plot The mortality episode will be performed. Then the remaining trees are checked to make sure the proper ones were left alone.

void clTestEpisodicMortality::DoMortEpisodeRun2 ( clSimManager *  p_oSimManager)
protected

Performs the first mortality episode run.

This run has the following characteristics: Mortality episode # Timestep Cut Ranges Species Cut Type Cut Amt (abs) Grids 1 1 15-45, 50-80, 0, 1 Dens 50, 40, 30, 20 Whole plot 80 - 85, 90 - 99 The mortality episode will be performed. Then the remaining trees are checked to make sure the proper ones were left alone.

void clTestEpisodicMortality::DoMortEpisodeRun3 ( clSimManager *  p_oSimManager)
protected

Performs the first mortality episode run.

This run has the following characteristics: Mortality episode # Timestep Cut Ranges Species Cut Type Cut Amt (abs) Grids 1 1 15-45, 50-80, 6, 7 Abs Den 1 Whole plot 80 - 85, 90 - 100 The mortality episode will be performed. Then the remaining trees are checked to make sure the proper ones were left alone.

void clTestEpisodicMortality::DoMortEpisodeRun4 ( clSimManager *  p_oSimManager)
protected

Performs the first mortality episode run.

This run has the following characteristics: Mortality episode # Timestep Cut Ranges Species Cut Type Cut Amt (abs) Grids 1 2 Min 0 0, 1, 2 Gap 100% Whole plot 2 2 15-45, 50-80, 4, 5 % BA 50, 100, 30, 0 (0,0) - (5,9) 80-85, 90-100 3 3 200-300, 50-80, 4 Abs BA 50, 100, 30, 0 (6,6) - (6-24); (8,6) - (8-24) 80-85, 90-100 4 3 0-10, 10-20, 7 % Dens 50, 100, 30, 0 (0,0) - (5,9) 20-30, 30-40 The mortality episode will be performed. Then the remaining trees are checked to make sure the proper ones were left alone.

void clTestEpisodicMortality::DoMortEpisodeRun5 ( clSimManager *  p_oSimManager)
protected

Performs the first mortality episode run.

This run has the following characteristics: Mortality episode # Timestep Cut Ranges Species Cut Type Cut Amt (abs) Grids 1 1 0-10, 10-20, 0-8 Abs Den 5, 100, 3, 0 (6,6) - (6-24); (8,0) - (24-12) 20-30, 30-40 The mortality episode will be performed. Then the remaining trees are checked to make sure the proper ones were left alone.

void clTestEpisodicMortality::DoMortEpisodeRun6 ( clSimManager *  p_oSimManager)
protected

Performs the sixth mortality episode run.

This run has the following characteristics: Mortality episode # Timestep Cut Ranges Species Cut Type Cut Amt (abs) Grids 1 1 Min 0 3 Clear 100% (6,6) - (6-24); (8,6) - (8-24) 2 2 Min 0 0 Gap 100% (0,0) - (5,9) 3 3 0 - 300 1 % BA 50 (0,10) 4 3 0 - 300 2 Abs BA 4.5 (5,5) 5 3 0 - 300 4 Dens 50 (10,23) 6 3 0 - 300 5 Abs Den 2 (1,1) 7 3 Min 0 6 Clear 100% (20,0) 8 3 Min 0 7 Gap 100% (1,7) The mortality episode will be performed. Then the remaining trees are checked to make sure the proper ones were left alone.

void clTestEpisodicMortality::DoMortEpisodeRun8 ( clSimManager *  p_oSimManager)
protected

Performs the eighth mortality episode run.

This run has the following characteristics: Harvest # Timestep Cut Ranges Species Cut Type Cut Amt (abs) Grids (Dist) 1 1 Min 0 All Clear 100% (0,0) - (23,39) The mortality episode will be performed. Then the remaining trees are checked to make sure the proper ones were left alone.

void clTestEpisodicMortality::TestEpisodicMortality ( )

Groups together all the other plot testing functions into a comprehensive plot test.

void clTestEpisodicMortality::WriteTreeMap ( const char *  cFileName)
protected

Writes the tree map for mortality episode parameter files.

Returns
Filename written.
const char* clTestEpisodicMortality::WriteXMLFile1 ( )
protected

Writes a parameter file to test episodic mortality for run 1.

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

Returns
Filename written.
const char* clTestEpisodicMortality::WriteXMLFile2 ( )
protected

Writes a parameter file to test episodic mortality for run 2.

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

Returns
Filename written.
const char* clTestEpisodicMortality::WriteXMLFile3 ( )
protected

Writes a parameter file to test episodic mortality for run 3.

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

Returns
Filename written.
const char* clTestEpisodicMortality::WriteXMLFile4 ( )
protected

Writes a parameter file to test episodic mortality for run 4.

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

Returns
Filename written.
const char* clTestEpisodicMortality::WriteXMLFile5 ( )
protected

Writes a parameter file to test episodic mortality for run 5.

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

Returns
Filename written.
const char* clTestEpisodicMortality::WriteXMLFile6 ( )
protected

Writes a parameter file to test episodic mortality for run 6.

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

Returns
Filename written.
const char* clTestEpisodicMortality::WriteXMLFile8 ( )
protected

Writes a parameter file to test episodic mortality for run 8.

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: