Interface NodeInterface

All Known Implementing Classes:
InternalNode, LeafNode

public interface NodeInterface

Interface to access the node information. Implemented by InternalNode and LeafNode.


Method Summary
 Info getInfo()
           
 int getLeftIndex()
           
 int getLength()
           
 java.lang.Object getRightSybling()
           
 void setInfo(Info info)
           
 

Method Detail

getLeftIndex

public int getLeftIndex()
Returns:
the length on the branch leading to this node.

getLength

public int getLength()
Returns:
the length of the branch leading to this node.

getRightSybling

public java.lang.Object getRightSybling()
Returns:
the right sybling of this node, if there is one.

getInfo

public Info getInfo()
Returns:
the first Info object that is associated with the node. One example could be the LcaInfo.

setInfo

public void setInfo(Info info)
Returns:
the first Info object that is associated with the node. One example could be the LcaInfo.