mtree
Class Node

java.lang.Object
  extended by mtree.Node
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
InternalNode, LeafNode

public abstract class Node
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Constructor Summary
Node(int level)
          Constructors
 
Method Summary
 int getLevel()
          Methods
abstract  int getObjectCount()
           
abstract  java.util.List<messif.objects.LocalAbstractObject> getObjects()
           
 java.util.List<messif.objects.LocalAbstractObject> getSortedObjectList()
           
 boolean isLastInternalNode()
           
 boolean isLeaf()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Node

public Node(int level)
Constructors

Method Detail

getObjectCount

public abstract int getObjectCount()
Returns:
Returns object count stored in the node.

getObjects

public abstract java.util.List<messif.objects.LocalAbstractObject> getObjects()
Returns:
Returns all objects stored in the node.

getLevel

public int getLevel()
Methods


isLastInternalNode

public boolean isLastInternalNode()

isLeaf

public boolean isLeaf()

getSortedObjectList

public java.util.List<messif.objects.LocalAbstractObject> getSortedObjectList()
Returns:
Returns a list of all objects in the node sorted by distance to their parent (in descending order).