commandline.Encoder.dynamicProg
Class TreeBuilder

java.lang.Object
  extended by commandline.Encoder.dynamicProg.TreeBuilder

public class TreeBuilder
extends java.lang.Object

Class that copys the structure gathered in a node into a Tree-object

Author:
ward

Constructor Summary
TreeBuilder(java.util.ArrayList<Triangle> root, java.util.LinkedList<Node> linkedList)
          Accepts a series of rootTriangles and a LinkedList structure to store the triangles to be processed
TreeBuilder(GeometricObject root, int rootlevel, java.util.LinkedList<Node> linkedList)
           
 
Method Summary
 void buildTree()
          builds the tree object
 Tree getTree()
          returns the Tree-object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TreeBuilder

public TreeBuilder(java.util.ArrayList<Triangle> root,
                   java.util.LinkedList<Node> linkedList)
Accepts a series of rootTriangles and a LinkedList structure to store the triangles to be processed

Parameters:
rootTriangle: - make a dummy root traingle refering to the child triangles
linkedList -

TreeBuilder

public TreeBuilder(GeometricObject root,
                   int rootlevel,
                   java.util.LinkedList<Node> linkedList)
Method Detail

buildTree

public void buildTree()
builds the tree object


getTree

public Tree getTree()
returns the Tree-object

Returns: