spatial
Class AllQuery

java.lang.Object
  |
  +--spatial.BasicSpatialQuery
        |
        +--spatial.AllQuery
All Implemented Interfaces:
SpatialQuery
Direct Known Subclasses:
LayerAllQuery

public class AllQuery
extends BasicSpatialQuery

Class offering the operations required for retrieving all objects from a spatial search tree.


Field Summary
 
Fields inherited from class spatial.BasicSpatialQuery
tolerance
 
Constructor Summary
AllQuery()
           
 
Method Summary
 boolean areEqual(SpatialSearchTreeObject queryObj, SpatialSearchTreeObject storedObj)
          Returns true.
 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)
          Returns true.
 boolean conditionFulfilled(MBR rect, SpatialSearchTreeObject obj)
          Returns true.
 
Methods inherited from class spatial.BasicSpatialQuery
setTolerance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AllQuery

public AllQuery()
Method Detail

areEqual

public boolean areEqual(SpatialSearchTreeObject queryObj,
                        SpatialSearchTreeObject storedObj)
Returns true.

Specified by:
areEqual in interface SpatialQuery
Overrides:
areEqual in class BasicSpatialQuery
Parameters:
queryObj - the query object
storedObj - the stored object
Returns:
true

conditionFulfilled

public boolean conditionFulfilled(MBR rect,
                                  MBR entryMBR)
Tests whether the query rectangle and the MBR of a non-leaf entry intersect. The tolerance attribute is considered.

Specified by:
conditionFulfilled in interface SpatialQuery
Overrides:
conditionFulfilled in class BasicSpatialQuery
Parameters:
rect - the query rectangle
entryMBR - the minimum bounding rectangle of non-leaf entry
Returns:
true

conditionFulfilled

public boolean conditionFulfilled(MBR rect,
                                  SpatialSearchTreeEntry entry)
Returns true.

Specified by:
conditionFulfilled in interface SpatialQuery
Overrides:
conditionFulfilled in class BasicSpatialQuery
Parameters:
rect - the query rectangle
entry - the entry of a leaf entry
Returns:
true

conditionFulfilled

public boolean conditionFulfilled(MBR rect,
                                  SpatialSearchTreeObject obj)
Returns true.

Specified by:
conditionFulfilled in interface SpatialQuery
Overrides:
conditionFulfilled in class BasicSpatialQuery
Parameters:
rect - the query rectangle
obj - the object
Returns:
true