package net.datastructures; //begin#fragment TPos /** * 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 */ public interface TreePosition extends Position { // inherits element() public void setElement(E o); public PositionList> getChildren(); public void setChildren(PositionList> c); public TreePosition getParent(); public void setParent(TreePosition v); } //end#fragment TPos