|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
P
- The NodeProperties
class (or subclass) that these
nodes are parameterized by.public interface IAlgorithmNode<P extends NodeProperties>
This interface declares the functions for traversing and manipulating trees that are accessible to all operators.
NodeProperties
Method Summary | |
---|---|
void |
freeze()
|
void |
freeze(double delay)
Freezes the animation briefly and displays the current state of the tree. |
IAlgorithmNode<P> |
getLeft()
|
IAlgorithmNode<P> |
getParent()
|
IAlgorithmNode<P> |
getPredecessor()
|
IAlgorithmNode<P> |
getRight()
|
IAlgorithmNode<P> |
getRoot()
|
IAlgorithmNode<P> |
getSuccessor()
|
IAlgorithmNode<P> |
rotateLeft()
Rotates the left child up. |
IAlgorithmNode<P> |
rotateRight()
Rotates the right child up. |
Methods inherited from interface edu.princeton.cs.algs4.growingtree.interfaces.INode |
---|
getLogger, getNodeProperties |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Method Detail |
---|
IAlgorithmNode<P> getParent()
IAlgorithmNode<P> getRoot()
IAlgorithmNode<P> getLeft()
IAlgorithmNode<P> getRight()
IAlgorithmNode<P> getSuccessor()
IAlgorithmNode<P> getPredecessor()
void freeze(double delay)
void freeze()
IAlgorithmNode<P> rotateLeft()
IAlgorithmNode<P> rotateRight()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |