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

Tests the clStochasticMort class. More...

#include <TestStochasticMort.h>

Inheritance diagram for clTestStochasticMort:

Public Member Functions

void TestStochasticMortality ()
 Gathers tests into a single function.
 
void Run1 (clSimManager *p_oSimManager)
 This performs a test of stochastic mortality.
 
void Run2 (clSimManager *p_oSimManager)
 This performs a test of stochastic mortality.
 

Protected Member Functions

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

Detailed Description

Tests the clStochasticMort class.

Member Function Documentation

void clTestStochasticMort::Run1 ( clSimManager *  p_oSimManager)

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.

Parameters
p_oSimManagerSim Manager.
void clTestStochasticMort::Run2 ( clSimManager *  p_oSimManager)

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.

Parameters
p_oSimManagerSim Manager.
void clTestStochasticMort::TestStochasticMortality ( )

Gathers tests into a single function.

const 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.
const 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: