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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IsContainedQuery
public IsContainedQuery()
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 rectangleentryMBR - 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 rectangleentry - 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 rectangleobj - the object
- Returns:
- true if the condition fulfilled