javawrapper.TestAnalysisBehaviors Class Reference

Tests the AnalysisBehaviors class. More...

Inheritance diagram for javawrapper.TestAnalysisBehaviors:

javawrapper.ModelTestCase

List of all members.

Public Member Functions

void testRipleysKGridChange ()
 Makes sure that changes in user parameters are correctly reflected in the Ripley's K grid and any output settings that may have been made from that grid.
void testRelativeNeighborhoodDensityGridChange ()
 Makes sure that changes in user parameters are correctly reflected in the Relative Neighborhood Density grid and any output settings that may have been made from that grid.
void testReadXMLVolumeSettings ()
 Tests reading of parameter file XML volume calculator settings.
void testReadXMLBoleVolumeSettings ()
 Tests reading of parameter file XML bole volume calculator settings.
void testReadXMLDimensionAnalysisSettings ()
 Tests reading of parameter file XML dimension analysis calculator settings.
void testReadRipleysKSettings ()
 Tests reading of parameter file XML Ripley's K calculator settings.
void testReadConditsOmegaSettings ()
 Tests reading of parameter file XML Condit's Omega (Relative Neighborhood Density) calculator settings.
void testChangeOfSpecies ()
 Tests species changes.
void testReadPartitionedBiomassSettings ()
 Tests reading parameter file values for partitioned biomass, including 6.8 backwards compatibility.
void testReadFoliarChemistrySettings ()
 Tests reading parameter file values for foliar chemistry.
void testFormatDataForDisplay ()
 Tests to make sure the appropriate parameters are displayed for each behavior.
void testValidateData () throws ModelException
 Tests ValidateData() for data analysis behaviors.

Protected Member Functions

String WriteVolumeXMLFile1 () throws IOException
 Writes a valid file for testing parameter file reading of volume calculator behavior parameters.
String WritePartitionedBiomassXMLFile1 () throws IOException
 Writes a valid file for testing parameter file reading of partitioned biomass behavior parameters.
String WriteFoliarChemistryXMLFile1 () throws IOException
 Writes a valid file for testing parameter file reading of foliar chemistry behavior parameters.
String WriteRipleysKXMLFile1 () throws IOException
 Writes a valid file for testing parameter file reading of Ripley's K calculator behavior parameters.
