javawrapper::TestGrowthBehaviors Class Reference

Tests the GrowthBehaviors class. More...

Inheritance diagram for javawrapper::TestGrowthBehaviors:

javawrapper::ModelTestCase List of all members.

Public Member Functions

void testDoSetup ()
 This test makes sure that lambdas are reset correctly if species are changed.
void testFormatDataForDisplay ()
 Tests that the correct parameters are displayed for each behavior.
void testReadParFile ()
 Makes sure that nci lambda values are correctly read from parameter file.
void testValidateData ()
 Tests ValidateData().

Protected Member Functions

void setUp () throws Exception
 Does setup
Exceptions:
Exception Not expected to happen.

String WriteXMLValidFile1 () throws java.io.IOException
 Writes a valid PR NCI growth file, Diam with auto height.
String WriteXMLValidFile2 () throws java.io.IOException
 Writes a valid NCI growth file, Diam only.
String WriteXMLErrorFile1 () throws java.io.IOException
 Creates error file 1.
String WriteXMLErrorFile2 () throws java.io.IOException
 Creates error file 2.
String WriteXMLErrorFile3 () throws java.io.IOException
 Creates error file 3.
String WriteXMLErrorFile4 () throws java.io.IOException
 Creates error file 4.
String WriteXMLErrorFile5 () throws java.io.IOException
 Creates error file 5.
String WriteXMLErrorFile6 () throws java.io.IOException
 Creates error file 6.
String WriteXMLErrorFile7 () throws java.io.IOException
 Creates error file 7.
String WriteXMLErrorFile8 () throws java.io.IOException
 Creates error file 8.
String WriteXMLErrorFile9 () throws java.io.IOException
 Creates error file 9.
String WriteXMLErrorFile10 () throws java.io.IOException
 Creates error file 10.
String WriteXMLErrorFile11 () throws java.io.IOException
 Creates error file 11.
String WriteXMLErrorFile12 () throws java.io.IOException
 Creates error file 12.
String WriteXMLErrorFile13 () throws java.io.IOException
 Creates error file 13.
String WriteXMLErrorFile14 () throws java.io.IOException
 Creates error file 14.
String WriteXMLErrorFile15 () throws java.io.IOException
 Creates error file 15.
String WriteXMLErrorFile16 () throws java.io.IOException
 Creates error file 16.
String WriteXMLErrorFile17 () throws java.io.IOException
 Creates error file 17.
String WriteXMLErrorFile18 () throws java.io.IOException
 Creates error file 18.
String WriteNoGrowthXMLFile1 () throws java.io.IOException
 Writes a file with no growth settings.

Private Member Functions

void WriteValidateFilePart1 (FileWriter oOut) throws java.io. IOException
 Writes the common first part of parameter files.
void WriteBehaviorListDiamAuto (FileWriter oOut) throws java.io. IOException
 Writes a behavior list for diameter NCI growth with auto height.
void WriteBehaviorListDiamOnly (FileWriter oOut) throws java.io. IOException
 Writes a behavior list for diameter only NCI growth.
void WriteNCIMaxCrowdingRadius (FileWriter oOut) throws java.io. IOException
 Writes NCI max crowding radius parameter.
void WriteNCIMinNeighborDBH (FileWriter oOut) throws java.io. IOException
 Writes NCI minimum neighbor DBH parameter.
void WriteNCINeighborDBHEffect (FileWriter oOut) throws java.io. IOException
 Writes NCI neighbor DBH effect parameter.
void WriteNCINeighborDistEffect (FileWriter oOut) throws java.io. IOException
 Writes NCI neighbor distance effect parameter.
void WriteNCIMaxPotentialGrowth (FileWriter oOut) throws java.io. IOException
 Writes NCI max potential growth parameter.
void WriteNCISizeSensNCI (FileWriter oOut) throws java.io. IOException
 Writes NCI size sensitivity parameter.
void WriteNCISizeEffectMode (FileWriter oOut) throws java.io. IOException
 Writes NCI size effect mode parameter.
