spatial
Class ExactMatchQuery

java.lang.Object
  |
  +--spatial.BasicSpatialQuery
        |
        +--spatial.ExactMatchQuery
All Implemented Interfaces:
SpatialQuery

public class ExactMatchQuery
extends BasicSpatialQuery

Class offering the operations required for an exact match query performed by a spatial search tree.


Field Summary
 
Fields inherited from class spatial.BasicSpatialQuery
tolerance
 
Constructor Summary
ExactMatchQuery()
           
 
Method Summary
 boolean conditionFulfilled(MBR rect, MBR entryMBR)
          Tests whether the query rectangle is contained by the MBR of a non-leaf entry.
 boolean conditionFulfilled(MBR rect, SpatialSearchTreeEntry entry)
          Tests whether the query rectangle and the MBR of an leaf entry are equal.
 boolean conditionFulfilled(MBR rect, SpatialSearchTreeObject obj)
          Tests whether the query rectangle and the MBR of an object are equal.
 
Methods inherited from class spatial.BasicSpatialQuery
areEqual, setTolerance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExactMatchQuery

public ExactMatchQuery()
Method Detail

conditionFulfilled

public boolean conditionFulfilled(MBR rect,
                                  MBR entryMBR)
Tests whether the query rectangle is contained by the MBR of a non-leaf entry. The tolerance attribute is not 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 if the condition is fulfilled

conditionFulfilled

public boolean conditionFulfilled(MBR rect,
                                  SpatialSearchTreeEntry entry)
Tests whether the query rectangle and the MBR of an leaf entry are equal. The tolerance attribute is not considered.

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 if the condition is fulfilled

conditionFulfilled

public boolean conditionFulfilled(MBR rect,
                                  SpatialSearchTreeObject obj)
Tests whether the query rectangle and the MBR of an object are equal. The tolerance attribute is not considered.

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