@NotStorableClass public abstract class AbstractHeapNodeManager<E extends Comparable<E>> extends Object implements IRBTNodeManager<E>
| Modifier and Type | Field and Description |
|---|---|
protected IHeapElementManager |
heapElementManager |
protected JoafipLogger |
logger |
| Constructor and Description |
|---|
AbstractHeapNodeManager(IHeapElementManager heapElementManager) |
| Modifier and Type | Method and Description |
|---|---|
IRBTNode<E> |
getRootNode() |
protected abstract IRBTNode<E> |
getRootNode(HeapHeader heapHeader)
the get root node implementation
|
protected abstract void |
setRootNode(HeapHeader heapHeader,
IRBTNode<E> rootNode) |
void |
setRootNode(IRBTNode<E> rootNode)
set the root red black tree node
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitnewSentinelprotected final JoafipLogger logger
protected IHeapElementManager heapElementManager
public AbstractHeapNodeManager(IHeapElementManager heapElementManager)
public IRBTNode<E> getRootNode() throws RBTException
getRootNode in interface IRBTNodeManager<E extends Comparable<E>>RBTExceptionprotected abstract IRBTNode<E> getRootNode(HeapHeader heapHeader) throws HeapException
heapHeader - where look for the root nodeHeapExceptionpublic void setRootNode(IRBTNode<E> rootNode) throws RBTException
IRBTNodeManagersetRootNode in interface IRBTNodeManager<E extends Comparable<E>>rootNode - the root red black tree nodeRBTExceptionprotected abstract void setRootNode(HeapHeader heapHeader, IRBTNode<E> rootNode) throws RBTException
RBTExceptionCopyright © 2007-2012 Luc Peuvrier. All Rights Reserved.