@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, wait
newSentinel
protected final JoafipLogger logger
protected IHeapElementManager heapElementManager
public AbstractHeapNodeManager(IHeapElementManager heapElementManager)
public IRBTNode<E> getRootNode() throws RBTException
getRootNode
in interface IRBTNodeManager<E extends Comparable<E>>
RBTException
protected abstract IRBTNode<E> getRootNode(HeapHeader heapHeader) throws HeapException
heapHeader
- where look for the root nodeHeapException
public void setRootNode(IRBTNode<E> rootNode) throws RBTException
IRBTNodeManager
setRootNode
in interface IRBTNodeManager<E extends Comparable<E>>
rootNode
- the root red black tree nodeRBTException
protected abstract void setRootNode(HeapHeader heapHeader, IRBTNode<E> rootNode) throws RBTException
RBTException
Copyright © 2007-2012 Luc Peuvrier. All Rights Reserved.