Class TreeInventory

java.lang.Object
  |
  +--TreeInventory

public class TreeInventory
extends java.lang.Object


Constructor Summary
TreeInventory(java.lang.String fileName)
          The constructor.
 
Method Summary
static void main(java.lang.String[] args)
          This is the test program.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TreeInventory

public TreeInventory(java.lang.String fileName)
The constructor. It creates an inventory of Trees from a file. You do not need to be concerned with its implementation.
Method Detail

main

public static void main(java.lang.String[] args)
This is the test program. It takes two paramters: It will create a TreeInventory from the supplied inventory file and then create from it a LinkedList of Trees not larger than the supplied maximum height. For example: java TreeInventory datafiles/inventory1.dat 5