javawrapper::TestLightBehaviors Class Reference

Tests the LightBehaviors class. More...

Inheritance diagram for javawrapper::TestLightBehaviors:

javawrapper::ModelTestCase List of all members.

Public Member Functions

void testValidateData ()
 Tests validate data.
void testReadParFile ()
 Makes sure that light values are assigned correctly from the parameter file for gli and quadrat light.
void testFormatDataForDisplay ()
 Tests that the correct parameters are displayed for each behavior.

Protected Member Functions

void setUp () throws Exception
 Does set up by creating the tree population object
Exceptions:
Exception Won't do it.

void tearDown () throws Exception
 Does tear down
Exceptions:
Exception Won't do it.

void WriteGLIPointsFile (String sFileName) throws java.io.IOException
 Writes a GLI points file
Exceptions:
IOException if there is a problem writing the file.

String WriteXMLFile1 () throws java.io.IOException
 Writes a file with only gli light settings.
String WriteXMLFile2 () throws java.io.IOException
 Writes a file with only quadrat light settings.
String WriteXMLFile3 () throws java.io.IOException
 Writes a file with both quadrat and gli light settings, as well as many other light behaviors in the "other" category.
String WriteXMLFile4 () throws java.io.IOException
 Writes a file with neither quadrat and gli light settings, but with puerto rico establishment.
String WriteXMLFile5 () throws java.io.IOException
 Writes a file with both quadrat and gli light settings, and pr establishment as well.
String WriteXMLFile6 () throws java.io.IOException
 Writes a file with only gli map settings.
String WriteXMLFile7 () throws java.io.IOException
 Writes a file with only gli point settings.
String WriteNoLightXMLFile1 () throws java.io.IOException
 Writes a file with no light settings.
String WriteXMLErrorFile1 () throws java.io.IOException
 Writes a file with average light but no GLI Map behavior.
String WriteXMLErrorFile2 () throws java.io.IOException
 Writes a file with the GLI map behavior after the average light behavior.

Private Member Functions

void WriteValidateFilePart1 (java.io.FileWriter oOut) throws java.io. IOException
 Writes the beginning of test parameter files.

Private Attributes

TreePopulation m_oPop = null
 Tree population object for testing.

Detailed Description

Tests the LightBehaviors class.

Copyright: Copyright (c) Charles D. Canham 2003

Company: Institute of Ecosystem Studies

Author:
Lora E. Murphy
Version:
1.0

Edit history:
------------------
April 28, 2004: Submitted in beta version (LEM)


Member Function Documentation

void javawrapper::TestLightBehaviors::testReadParFile (  )  [inline]

Makes sure that light values are assigned correctly from the parameter file for gli and quadrat light.

It makes sure they are cross-assigned correctly, don't get mixed up, and don't get mixed up with other behaviors which use light parameters.

void javawrapper::TestLightBehaviors::WriteGLIPointsFile ( String  sFileName  )  throws java.io.IOException [inline, protected]

Writes a GLI points file

Exceptions:
IOException if there is a problem writing the file.

Parameters:
sFileName The file name to write to

String javawrapper::TestLightBehaviors::WriteNoLightXMLFile1 (  )  throws java.io.IOException [inline, protected]

Writes a file with no light settings.

Returns:
The file name.
Exceptions:
IOException if there is a problem writing the file.

Edit history:
------------------
August 14, 2006: Created (LEM)

void javawrapper::TestLightBehaviors::WriteValidateFilePart1 ( java.io.FileWriter  oOut  )  throws java.io. IOException [inline, private]

Writes the beginning of test parameter files.

Parameters:
oOut FileWriter Filestream to write to.
Exceptions:
IOException if there is a problem writing the file.

String javawrapper::TestLightBehaviors::WriteXMLErrorFile1 (  )  throws java.io.IOException [inline, protected]

Writes a file with average light but no GLI Map behavior.

Returns:
The file name.
Exceptions:
IOException if there is a problem writing the file.

Edit history:
------------------
September 11, 2006: Created (LEM)

String javawrapper::TestLightBehaviors::WriteXMLErrorFile2 (  )  throws java.io.IOException [inline, protected]

Writes a file with the GLI map behavior after the average light behavior.

Returns:
The file name.
Exceptions:
IOException if there is a problem writing the file.

Edit history:
------------------
January 7, 2005: Created (LEM)

String javawrapper::TestLightBehaviors::WriteXMLFile1 (  )  throws java.io.IOException [inline, protected]

Writes a file with only gli light settings.

Returns:
The file name.
Exceptions:
IOException if there is a problem writing the file.

Edit history:
------------------
January 7, 2005: Created (LEM)

String javawrapper::TestLightBehaviors::WriteXMLFile2 (  )  throws java.io.IOException [inline, protected]

Writes a file with only quadrat light settings.

Returns:
The file name.
Exceptions:
IOException if there is a problem writing the file.

Edit history:
------------------
January 7, 2005: Created (LEM)

String javawrapper::TestLightBehaviors::WriteXMLFile3 (  )  throws java.io.IOException [inline, protected]

Writes a file with both quadrat and gli light settings, as well as many other light behaviors in the "other" category.

Returns:
The file name.
Exceptions:
IOException if there is a problem writing the file.

Edit history:
------------------
January 7, 2005: Created (LEM)

String javawrapper::TestLightBehaviors::WriteXMLFile4 (  )  throws java.io.IOException [inline, protected]

Writes a file with neither quadrat and gli light settings, but with puerto rico establishment.

Returns:
The file name.
Exceptions:
IOException if there is a problem writing the file.

Edit history:
------------------
January 7, 2005: Created (LEM)

String javawrapper::TestLightBehaviors::WriteXMLFile5 (  )  throws java.io.IOException [inline, protected]

Writes a file with both quadrat and gli light settings, and pr establishment as well.

Returns:
The file name.
Exceptions:
IOException if there is a problem writing the file.

Edit history:
------------------
January 7, 2005: Created (LEM)

String javawrapper::TestLightBehaviors::WriteXMLFile6 (  )  throws java.io.IOException [inline, protected]

Writes a file with only gli map settings.

Returns:
The file name.
Exceptions:
IOException if there is a problem writing the file.

Edit history:
------------------
January 10, 2005: Created (LEM)

String javawrapper::TestLightBehaviors::WriteXMLFile7 (  )  throws java.io.IOException [inline, protected]

Writes a file with only gli point settings.

Returns:
The file name.
Exceptions:
IOException if there is a problem writing the file.

Edit history:
------------------
January 7, 2005: Created (LEM)


The documentation for this class was generated from the following file:
Generated on Fri Jan 5 14:00:39 2007 for SORTIE Java Interface by  doxygen 1.4.7