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

Tests the class clQualityVigorClassifier. More...

#include <TestQualityVigorClassifier.h>

Inheritance diagram for clTestQualityVigorClassifier:

Public Member Functions

void TestQualityVigorClassifier ()
 Performs all the tests from one function.
 

Protected Member Functions

void TestNewAdultAssignment (clSimManager *p_oSimManager)
 Tests normal processing.
 
void TestEvolveClass (clSimManager *p_oSimManager)
 Tests normal processing.
 
void TestClassAssignment (clSimManager *p_oSimManager)
 Tests class assignment.
 
void TestInitialConditions (clSimManager *p_oSimManager)
 Tests class assignment.
 
void TestErrorProcessing (clSimManager *p_oSimManager)
 Tests error processing.
 
const char * WriteXMLFile1 (bool bAddTreeMap)
 Writes the parameter file for normal processing.
 
const char * WriteXMLFile2 ()
 Writes the parameter file for normal processing of initial conditions.
 
const char * WriteXMLFile3 ()
 Writes the parameter file for normal processing of initial conditions.
 
const char * WriteXMLErrorFile1 ()
 Writes an error file where the behavior is applied to not-adults.
 
const char * WriteTextTreeMap1 ()
 Writes a text treemap of trees.
 
const char * WriteTextTreeMap2 ()
 Writes a text treemap of trees.
 

Detailed Description

Tests the class clQualityVigorClassifier.

Member Function Documentation

void clTestQualityVigorClassifier::TestClassAssignment ( clSimManager *  p_oSimManager)
protected

Tests class assignment.

WriteXMLFile1() does setup.

Parameters
p_oSimManager
void clTestQualityVigorClassifier::TestErrorProcessing ( clSimManager *  p_oSimManager)
protected

Tests error processing.

This uses WriteXMLErrorFileX() to introduce errors and makes sure that they are caught.

Parameters
p_oSimManagerSim Manager object to call for runs.
void clTestQualityVigorClassifier::TestEvolveClass ( clSimManager *  p_oSimManager)
protected

Tests normal processing.

WriteXMLFile1() does setup. This directly tests the output from the clQualityVigorClassifier::EvolveVigorQuality function, and also creates adult trees by 1000s to test it indirectly.

Parameters
p_oSimManagerSim Manager object to call for runs.
void clTestQualityVigorClassifier::TestInitialConditions ( clSimManager *  p_oSimManager)
protected

Tests class assignment.

WriteXMLFile2() and WriteXMLFile3() does setup.

Parameters
p_oSimManager
void clTestQualityVigorClassifier::TestNewAdultAssignment ( clSimManager *  p_oSimManager)
protected

Tests normal processing.

WriteXMLFile1() does setup. This creates new adult trees by 1000s to test it indirectly.

Parameters
p_oSimManagerSim Manager object to call for runs.
void clTestQualityVigorClassifier::TestQualityVigorClassifier ( )

Performs all the tests from one function.

const char* clTestQualityVigorClassifier::WriteTextTreeMap1 ( )
protected

Writes a text treemap of trees.

Returns
Filename written.
const char* clTestQualityVigorClassifier::WriteTextTreeMap2 ( )
protected

Writes a text treemap of trees.

Returns
Filename written.
const char* clTestQualityVigorClassifier::WriteXMLErrorFile1 ( )
protected

Writes an error file where the behavior is applied to not-adults.

Returns
Filename written.
const char* clTestQualityVigorClassifier::WriteXMLFile1 ( bool  bAddTreeMap)
protected

Writes the parameter file for normal processing.

Parameters
bAddTreeMapWhether to add the tag for the text tree map.
Returns
Filename written.
const char* clTestQualityVigorClassifier::WriteXMLFile2 ( )
protected

Writes the parameter file for normal processing of initial conditions.

Returns
Filename written.
const char* clTestQualityVigorClassifier::WriteXMLFile3 ( )
protected

Writes the parameter file for normal processing of initial conditions.

Returns
Filename written.

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