javawrapper::TestTreePopulation Class Reference

Tests the TreePopulation class. More...

List of all members.

Public Member Functions

void testValidateData ()
 Tests the ValidateData method.
void testTabDelimTreeMapReading ()
 Tests reading a tab delimited tree map.
void testTreeClass ()
 Tests the Tree class.
void testXMLTreeMapReading ()
 Tests reading XML Tree maps.

Protected Member Functions

void VerifyXMLTreeMap (TreePopulation oPop, int iStartIndex)
 Verifies the trees added by the XML Tree map.
String WriteTabTreeMap1 () throws java.io.IOException
 Writes a map to create trees.
String WriteTabTreeMap2 () throws java.io.IOException
 Writes a map to create trees.
String WriteTabTreeMap3 () throws java.io.IOException
 Writes a map to create trees.
String WriteTabTreeMap4 () throws java.io.IOException
 Writes a map to create trees.
String WriteTabTreeMap5 () throws java.io.IOException
 Writes a map with an error.
String WriteTabTreeMap6 () throws java.io.IOException
 Writes a map with an error.
String WriteTabTreeMap7 () throws java.io.IOException
 Writes a map with an error.
String WriteTabTreeMap8 () throws java.io.IOException
 Writes a map with an error.
String WriteTabTreeMap9 () throws java.io.IOException
 Writes a map with an error.
String WriteXMLTreeMap1 () throws ModelException
 Writes a Tree map file.
String WriteXMLTreeMap2 () throws ModelException
 Writes a tree map file.
String WriteErrorXMLTreeMap1 () throws ModelException
 Writes a bad Tree map file.
String WriteErrorXMLTreeMap2 () throws ModelException
 Writes a bad tree map file.
String WriteErrorXMLTreeMap3 () throws ModelException
 Writes a bad Tree map file.
String WriteErrorXMLTreeMap4 () throws ModelException
 Writes a bad tree map file.

Private Member Functions

String WriteTreeMapParFile () throws java.io.IOException
 Writes a parameter file for validating tree map reading.


Detailed Description

Tests the TreePopulation 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::TestTreePopulation::testTabDelimTreeMapReading (  )  [inline]

Tests reading a tab delimited tree map.


Edit history:
------------------
April 28, 2004: Submitted in beta version (LEM)
March 28, 2005: Updated with new tree map format (LEM)

void javawrapper::TestTreePopulation::testTreeClass (  )  [inline]

Tests the Tree class.


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

void javawrapper::TestTreePopulation::testXMLTreeMapReading (  )  [inline]

Tests reading XML Tree maps.


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

void javawrapper::TestTreePopulation::VerifyXMLTreeMap ( TreePopulation  oPop,
int  iStartIndex 
) [inline, protected]

Verifies the trees added by the XML Tree map.

Parameters:
oPop TreePopulation object containing the trees.
iStartIndex The index at which to start verifying the trees.

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

String javawrapper::TestTreePopulation::WriteErrorXMLTreeMap1 (  )  throws ModelException [inline, protected]

Writes a bad Tree map file.

One of the X values is beyond the plot.

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

Edit history:
------------------
July 26, 2004: Created (LEM)

String javawrapper::TestTreePopulation::WriteErrorXMLTreeMap2 (  )  throws ModelException [inline, protected]

Writes a bad tree map file.

One of the X values is negative the plot.

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

Edit history:
------------------
July 26, 2004: Created (LEM)

String javawrapper::TestTreePopulation::WriteErrorXMLTreeMap3 (  )  throws ModelException [inline, protected]

Writes a bad Tree map file.

One of the Y values is beyond the plot.

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

Edit history:
------------------
July 26, 2004: Created (LEM)

String javawrapper::TestTreePopulation::WriteErrorXMLTreeMap4 (  )  throws ModelException [inline, protected]

Writes a bad tree map file.

One of the Y values is beyond the plot.

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

