it.unipd.dei.ims.nestor.experiment.tree
Class Tree

java.lang.Object
  extended by it.unipd.dei.ims.nestor.experiment.tree.Tree

public class Tree
extends java.lang.Object


Constructor Summary
Tree()
           
 
Method Summary
 void addNode(int id, Node node)
           
 java.util.HashMap<java.lang.Integer,java.lang.String> getContent()
           
 Node getNode(java.lang.Integer id)
           
 java.util.HashMap<java.lang.Integer,Node> getNodes()
           
 int getSize()
           
 void replaceNode(java.lang.Integer idOldNode, Node newNode)
           
 void setContent(java.util.HashMap<java.lang.Integer,java.lang.String> content)
           
 void setSize(int size)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Tree

public Tree()
Method Detail

getNodes

public java.util.HashMap<java.lang.Integer,Node> getNodes()

getNode

public Node getNode(java.lang.Integer id)

addNode

public void addNode(int id,
                    Node node)

replaceNode

public void replaceNode(java.lang.Integer idOldNode,
                        Node newNode)

getContent

public java.util.HashMap<java.lang.Integer,java.lang.String> getContent()

setContent

public void setContent(java.util.HashMap<java.lang.Integer,java.lang.String> content)

getSize

public int getSize()

setSize

public void setSize(int size)