void WriteNCISizeEffectVar (FileWriter oOut) throws java.io. IOException
 Writes NCI size effect variance parameter.
void WriteNCISlope (FileWriter oOut) throws java.io.IOException
 Writes NCI slope parameter.
void WriteNCISteepness (FileWriter oOut) throws java.io.IOException
 Writes NCI steepness parameter.
void WriteNCIStormEffMedDmg (FileWriter oOut) throws java.io. IOException
 Writes NCI storm effect medium damage parameter.
void WriteNCIStormEffFullDmg (FileWriter oOut) throws java.io. IOException
 Writes NCI storm effect full damage parameter.
void WriteNCINeighStormEffMedDmg (FileWriter oOut) throws java.io. IOException
 Writes NCI neighbor storm effect medium damage parameter.
void WriteNCINeighStormEffFullDmg (FileWriter oOut) throws java.io. IOException
 Writes NCI neighbor storm effect full damage parameter.
void WriteNCIShadingCoefficient (FileWriter oOut) throws java.io. IOException
 Writes NCI shading coefficient parameter.
void WriteNCIShadingExponent (FileWriter oOut) throws java.io. IOException
 Writes NCI shading exponent parameter.
void WriteNCILambdas (FileWriter oOut) throws java.io.IOException
 Writes NCI lambdas parameter.
void WriteValidFileEnd (FileWriter oOut) throws java.io.IOException
 Writes the end for a valid parameter file.
void WriteErrorFile1End (FileWriter oOut) throws java.io.IOException
 Writes an error condition where max radius of neighbor Effects is < 0.
void WriteErrorFile2End (FileWriter oOut) throws java.io.IOException
 Writes an error condition where max growth for a species is < 0.
void WriteErrorFile3End (FileWriter oOut) throws java.io.IOException
 Writes an error condition where Xb for a species = 0.
void WriteErrorFile4End (FileWriter oOut) throws java.io.IOException
 Writes an error condition where X0 for a species = 0.
void WriteErrorFile5End (FileWriter oOut) throws java.io.IOException
 Writes an error condition where med.
void WriteErrorFile6End (FileWriter oOut) throws java.io.IOException
 Writes an error condition where full damage eta for a species is not a proportion.
void WriteErrorFile7End (FileWriter oOut) throws java.io.IOException
 Writes an error condition where med.
void WriteErrorFile8End (FileWriter oOut) throws java.io.IOException
 Writes an error condition where full damage storm Effect for a species is not a proportion.
void WriteErrorFile9End (FileWriter oOut) throws java.io.IOException
 Writes an error condition where minimum neighbor DBH is less than 0.

Private Attributes

TreePopulation m_oPop = null
 Tree population object for spending.

Detailed Description

Tests the GrowthBehaviors 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::TestGrowthBehaviors::WriteBehaviorListDiamAuto ( FileWriter  oOut  )  throws java.io. IOException [inline, private]

Writes a behavior list for diameter NCI growth with auto height.

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

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

Writes a behavior list for diameter only NCI growth.

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

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

Writes an error condition where max radius of neighbor Effects is < 0.

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

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

Writes an error condition where max growth for a species is < 0.

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

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

Writes an error condition where Xb for a species = 0.

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

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

Writes an error condition where X0 for a species = 0.

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

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

Writes an error condition where med.

damage eta for a species is not a proportion.

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

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

Writes an error condition where full damage eta for a species is not a proportion.

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

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

Writes an error condition where med.

damage storm Effect for a species is not a proportion.

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

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

Writes an error condition where full damage storm Effect for a species is not a proportion.

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

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

Writes an error condition where minimum neighbor DBH is less than 0.

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

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

Writes NCI lambdas parameter.

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

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

Writes NCI max crowding radius parameter.

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

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

Writes NCI max potential growth parameter.

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

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

Writes NCI minimum neighbor DBH parameter.

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

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

Writes NCI neighbor DBH effect parameter.

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

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

Writes NCI neighbor distance effect parameter.

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

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

Writes NCI neighbor storm effect full damage parameter.

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

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

