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

Tests the clInsectInfestationMortality class. More...

#include <TestInsectInfestationMortality.h>

Inheritance diagram for clTestInsectInfestationMortality:

Public Member Functions

void TestInsectInfestationMortality ()
 This puts all mortality tests into a single function.
 

Protected Member Functions

void NormalProcessingRun1 (clSimManager *p_oSimManager)
 Tests normal processing run 1.
 
void ErrorProcessing (clSimManager *p_oSimManager)
 Tests error processing.
 
const char * WriteXMLFile1 ()
 Writes a parameter file for normal processing run 1.
 
const char * WriteXMLErrorFile1 ()
 Writes a parameter file where a value for mortality probability intercept is not between 0 and 1.
 
const char * WriteXMLErrorFile2 ()
 Writes a parameter file where a value for max mortality probability is not between 0 and 1.
 
const char * WriteXMLErrorFile3 ()
 Writes a parameter file where there is no insect infestation behavior.
 
const char * WriteXMLErrorFile4 ()
 Writes a parameter file where a value for X0 is 0.
 
void WriteErrorCommonStuff (std::fstream &oOut)
 Writes common portions of the test parameter files.
 

Detailed Description

Tests the clInsectInfestationMortality class.

Member Function Documentation

void clTestInsectInfestationMortality::ErrorProcessing ( clSimManager *  p_oSimManager)
protected

Tests error processing.

Inputs error files to make sure the errors are caught.

void clTestInsectInfestationMortality::NormalProcessingRun1 ( clSimManager *  p_oSimManager)
protected

Tests normal processing run 1.

WriteXMLFile1() does setup.

Parameters
p_oSimManagerSim manager object for doing the run.
void clTestInsectInfestationMortality::TestInsectInfestationMortality ( )

This puts all mortality tests into a single function.

void clTestInsectInfestationMortality::WriteErrorCommonStuff ( std::fstream &  oOut)
protected

Writes common portions of the test parameter files.

This starts with <randomSeed> and ends with </allometry>.

Parameters
oOutFile stream to write to.
const char* clTestInsectInfestationMortality::WriteXMLErrorFile1 ( )
protected

Writes a parameter file where a value for mortality probability intercept is not between 0 and 1.

Returns
Filename written.
const char* clTestInsectInfestationMortality::WriteXMLErrorFile2 ( )
protected

Writes a parameter file where a value for max mortality probability is not between 0 and 1.

Returns
Filename written.
const char* clTestInsectInfestationMortality::WriteXMLErrorFile3 ( )
protected

Writes a parameter file where there is no insect infestation behavior.

Returns
Filename written.
const char* clTestInsectInfestationMortality::WriteXMLErrorFile4 ( )
protected

Writes a parameter file where a value for X0 is 0.

Returns
Filename written.
const char* clTestInsectInfestationMortality::WriteXMLFile1 ( )
protected

Writes a parameter file for normal processing run 1.

Returns
Filename written.

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