package edu.princeton.cs.algs4.growingtree.interfaces; import edu.princeton.cs.algs4.growingtree.framework.NodeProperties; /** * This interface is for use by an ISearchOperator to traverse the tree * to find the node being sought. Some functions from IAlgorithmNode are * redeclared here with return type ISearchingNode so as to avoid the * need to cast in client code. * * @author Josh Israel * * @param

* @see ISearchOperator */ public interface ISearchingNode

extends IAlgorithmNode

{ public ISearchingNode

getLeft(); public ISearchingNode

getRight(); public ISearchingNode

getParent(); /** * This must be called on the node being sought in order to trigger the search * animation. */ public void markFound(); }