|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmtree.Node
mtree.InternalNode
public class InternalNode
Constructor Summary | |
---|---|
InternalNode(int level,
NodeEntry parentNodeEntry,
long softCapacity)
Constructors |
Method Summary | |
---|---|
protected boolean |
adjustParentHR()
Adjusts the distances of HR array of the parent node. |
protected boolean |
adjustParentRadius()
Adjusts the radius of the parent node. |
NodeEntry |
createNodeEntry(messif.objects.LocalAbstractObject p,
Node subtree,
int nhr)
Creates a new node entry in this node. |
NodeEntry |
createNodeEntry(NodeEntry ne)
Adds the specified node entry into this node. |
NodeEntry |
getNodeEntry(int pos)
Returns the node entry at specified position. |
NodeEntry |
getNodeEntry(messif.objects.LocalAbstractObject o)
Returns the node entry selected by an object stored in it. |
java.util.List<NodeEntry> |
getNodeEntryList()
Returns a list of stored node entries of this node. |
int |
getObjectCount()
Returns the number of stored objects in this node. |
messif.objects.util.AbstractObjectIterator<messif.objects.LocalAbstractObject> |
getObjects()
Returns an iterator of all objects stored in this node. |
boolean |
isCapacityExceeded()
Returns false if the capacity of this node is not exceeded. |
boolean |
isFreeCapacity(messif.objects.LocalAbstractObject o)
Returns false if the capacity of this node after inserting object o will be exceeded. |
boolean |
removeNodeEntry(NodeEntry ne)
Removes the specified node entry from this node. |
boolean |
removeNodeEntry(NodeEntry ne,
java.util.Iterator<NodeEntry> nodeEntryIterator)
Removes the specified node entry from this node. |
java.lang.String |
toString()
Overrided class Object |
Methods inherited from class mtree.Node |
---|
createRootNode, getLevel, getParentNode, getParentNodeEntry, getParentRadius, getSortedObjectList, isLastInternalNode, isLeaf, updateDistances |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public InternalNode(int level, NodeEntry parentNodeEntry, long softCapacity)
Method Detail |
---|
public boolean isFreeCapacity(messif.objects.LocalAbstractObject o)
public NodeEntry createNodeEntry(messif.objects.LocalAbstractObject p, Node subtree, int nhr)
nhr
- length of HR array
public NodeEntry createNodeEntry(NodeEntry ne)
public NodeEntry getNodeEntry(int pos)
public NodeEntry getNodeEntry(messif.objects.LocalAbstractObject o)
public java.util.List<NodeEntry> getNodeEntryList()
public boolean removeNodeEntry(NodeEntry ne)
public boolean removeNodeEntry(NodeEntry ne, java.util.Iterator<NodeEntry> nodeEntryIterator)
public boolean isCapacityExceeded()
isCapacityExceeded
in class Node
public int getObjectCount()
getObjectCount
in class Node
public messif.objects.util.AbstractObjectIterator<messif.objects.LocalAbstractObject> getObjects()
getObjects
in class Node
protected boolean adjustParentRadius()
adjustParentRadius
in class Node
protected boolean adjustParentHR()
adjustParentHR
in class Node
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |