SORTIE C++ Test Documentation
|
Tests the clStochasticMort class. More...
#include <TestStochasticMort.h>
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. | |
Tests the clStochasticMort class.
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.
p_oSimManager | Sim 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.
p_oSimManager | Sim Manager. |
void clTestStochasticMort::TestStochasticMortality | ( | ) |
Gathers tests into a single function.
|
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.
|
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.