clTestTreeRemover Class Reference

Tests the clTreeRemover class. More...

#include <TestTreeRemover.h>

List of all members.

Public Member Functions

void TestTreeRemover ()
 Tests TreeRemover.

Protected Member Functions

char * WriteXMLFile1 ()
 Writes a parameter file with the specifications given for TestTreeRemover().
char * WriteXMLFile2 ()
 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  ) 
 

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.

Once that's finished, error processing occurs with WriteXMLFile2(), which has TreeRemover assigned to a tree species/type combo without mortality.

char* clTestTreeRemover::WriteXMLFile1  )  [protected]
 

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

Returns:
Filename written.

char* clTestTreeRemover::WriteXMLFile2  )  [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 Mon Mar 27 15:13:46 2006 for SORTIE C++ Test Documentation by  doxygen 1.4.6-NO