spatial
Interface SpatialQuery

All Known Implementing Classes:
BasicSpatialQuery

public interface SpatialQuery

Interface defining the operations required for spatial queries performed by a spatial search tree.


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 fulfill the query condition.
 boolean conditionFulfilled(MBR rect, SpatialSearchTreeEntry entry)
          Tests whether the query rectangle and an leaf entry fulfill the query condition.
 boolean conditionFulfilled(MBR rect, SpatialSearchTreeObject obj)
          Tests whether the query rectangle and an object fulfill the query condition.
 

Method Detail

areEqual

public boolean areEqual(SpatialSearchTreeObject queryObj,
                        SpatialSearchTreeObject storedObj)
Tests whether the query object and the stored object are equal.

Parameters:
queryObj - the query object
storedObj - the stored object
Returns:
true if equal

conditionFulfilled

public boolean conditionFulfilled(MBR rect,
                                  MBR entryMBR)
Tests whether the query rectangle and the MBR of a non-leaf entry fulfill the query condition.

Parameters:
rect - the query rectangle
entryMBR - the minimum bounding rectangle of non-leaf entry
Returns:
true if the condition is fulfilled

conditionFulfilled

public boolean conditionFulfilled(MBR rect,
                                  SpatialSearchTreeEntry entry)
Tests whether the query rectangle and an leaf entry fulfill the query condition.

Parameters:
rect - the query rectangle
entry - the entry of a leaf entry
Returns:
true if the condition is fulfilled

conditionFulfilled

public boolean conditionFulfilled(MBR rect,
                                  SpatialSearchTreeObject obj)
Tests whether the query rectangle and an object fulfill the query condition.

Parameters:
rect - the query rectangle
obj - the object
Returns:
true if the condition fulfilled