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 testChangeOfSpecies ()
 This makes sure that species change is handled gracefully.
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.
void tearDown () throws Exception
 Does tear down.
void WriteGLIPointsFile (String sFileName) throws java.io.IOException
 Writes a GLI points 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.
String WriteAllLightXMLFile () throws java.io.IOException
 Writes a file with all light stuff, for testing species change.

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.setUp (  )  throws Exception [protected]

Does set up by creating the tree population object.

Exceptions:
Exception Won't do it.

void javawrapper.TestLightBehaviors.tearDown (  )  throws Exception [protected]

Does tear down.

Exceptions:
Exception Won't do it.

void javawrapper.TestLightBehaviors.testValidateData (  ) 

Tests validate data.

void javawrapper.TestLightBehaviors.testChangeOfSpecies (  ) 

This makes sure that species change is handled gracefully.

void javawrapper.TestLightBehaviors.testReadParFile (  ) 

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.testFormatDataForDisplay (  ) 

Tests that the correct parameters are displayed for each behavior.

void javawrapper.TestLightBehaviors.WriteGLIPointsFile ( String  sFileName  )  throws java.io.IOException [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.WriteXMLFile1 (  )  throws java.io.IOException [protected]

Writes a file with only gli light settings.

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

String javawrapper.TestLightBehaviors.WriteXMLFile2 (  )  throws java.io.IOException [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 [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 [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 [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 [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 [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)

void javawrapper.TestLightBehaviors.WriteValidateFilePart1 ( java.io.FileWriter  oOut  )  throws java.io. IOException [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.WriteNoLightXMLFile1 (  )  throws java.io.IOException [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)

String javawrapper.TestLightBehaviors.WriteXMLErrorFile1 (  )  throws java.io.IOException [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 [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.WriteAllLightXMLFile (  )  throws java.io.IOException [protected]

Writes a file with all light stuff, for testing species change.

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


Member Data Documentation

Tree population object for testing.


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

Generated on Wed Oct 28 14:01:25 2009 for SORTIE Java Interface by  doxygen 1.5.6