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

Tests the clTreeRemover class. More...

#include <TestTreeRemover.h>

Inheritance diagram for clTestTreeRemover:

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 error processing.
 
const char * WriteXMLFile1 ()
 Writes a parameter file with the specifications given for TestNormalProcessingRun1().
 
const 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::TestErrorProcessing ( clSimManager *  p_oSimManager)
protected

Tests error processing.

Parameters
p_oSimManagerSim manager.
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_oSimManagerSim manager.
void clTestTreeRemover::TestTreeRemover ( )

Rolls all tests into a single one.

const 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.
const char* clTestTreeRemover::WriteXMLFile1 ( )
protected

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

Returns
Filename written.

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