String WriteConditsOmegaXMLFile1 () throws IOException
 Writes a valid file for testing parameter file reading of Relative Neighborhood Density calculator (Condit's Omega) behavior parameters.
String WriteComboXMLFile1 () throws IOException
 Writes a file with multiple analysis behaviors represented.
String Write68PartitionedBiomassXMLFile () throws IOException
 Writes a file with 6.8 partitioned biomass parameters, to test backwards compatibility.
String WriteBoleVolumeXMLFile1 () throws java.io.IOException
 Writes a valid file for testing parameter file reading of bole volume calculator behavior parameters.
String WriteDimensionAnalysisXMLFile1 () throws java.io.IOException
 Writes a valid file for testing parameter file reading of dimension analysis behavior parameters.
String WriteVolumeXMLErrorFile1 () throws java.io.IOException
 Writes a file where the stump height is a negative number.
String WriteVolumeXMLErrorFile2 () throws java.io.IOException
 Writes a file where the minimum usable diameter is a negative number.
String WriteVolumeXMLErrorFile3 () throws java.io.IOException
 Writes a file where the segment length is a negative number.
String WriteBoleVolumeErrorXMLFile1 () throws IOException
 Writes an error file for testing parameter file reading of bole volume calculator behavior parameters.
String WriteBoleVolumeErrorXMLFile2 () throws java.io.IOException
 Writes an error file for testing parameter file reading of bole volume calculator behavior parameters.
String WriteNeutralFile () throws IOException
 Writes a file with no analysis behaviors.

Private Member Functions

void WriteVolumeCommonStuff (FileWriter oOut) throws IOException
 Writes common stuff for parameter files validating the volume calculator behavior.
void WriteBoleVolumeCommonStuff (FileWriter oOut) throws java.io. IOException
 Writes common stuff for parameter files validating the bole volume calculator behavior.
void WriteDimensionAnalysisCommonStuff (FileWriter oOut) throws java.io. IOException
 Writes common stuff for parameter files validating the dimension analysis behavior.
void WritePlotAndTrees (FileWriter oOut) throws IOException
 Writes plot and trees with three species.


Detailed Description

Tests the AnalysisBehaviors class.

Copyright: Copyright (c) Charles D. Canham 2003 Company: Institute of Ecosystem Studies

Author:
Lora E. Murphy
Version:
1.0

Member Function Documentation

void javawrapper.TestAnalysisBehaviors.testRipleysKGridChange (  ) 

Makes sure that changes in user parameters are correctly reflected in the Ripley's K grid and any output settings that may have been made from that grid.

void javawrapper.TestAnalysisBehaviors.testRelativeNeighborhoodDensityGridChange (  ) 

Makes sure that changes in user parameters are correctly reflected in the Relative Neighborhood Density grid and any output settings that may have been made from that grid.

void javawrapper.TestAnalysisBehaviors.testReadXMLVolumeSettings (  ) 

Tests reading of parameter file XML volume calculator settings.

void javawrapper.TestAnalysisBehaviors.testReadXMLBoleVolumeSettings (  ) 

Tests reading of parameter file XML bole volume calculator settings.

void javawrapper.TestAnalysisBehaviors.testReadXMLDimensionAnalysisSettings (  ) 

Tests reading of parameter file XML dimension analysis calculator settings.

void javawrapper.TestAnalysisBehaviors.testReadRipleysKSettings (  ) 

Tests reading of parameter file XML Ripley's K calculator settings.

void javawrapper.TestAnalysisBehaviors.testReadConditsOmegaSettings (  ) 

Tests reading of parameter file XML Condit's Omega (Relative Neighborhood Density) calculator settings.

void javawrapper.TestAnalysisBehaviors.testChangeOfSpecies (  ) 

Tests species changes.

Even though AnalysisBehaviors doesn't explicitly have code for changing species, this makes sure that it is treated correctly.

void javawrapper.TestAnalysisBehaviors.testReadPartitionedBiomassSettings (  ) 

Tests reading parameter file values for partitioned biomass, including 6.8 backwards compatibility.

void javawrapper.TestAnalysisBehaviors.testReadFoliarChemistrySettings (  ) 

Tests reading parameter file values for foliar chemistry.

void javawrapper.TestAnalysisBehaviors.testFormatDataForDisplay (  ) 

Tests to make sure the appropriate parameters are displayed for each behavior.

void javawrapper.TestAnalysisBehaviors.testValidateData (  )  throws ModelException

Tests ValidateData() for data analysis behaviors.

Exceptions:
ModelException if the validation happens incorrectly.

String javawrapper.TestAnalysisBehaviors.WriteVolumeXMLFile1 (  )  throws IOException [protected]

Writes a valid file for testing parameter file reading of volume calculator behavior parameters.

Returns:
String Filename written.
Exceptions:
IOException if there is a problem writing the file.

String javawrapper.TestAnalysisBehaviors.WritePartitionedBiomassXMLFile1 (  )  throws IOException [protected]

Writes a valid file for testing parameter file reading of partitioned biomass behavior parameters.

Returns:
String Filename written.
Exceptions:
IOException if there is a problem writing the file.

String javawrapper.TestAnalysisBehaviors.WriteFoliarChemistryXMLFile1 (  )  throws IOException [protected]

Writes a valid file for testing parameter file reading of foliar chemistry behavior parameters.

Returns:
String Filename written.
Exceptions:
IOException if there is a problem writing the file.

String javawrapper.TestAnalysisBehaviors.WriteRipleysKXMLFile1 (  )  throws IOException [protected]

Writes a valid file for testing parameter file reading of Ripley's K calculator behavior parameters.

Returns:
String Filename written.
Exceptions:
IOException if there is a problem writing the file.

String javawrapper.TestAnalysisBehaviors.WriteConditsOmegaXMLFile1 (  )  throws IOException [protected]

Writes a valid file for testing parameter file reading of Relative Neighborhood Density calculator (Condit's Omega) behavior parameters.

Returns:
String Filename written.
Exceptions:
IOException if there is a problem writing the file.

String javawrapper.TestAnalysisBehaviors.WriteComboXMLFile1 (  )  throws IOException [protected]

Writes a file with multiple analysis behaviors represented.

Returns:
String Filename written.
Exceptions:
IOException if there is a problem writing the file.

String javawrapper.TestAnalysisBehaviors.Write68PartitionedBiomassXMLFile (  )  throws IOException [protected]

Writes a file with 6.8 partitioned biomass parameters, to test backwards compatibility.

Returns:
String Filename written.
Exceptions:
IOException if there is a problem writing the file.

String javawrapper.TestAnalysisBehaviors.WriteBoleVolumeXMLFile1 (  )  throws java.io.IOException [protected]

Writes a valid file for testing parameter file reading of bole volume calculator behavior parameters.

Returns:
String Filename written.
Exceptions:
IOException if there is a problem writing the file.

String javawrapper.TestAnalysisBehaviors.WriteDimensionAnalysisXMLFile1 (  )  throws java.io.IOException [protected]

Writes a valid file for testing parameter file reading of dimension analysis behavior parameters.

Returns:
String Filename written.
Exceptions:
IOException if there is a problem writing the file.

String javawrapper.TestAnalysisBehaviors.WriteVolumeXMLErrorFile1 (  )  throws java.io.IOException [protected]

Writes a file where the stump height is a negative number.

Tests volume calculator behavior validation.

Returns:
String Filename written.
Exceptions:
IOException if there is a problem writing the file.

String javawrapper.TestAnalysisBehaviors.WriteVolumeXMLErrorFile2 (  )  throws java.io.IOException [protected]

Writes a file where the minimum usable diameter is a negative number.

Tests volume calculator behavior validation.

Returns:
String Filename written.
Exceptions:
IOException if there is a problem writing the file.

String javawrapper.TestAnalysisBehaviors.WriteVolumeXMLErrorFile3 (  )  throws java.io.IOException [protected]

Writes a file where the segment length is a negative number.

Tests volume calculator behavior validation.

Returns:
String Filename written.
Exceptions:
IOException if there is a problem writing the file.

String javawrapper.TestAnalysisBehaviors.WriteBoleVolumeErrorXMLFile1 (  )  throws IOException [protected]

Writes an error file for testing parameter file reading of bole volume calculator behavior parameters.

This has a form class of less than 60.

Returns:
String Filename written.
Exceptions:
IOException if there is a problem writing the file.

String javawrapper.TestAnalysisBehaviors.WriteBoleVolumeErrorXMLFile2 (  )  throws java.io.IOException [protected]

Writes an error file for testing parameter file reading of bole volume calculator behavior parameters.

This has a form class of more than 100.

Returns:
String Filename written.
Exceptions:
IOException if there is a problem writing the file.

void javawrapper.TestAnalysisBehaviors.WriteVolumeCommonStuff ( FileWriter  oOut  )  throws IOException [private]

Writes common stuff for parameter files validating the volume calculator behavior.

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

void javawrapper.TestAnalysisBehaviors.WriteBoleVolumeCommonStuff ( FileWriter  oOut  )  throws java.io. IOException [private]

Writes common stuff for parameter files validating the bole volume calculator behavior.

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

void javawrapper.TestAnalysisBehaviors.WriteDimensionAnalysisCommonStuff ( FileWriter  oOut  )  throws java.io. IOException [private]

Writes common stuff for parameter files validating the dimension analysis behavior.

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

String javawrapper.TestAnalysisBehaviors.WriteNeutralFile (  )  throws IOException [protected]

Writes a file with no analysis behaviors.

Returns:
String Filename written.
Exceptions:
IOException if there is a problem writing the file.

void javawrapper.TestAnalysisBehaviors.WritePlotAndTrees ( FileWriter  oOut  )  throws IOException [private]

Writes plot and trees with three species.

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


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

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