|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--spatial.MemoryRTree
A memory-based R-tree.
| Field Summary | |
protected int |
dim
number of dimensions. |
protected RegionQuery |
moveQuery
query to move objects. |
protected RegionQuery |
removeQuery
query to remove objects. |
protected MemoryRTreeNode |
root
the root node. |
protected RTreeStrategy |
strategy
strategy used by the memory r-tree. |
protected int |
totalnum
number of objects. |
| Constructor Summary | |
MemoryRTree()
Constructor. |
|
MemoryRTree(int dim,
int nodecapacity)
Constructor. |
|
| Method Summary | |
void |
close()
Dummy operation. |
int |
computeNumberOfEntries()
Returns the number of entries of the tree. |
int |
computeNumberOfNodes()
Returns the number of nodes of the tree. |
void |
debugPrint()
Debug print of the tree. |
void |
draw(java.awt.Graphics g,
java.awt.Rectangle clip,
int scale,
int minHeight,
int maxHeight)
Draws the tree. |
int |
getHeight()
Returns the height of the tree. |
int |
getNumOfDimensions()
Returns the number of dimensions. |
SpatialSearchTreeNode |
getRoot()
Returns the root. |
int |
getTotalNumberOfObjects()
Returns the total number of entries in the tree. |
void |
insert(SpatialSearchTreeObject obj)
Inserts the object into the r-tree. |
boolean |
remove(SpatialSearchTreeObject obj)
Removes an object. |
void |
setSplitStrategy(RTreeStrategy str)
Sets the split strategy. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected int dim
protected RTreeStrategy strategy
protected MemoryRTreeNode root
protected int totalnum
protected RegionQuery removeQuery
protected RegionQuery moveQuery
| Constructor Detail |
public MemoryRTree()
public MemoryRTree(int dim,
int nodecapacity)
dim - number of dimensionsnodecapacity - capacity of the nodes| Method Detail |
public void close()
close in interface SpatialSearchTreepublic int computeNumberOfEntries()
public int computeNumberOfNodes()
public void debugPrint()
public void draw(java.awt.Graphics g,
java.awt.Rectangle clip,
int scale,
int minHeight,
int maxHeight)
g - graphic contextclip - clipping rectanglescale - scaleminHeight - minimum height (root = 0)maxHeight - maximum heightpublic int getHeight()
getHeight in interface SpatialSearchTreepublic int getNumOfDimensions()
getNumOfDimensions in interface SpatialSearchTreepublic SpatialSearchTreeNode getRoot()
getRoot in interface SpatialSearchTreepublic int getTotalNumberOfObjects()
public void insert(SpatialSearchTreeObject obj)
insert in interface SpatialSearchTreeobj - spatial searchtree object
public boolean remove(SpatialSearchTreeObject obj)
remove in interface SpatialSearchTreeobj - the object
public void setSplitStrategy(RTreeStrategy str)
str - the new split strategy
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||