Interface NodeInterface
- All Known Implementing Classes:
- InternalNode, LeafNode
- public interface NodeInterface
Interface to access the node information. Implemented by
InternalNode and LeafNode.
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.