Writes NCI neighbor storm effect medium damage parameter.

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

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

Writes NCI shading coefficient parameter.

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

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

Writes NCI shading exponent parameter.

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

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

Writes NCI size effect mode parameter.

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

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

Writes NCI size effect variance parameter.

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

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

Writes NCI size sensitivity parameter.

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

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

Writes NCI slope parameter.

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

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

Writes NCI steepness parameter.

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

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

Writes NCI storm effect full damage parameter.

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

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

Writes NCI storm effect medium damage parameter.

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

String javawrapper::TestGrowthBehaviors::WriteNoGrowthXMLFile1 (  )  throws java.io.IOException [inline, protected]

Writes a file with no growth settings.

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

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

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

Writes the common first part of parameter files.

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

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

Writes the end for a valid parameter file.

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

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

Creates error file 1.

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

String javawrapper::TestGrowthBehaviors::WriteXMLErrorFile10 (  )  throws java.io.IOException [inline, protected]

Creates error file 10.

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

String javawrapper::TestGrowthBehaviors::WriteXMLErrorFile11 (  )  throws java.io.IOException [inline, protected]

Creates error file 11.

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

String javawrapper::TestGrowthBehaviors::WriteXMLErrorFile12 (  )  throws java.io.IOException [inline, protected]

Creates error file 12.

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

String javawrapper::TestGrowthBehaviors::WriteXMLErrorFile13 (  )  throws java.io.IOException [inline, protected]

Creates error file 13.

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

String javawrapper::TestGrowthBehaviors::WriteXMLErrorFile14 (  )  throws java.io.IOException [inline, protected]

Creates error file 14.

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

String javawrapper::TestGrowthBehaviors::WriteXMLErrorFile15 (  )  throws java.io.IOException [inline, protected]

Creates error file 15.

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

String javawrapper::TestGrowthBehaviors::WriteXMLErrorFile16 (  )  throws java.io.IOException [inline, protected]

Creates error file 16.

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

String javawrapper::TestGrowthBehaviors::WriteXMLErrorFile17 (  )  throws java.io.IOException [inline, protected]

Creates error file 17.

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

String javawrapper::TestGrowthBehaviors::WriteXMLErrorFile18 (  )  throws java.io.IOException [inline, protected]

Creates error file 18.

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

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

Creates error file 2.

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

String javawrapper::TestGrowthBehaviors::WriteXMLErrorFile3 (  )  throws java.io.IOException [inline, protected]

Creates error file 3.

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

String javawrapper::TestGrowthBehaviors::WriteXMLErrorFile4 (  )  throws java.io.IOException [inline, protected]

Creates error file 4.

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

String javawrapper::TestGrowthBehaviors::WriteXMLErrorFile5 (  )  throws java.io.IOException [inline, protected]

Creates error file 5.

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

String javawrapper::TestGrowthBehaviors::WriteXMLErrorFile6 (  )  throws java.io.IOException [inline, protected]

Creates error file 6.

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

String javawrapper::TestGrowthBehaviors::WriteXMLErrorFile7 (  )  throws java.io.IOException [inline, protected]

Creates error file 7.

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

String javawrapper::TestGrowthBehaviors::WriteXMLErrorFile8 (  )  throws java.io.IOException [inline, protected]

Creates error file 8.

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

String javawrapper::TestGrowthBehaviors::WriteXMLErrorFile9 (  )  throws java.io.IOException [inline, protected]

Creates error file 9.

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

String javawrapper::TestGrowthBehaviors::WriteXMLValidFile1 (  )  throws java.io.IOException [inline, protected]

Writes a valid PR NCI growth file, Diam with auto height.

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

Edit history:
------------------
September 6, 2004: Created (LEM)

String javawrapper::TestGrowthBehaviors::WriteXMLValidFile2 (  )  throws java.io.IOException [inline, protected]

Writes a valid NCI growth file, Diam only.

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


The documentation for this class was generated from the following file:
Generated on Wed Nov 29 08:45:07 2006 for SORTIE Java Interface by  doxygen 1.4.7