clTestEpisodicMortality Class Reference

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

#include <TestEpisodicMortality.h>

List of all members.

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 first mortality episode run.
char * WriteXMLFile1 ()
 Writes a parameter file to test episodic mortality for run 1.
char * WriteXMLFile2 ()
 Writes a parameter file to test episodic mortality for run 2.
char * WriteXMLFile3 ()
 Writes a parameter file to test episodic mortality for run 3.
char * WriteXMLFile4 ()
 Writes a parameter file to test episodic mortality for run 4.
char * WriteXMLFile5 ()
 Writes a parameter file to test episodic mortality for run 5.
char * WriteXMLFile6 ()
 Writes a parameter file to test episodic mortality for run 6.
void WriteTreeMap (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.

Classes

struct  tree
 For testing trees. More...


Detailed Description

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

Member Function Documentation

void clTestEpisodicMortality::TestEpisodicMortality (  ) 

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

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

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.

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.

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.

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.

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.

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.

void clTestEpisodicMortality::WriteTreeMap ( char *  cFileName  )  [protected]

Writes the tree map for mortality episode parameter files.

Returns:
Filename written.

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_oPop Tree population
iNumTrees Number of trees in p_FakeTrees
p_FakeTrees Tree list.


The documentation for this class was generated from the following file:

Generated on Wed Oct 28 14:03:21 2009 for SORTIE C++ Test Documentation by  doxygen 1.5.6