clTestGLIMap Class Reference

Tests the class clGLIMap. More...

#include <TestGLIMap.h>

List of all members.

Public Member Functions

void TestGLIMap ()
 Rolls all other tests into a single function to call.

Protected Member Functions

void TestGridSetup (clSimManager *p_oSimManager)
 Tests the setup for the "GLI Map" grid.
void TestParameterSetup (clSimManager *p_oSimManager)
 Tests the setup for the parameters.
void TestNormalProcessing (clSimManager *p_oSimManager)
 Makes sure the GLI map is created correctly.
void TestErrorProcessing (clSimManager *p_oSimManager)
 Tests error processing.
char * WriteXMLFile1 ()
 Writes a parameter file to direct testing.
char * WriteXMLFile2 ()
 Writes a parameter file to direct testing.
char * WriteXMLFile3 ()
 Writes a parameter file to direct testing.
char * WriteXMLFile4 ()
 Writes a parameter file to direct testing.
char * WriteXMLFile5 ()
 Writes a parameter file to direct testing.
char * WriteXMLFile6 ()
 Writes a parameter file to direct testing.
char * WriteXMLErrorFile1 ()
 Writes a parameter file to direct error testing.
char * WriteXMLErrorFile2 ()
 Writes a parameter file to direct error testing.
char * WriteXMLErrorFile3 ()
 Writes a parameter file to direct error testing.
void WriteCommonStuff (std::fstream &oOut)
 Writes common portions of the test parameter files (tree pop, plot, etc).


Detailed Description

Tests the class clGLIMap.

<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< TO DO: Prepare a couple of GLI points for an 8 by 8 grid to test GLI when the GLI Map behavior is the only one in the run. Then add them to TestNormalProcessing. <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<


Member Function Documentation

void clTestGLIMap::TestErrorProcessing ( clSimManager *  p_oSimManager  )  [protected]

Tests error processing.

Each of the error files is fed in to make sure that clGLIMap correctly throws an error.

void clTestGLIMap::TestGridSetup ( clSimManager *  p_oSimManager  )  [protected]

Tests the setup for the "GLI Map" grid.

Tests the following conditions:

  1. The "GLI Map" grid is correctly set up when there is no grid setup information in the parameter file. WriteXMLFile1() is used to create the parameter file in question. "GLI Map" should have an 8m X 8m resolution.
  2. The "GLI Map" grid is correctly set up when there is grid setup information in the parameter file. WriteXMLFile2() is used to create the parameter file in question. "GLI Map" should have a 10m X 10m resolution with no map values.

void clTestGLIMap::TestNormalProcessing ( clSimManager *  p_oSimManager  )  [protected]

Makes sure the GLI map is created correctly.

void clTestGLIMap::TestParameterSetup ( clSimManager *  p_oSimManager  )  [protected]

Tests the setup for the parameters.

Tests the following conditions:

  1. The GLI Map behavior is the only light behavior in the list. WriteXMLFile1() creates the parameter file. The brightness array is checked to make sure it has non-zero values.
  2. The GLI Map behavior and the Quadrat GLI Light behavior are both in the list, and the Quadrat GLI Light behavior comes first (meaning the GLI Map behavior can borrow brightness array information from it). WriteXMLFile2() creates the parameter file. The brightness array has non-zero values. The GLI Map has its correct settings for sky grids.
  3. The GLI Map behavior and the Quadrat GLI Light behavior are both in the list, and the Quadrat GLI Light behavior comes second (meaning the GLI Map behavior cannot borrow brightness array information from it). WriteXMLFile3() creates the parameter file. The brightness array has non- zero values. The GLI Map has its correct settings for sky grids.
  4. The GLI Map behavior and the GLI Light behavior are both in the list, and the GLI Light behavior comes first (meaning the GLI Map behavior can borrow brightness array information from it). WriteXMLFile4() creates the parameter file. The brightness array has non-zero values. The GLI Map has its correct settings for sky grids.
  5. The GLI Map behavior and the GLI Light behavior are both in the list, and the GLI Light behavior comes second (meaning the GLI Map behavior cannot borrow brightness array information from it). WriteXMLFile5() creates the parameter file. The brightness array has non-zero values. The GLI Map has its correct settings for sky grids.
  6. The GLI Map behavior and the GLI light behavior are both in the list, the GLI Map behavior comes second, and the light settings are different. WriteXMLFile6() creates the parameter file. The GLI Map behavior is of the right size for its sky grids and contains non-zero values.

void clTestGLIMap::WriteCommonStuff ( std::fstream &  oOut  )  [protected]

Writes common portions of the test parameter files (tree pop, plot, etc).

Parameters:
oOut File stream to write to.

char* clTestGLIMap::WriteXMLErrorFile1 (  )  [protected]

Writes a parameter file to direct error testing.

The number of azimuth grids for GLI Map is less than or equal to 0.

Returns:
Filename written.

char* clTestGLIMap::WriteXMLErrorFile2 (  )  [protected]

Writes a parameter file to direct error testing.

The number of altitude grids for GLI Map is less than or equal to 0.

Returns:
Filename written.

char* clTestGLIMap::WriteXMLErrorFile3 (  )  [protected]

Writes a parameter file to direct error testing.

The height of the GLI photo is less than 0.

Returns:
Filename written.

char* clTestGLIMap::WriteXMLFile1 (  )  [protected]

Writes a parameter file to direct testing.

Returns:
Filename written.

char* clTestGLIMap::WriteXMLFile2 (  )  [protected]

Writes a parameter file to direct testing.

Returns:
Filename written.

char* clTestGLIMap::WriteXMLFile3 (  )  [protected]

Writes a parameter file to direct testing.

Returns:
Filename written.

char* clTestGLIMap::WriteXMLFile4 (  )  [protected]

Writes a parameter file to direct testing.

Returns:
Filename written.

char* clTestGLIMap::WriteXMLFile5 (  )  [protected]

Writes a parameter file to direct testing.

Returns:
Filename written.

char* clTestGLIMap::WriteXMLFile6 (  )  [protected]

Writes a parameter file to direct testing.

Returns:
Filename written.


The documentation for this class was generated from the following file:
Generated on Wed Nov 15 11:27:25 2006 for SORTIE C++ Test Documentation by  doxygen 1.4.7