Edit history:
------------------
July 26, 2004: Created (LEM)

String javawrapper::TestTreePopulation::WriteTabTreeMap1 (  )  throws java.io.IOException [inline, protected]

Writes a map to create trees.

This file has no trees.

Returns:
Name of file.
Exceptions:
IOException if there is an IO problem.

Edit history:
------------------
March 28, 2005: Created (LEM)

String javawrapper::TestTreePopulation::WriteTabTreeMap2 (  )  throws java.io.IOException [inline, protected]

Writes a map to create trees.

This file has one tree.

Returns:
Name of file.
Exceptions:
IOException if there is an IO problem.

Edit history:
------------------
March 28, 2005: Created (LEM)

String javawrapper::TestTreePopulation::WriteTabTreeMap3 (  )  throws java.io.IOException [inline, protected]

Writes a map to create trees.

This file has several trees.

Returns:
Name of file.
Exceptions:
IOException if there is an IO problem.

Edit history:
------------------
March 28, 2005: Created (LEM)

String javawrapper::TestTreePopulation::WriteTabTreeMap4 (  )  throws java.io.IOException [inline, protected]

Writes a map to create trees.

This file has several trees, including some outside the plot.

Returns:
Name of file.
Exceptions:
IOException if there is an IO problem.

Edit history:
------------------
March 28, 2005: Created (LEM)

String javawrapper::TestTreePopulation::WriteTabTreeMap5 (  )  throws java.io.IOException [inline, protected]

Writes a map with an error.

This file has an unrecognized species.

Returns:
Name of file.
Exceptions:
IOException if there is an IO problem.

Edit history:
------------------
March 28, 2005: Created (LEM)

String javawrapper::TestTreePopulation::WriteTabTreeMap6 (  )  throws java.io.IOException [inline, protected]

Writes a map with an error.

This file has an unrecognized life history stage.

Returns:
Name of file.
Exceptions:
IOException if there is an IO problem.

Edit history:
------------------
March 28, 2005: Created (LEM)

String javawrapper::TestTreePopulation::WriteTabTreeMap7 (  )  throws java.io.IOException [inline, protected]

Writes a map with an error.

This file has a negative diameter.

Returns:
Name of file.
Exceptions:
IOException if there is an IO problem.

Edit history:
------------------
March 28, 2005: Created (LEM)

String javawrapper::TestTreePopulation::WriteTabTreeMap8 (  )  throws java.io.IOException [inline, protected]

Writes a map with an error.

This file has a negative height.

Returns:
Name of file.
Exceptions:
IOException if there is an IO problem.

Edit history:
------------------
March 28, 2005: Created (LEM)

String javawrapper::TestTreePopulation::WriteTabTreeMap9 (  )  throws java.io.IOException [inline, protected]

Writes a map with an error.

This file has an invalid format.

Returns:
Name of file.
Exceptions:
IOException if there is an IO problem.

Edit history:
------------------
March 28, 2005: Created (LEM)

String javawrapper::TestTreePopulation::WriteTreeMapParFile (  )  throws java.io.IOException [inline, private]

Writes a parameter file for validating tree map reading.

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

String javawrapper::TestTreePopulation::WriteXMLTreeMap1 (  )  throws ModelException [inline, protected]

Writes a Tree map file.

There are all four kinds of data members. This is actually a parameter file with a Tree map in it.

Returns:
The file name.
Exceptions:
ModelException 
Edit history:
------------------
April 28, 2004: Submitted in beta version (LEM)

String javawrapper::TestTreePopulation::WriteXMLTreeMap2 (  )  throws ModelException [inline, protected]

Writes a tree map file.

There are all four kinds of data members, with different codes from those written in WriteXMLTreeMap1. The species list is also in a different order. This does not write a full parameter file, but a fake timestep file.

Returns:
The file name.
Exceptions:
ModelException 
Edit history:
------------------
April 28, 2004: Submitted in beta version (LEM)


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