net.datastructures - version 5.0

net.datastructures
Interface TreePosition<E>

All Superinterfaces:
Position<E>
All Known Implementing Classes:
TreeNode

public interface TreePosition<E>
extends Position<E>

Interface for a node of a binary tree. It maintains an element, a parent node, a left node, and a right node. //end#fragment TPos

Author:
Michael Goodrich //begin#fragment TPos

Method Summary
 PositionList<Position<E>> getChildren()
           
 TreePosition<E> getParent()
           
 void setChildren(PositionList<Position<E>> c)
           
 void setElement(E o)
           
 void setParent(TreePosition<E> v)
           
 
Methods inherited from interface net.datastructures.Position
element
 

Method Detail

setElement

void setElement(E o)

getChildren

PositionList<Position<E>> getChildren()

setChildren

void setChildren(PositionList<Position<E>> c)

getParent

TreePosition<E> getParent()

setParent

void setParent(TreePosition<E> v)

net.datastructures - version 5.0