|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--spatial.BasicSpatialQuery
Class offering some basic operations required for spatial queries performed by a spatial search tree.
| Field Summary | |
protected int |
tolerance
tolerance, required by some queries |
| Constructor Summary | |
BasicSpatialQuery()
|
|
| Method Summary | |
boolean |
areEqual(SpatialSearchTreeObject queryObj,
SpatialSearchTreeObject storedObj)
Tests whether the query object and the stored object are equal. |
boolean |
conditionFulfilled(MBR rect,
MBR entryMBR)
Tests whether the query rectangle and the MBR of a non-leaf entry intersect. |
boolean |
conditionFulfilled(MBR rect,
SpatialSearchTreeEntry entry)
Tests whether the query rectangle and the MBR of an leaf entry intersect. |
boolean |
conditionFulfilled(MBR rect,
SpatialSearchTreeObject obj)
Tests whether the query rectangle and the MBR of an object intersect. |
void |
setTolerance(int tolerance)
Sets the tolerance attribute. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected int tolerance
| Constructor Detail |
public BasicSpatialQuery()
| Method Detail |
public boolean areEqual(SpatialSearchTreeObject queryObj,
SpatialSearchTreeObject storedObj)
areEqual in interface SpatialQueryqueryObj - the query objectstoredObj - the stored object
public boolean conditionFulfilled(MBR rect,
MBR entryMBR)
conditionFulfilled in interface SpatialQueryrect - the query rectangleentryMBR - the minimum bounding rectangle of non-leaf entry
public boolean conditionFulfilled(MBR rect,
SpatialSearchTreeEntry entry)
conditionFulfilled in interface SpatialQueryrect - the query rectangleentry - the entry of a leaf entry
public boolean conditionFulfilled(MBR rect,
SpatialSearchTreeObject obj)
conditionFulfilled in interface SpatialQueryrect - the query rectangleobj - the object
public void setTolerance(int tolerance)
tolerance - the new value of tolerance
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||