spatial
Class IsContainedQuery

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

public class IsContainedQuery
extends BasicSpatialQuery

Class offering the operations required for a is-contained query performed by a spatial search tree: The query rectangle must be contained by the object.


Field Summary
 
Fields inherited from class spatial.BasicSpatialQuery
tolerance
 
Constructor Summary
IsContainedQuery()
           
 
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 is contained by the MBR of an leaf entry intersect.
 boolean conditionFulfilled(MBR rect, SpatialSearchTreeObject obj)
          Test whether the query rectangle is contained by the object or not.
 
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

IsContainedQuery

public IsContainedQuery()
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 is contained by the MBR of an leaf entry intersect. 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)
Test whether the query rectangle is contained by the object or not. 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