clTestTreeRemover Class Reference

Tests the clTreeRemover class. More...

#include <TestTreeRemover.h>

List of all members.

Public Member Functions

void TestTreeRemover ()
 Rolls all tests into a single one.

Protected Member Functions

void TestNormalProcessingRun1 (clSimManager *p_oSimManager)
 Tests TreeRemover.
void TestErrorProcessing (clSimManager *p_oSimManager)
 Tests trees becoming standing snags at different rates due to different reason codes.
char * WriteXMLFile1 ()
 Writes a parameter file with the specifications given for TestNormalProcessingRun1().
char * WriteXMLFile2 ()
 Writes a parameter file with the specifications given for TestNormalProcessingRun2().
char * WriteXMLFile3 ()
 Writes a parameter file with the specifications given for TestNormalProcessingRun3().
char * WriteXMLErrorFile1 ()
 Writes a parameter file with an error - the TreeRemover behavior is assigned to a tree species/type combo that is not also assigned to a mortality behavior.


Detailed Description

Tests the clTreeRemover class.

Member Function Documentation

void clTestTreeRemover::TestTreeRemover (  ) 

Rolls all tests into a single one.

void clTestTreeRemover::TestNormalProcessingRun1 ( clSimManager *  p_oSimManager  )  [protected]

Tests TreeRemover.

Reads in the file created by WriteXMLFile1(). The file has the following characteristics:

  • 3 species - Species 1, Species 2, Species 3.
  • Adult self-thinning, applied to adults and snags of species 1 and 2.
  • Tree remover behavior, applied to adults of Species 1.
  • Tree map. Each tree's number equals its X coordinate. The map has the following trees:
    • X = 1 - Adult, Species 1.
    • X = 2 - Adult, Species 1.
    • X = 3 - Adult, Species 2.
    • X = 4 - Adult, Species 2.
    • X = 5 - Adult, Species 3.
The value of the "dead" data member is set to true for trees 1 and 3. Then the TreeRemover behavior is run. Only tree 1 should go away.
Parameters:
p_oSimManager Sim manager.

void clTestTreeRemover::TestErrorProcessing ( clSimManager *  p_oSimManager  )  [protected]

Tests trees becoming standing snags at different rates due to different reason codes.

Parameters:
p_oSimManager Sim manager. Tests trees becoming standing snags at different rates due to different reason codes.
p_oSimManager Sim manager. Tests error processing.
p_oSimManager Sim manager.

char* clTestTreeRemover::WriteXMLFile1 (  )  [protected]

Writes a parameter file with the specifications given for TestNormalProcessingRun1().

Returns:
Filename written.

char* clTestTreeRemover::WriteXMLFile2 (  )  [protected]

Writes a parameter file with the specifications given for TestNormalProcessingRun2().

Returns:
Filename written.

char* clTestTreeRemover::WriteXMLFile3 (  )  [protected]

Writes a parameter file with the specifications given for TestNormalProcessingRun3().

Returns:
Filename written.

char* clTestTreeRemover::WriteXMLErrorFile1 (  )  [protected]

Writes a parameter file with an error - the TreeRemover behavior is assigned to a tree species/type combo that is not also assigned to a mortality behavior.

Returns:
Filename written.


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

Generated on Tue Apr 19 14:06:04 2011 for SORTIE C++ Test Documentation by  doxygen 1.5.6