@NotStorableClass public class HeapFreeNode extends AbstractHeapRBTNode<Integer>
HeapRecord
HeapRecord
color, colorSetted, heapElementManager, index, leftPositionInFile, numberOfChild, parentPositionInFile, rightPositionInFile, valueChanged
Constructor and Description |
---|
HeapFreeNode(IHeapElementManager heapElementManager,
long positionInFile,
long parentPositionInFile,
long leftPositionInFile,
long rightPositionInFile,
boolean colorSetted,
boolean color,
int numberOfChild,
int areaSize) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Integer element) |
int |
compareTo(IRBTComparableNode<Integer> node) |
boolean |
equals(Object obj) |
Integer |
getElement()
get the element of this node
|
int |
getRecordSize() |
protected AbstractHeapRBTNode<Integer> |
heapNode(HeapRecord heapRecord)
get the heap node from the heap record from heap file, depending of heap
tree it is not at same location on heap record.
|
void |
setAreaSize(int areaSize) |
void |
setElement(Integer element)
set this node element
|
String |
toString() |
accept, decrementNumberOfChild, detach, getColor, getHeapRecord, getIndex, getLeft, getLeftPositionInFile, getNumberOfChild, getParent, getParentPositionInFile, getPositionInFile, getRight, getRightPositionInFile, hashCode, incrementNumberOfChild, isAttached, isBlack, isColorSetted, isRed, isSentinel, isValueChanged, setBlack, setColor, setIndex, setLeft, setLeftPositionInFile, setNumberOfChild, setParent, setParentPositionInFile, setRed, setRight, setRightPositionInFile, valueSetted
public HeapFreeNode(IHeapElementManager heapElementManager, long positionInFile, long parentPositionInFile, long leftPositionInFile, long rightPositionInFile, boolean colorSetted, boolean color, int numberOfChild, int areaSize)
public int compareTo(IRBTComparableNode<Integer> node) throws RBTException
RBTException
public int compareTo(Integer element) throws RBTException
RBTException
public int getRecordSize()
public void setAreaSize(int areaSize)
protected AbstractHeapRBTNode<Integer> heapNode(HeapRecord heapRecord) throws RBTException
AbstractHeapRBTNode
heapNode
in class AbstractHeapRBTNode<Integer>
heapRecord
- the heap recordRBTException
public Integer getElement() throws RBTException
IRBTNode
RBTException
public void setElement(Integer element) throws RBTException
IRBTNode
element
- the element to set for this nodeRBTException
public String toString()
toString
in class AbstractHeapRBTNode<Integer>
public boolean equals(Object obj)
equals
in class AbstractHeapRBTNode<Integer>
Copyright © 2007-2012 Luc Peuvrier. All Rights Reserved.