mtree
Class NodeEntry

java.lang.Object
  extended by mtree.NodeEntry
All Implemented Interfaces:
java.io.Serializable

public class NodeEntry
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Nested Class Summary
static class NodeEntry.HREntry
          Static class used for HR array of precomputed distances.
 
Constructor Summary
NodeEntry(InternalNode n, messif.objects.LocalAbstractObject o, Node subtree, NodeEntry.HREntry[] hr)
          Constructors
 
Method Summary
 float computeAndSetDistanceToParent()
          Computes and sets the distance between this node entry and its parent pivot.
 NodeEntry.HREntry[] getHR()
          Returns the HR array of precomputed distances.
 InternalNode getNode()
          Returns the node in which this node entry is stored.
 messif.objects.LocalAbstractObject getObject()
          Returns the pivot connected with this node entry.
 float getParentDist()
          Returns the distance to the parent pivot.
 float getRadius()
          Returns the radius of this node entry covering all descendants.
 Node getSubtree()
          Returns the subtree of this node entry.
 void setNode(InternalNode n)
          Sets the node in which this node entry is stored.
 void setRadius(float r)
          Sets the radius of this node entry covering all descendants.
 void setSubtree(Node subtree)
          Sets the subtree of this node entry.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeEntry

public NodeEntry(InternalNode n,
                 messif.objects.LocalAbstractObject o,
                 Node subtree,
                 NodeEntry.HREntry[] hr)
Constructors

Method Detail

getNode

public InternalNode getNode()
Returns the node in which this node entry is stored.

Returns:
the node in which this node entry is stored

setNode

public void setNode(InternalNode n)
Sets the node in which this node entry is stored.


getObject

public messif.objects.LocalAbstractObject getObject()
Returns the pivot connected with this node entry.

Returns:
the pivot connected with this node entry

getParentDist

public float getParentDist()
Returns the distance to the parent pivot.

Returns:
the distance to the parent pivot (UNKNOWN_DISTANCE if this node entry has no parent)

getRadius

public float getRadius()
Returns the radius of this node entry covering all descendants.

Returns:
the radius of this node entry covering all descendants

setRadius

public void setRadius(float r)
Sets the radius of this node entry covering all descendants.


getSubtree

public Node getSubtree()
Returns the subtree of this node entry.

Returns:
the subtree of this node entry

setSubtree

public void setSubtree(Node subtree)
Sets the subtree of this node entry.


getHR

public NodeEntry.HREntry[] getHR()
Returns the HR array of precomputed distances.

Returns:
the HR array of precomputed distances

computeAndSetDistanceToParent

public float computeAndSetDistanceToParent()
Computes and sets the distance between this node entry and its parent pivot.

Returns:
the distance between this node entry and its parent pivot