clTestStochasticMort Class Reference

Tests the clStochasticMort class. More...

#include <TestStochasticMort.h>

List of all members.

Public Member Functions

void TestStochasticMortality ()
 This performs a test of stochastic mortality.

Protected Member Functions

char * WriteXMLFile1 ()
 Writes a parameter file for testing.
char * WriteXMLFile2 ()
 Writes a parameter file for testing.


Detailed Description

Tests the clStochasticMort class.


Member Function Documentation

void clTestStochasticMort::TestStochasticMortality  ) 
 

This performs a test of stochastic mortality.

An XML file is written with different species getting different mortality levels. This will add 1000 trees of each species, run mortality, and then count the remaining trees to make sure the correct number were killed. This is repeated with a file with a different number of years per timestep.

char* clTestStochasticMort::WriteXMLFile1  )  [protected]
 

Writes a parameter file for testing.

There are four species: one whose mortality rate is 0, one whose mortality rate is 1, one whose mortality rate is 0.25, and one to which mortality does not apply. The number of years per timestep is 1. The behavior is adult stochastic mortality.

Returns:
Filename written.

char* clTestStochasticMort::WriteXMLFile2  )  [protected]
 

Writes a parameter file for testing.

This is the same as WriteXMLFile1(), except the number of years per timestep is 3 and it's juvenile stochastic mortality.

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