mtree
Class FoundNode

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

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

See Also:
Serialized Form

Constructor Summary
FoundNode(Node n, java.util.Stack<InternalNode> path)
          Constructors
 
Method Summary
 void addNodeEntry(messif.objects.LocalAbstractObject p, Node ptr, int nhr)
          Creates a new entry in the internal node and sets the distance to its parent pivot.
 java.util.Stack<InternalNode> getClonePath()
           
 Node getNode()
          Methods
 java.util.Stack<InternalNode> getPath()
           
 boolean updateDistances(messif.objects.LocalAbstractObject[] pivots)
          Adjusts the radius r and the distances of HR array for the given node.
 boolean updateDistances(messif.objects.LocalAbstractObject[] pivots, double r)
          Sets the radius r and adjusts the distances of HR array for the given node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FoundNode

public FoundNode(Node n,
                 java.util.Stack<InternalNode> path)
Constructors

Method Detail

getNode

public Node getNode()
Methods


getPath

public java.util.Stack<InternalNode> getPath()

getClonePath

public java.util.Stack<InternalNode> getClonePath()

addNodeEntry

public void addNodeEntry(messif.objects.LocalAbstractObject p,
                         Node ptr,
                         int nhr)
Creates a new entry in the internal node and sets the distance to its parent pivot.


updateDistances

public boolean updateDistances(messif.objects.LocalAbstractObject[] pivots,
                               double r)
Sets the radius r and adjusts the distances of HR array for the given node.

Returns:
Returns false if the radius or distances haven't needed to adjust.

updateDistances

public boolean updateDistances(messif.objects.LocalAbstractObject[] pivots)
Adjusts the radius r and the distances of HR array for the given node.

Returns:
Returns false if the radius or distances haven't needed to adjust.