spatial
Class LayerAllQuery

java.lang.Object
  |
  +--spatial.BasicSpatialQuery
        |
        +--spatial.AllQuery
              |
              +--spatial.LayerAllQuery
All Implemented Interfaces:
LayerQuery, SpatialQuery

public class LayerAllQuery
extends AllQuery
implements LayerQuery

Class offering the operations required for a layer all query performed by a spatial search tree which stores the layer in the leafs: The layer must be equal to the query layer.


Field Summary
 
Fields inherited from class spatial.BasicSpatialQuery
tolerance
 
Constructor Summary
LayerAllQuery(int queryLayer)
          Constructor.
 
Method Summary
 boolean conditionFulfilled(MBR rect, SpatialSearchTreeObject obj)
          Test for layer.
 int getQueryLayer()
          Returns the index of the query layer.
 
Methods inherited from class spatial.AllQuery
areEqual, conditionFulfilled, conditionFulfilled
 
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

LayerAllQuery

public LayerAllQuery(int queryLayer)
Constructor.

Parameters:
queryLayer - the index of the query layer
Method Detail

conditionFulfilled

public boolean conditionFulfilled(MBR rect,
                                  SpatialSearchTreeObject obj)
Test for layer. Supports tolerance.

Specified by:
conditionFulfilled in interface SpatialQuery
Overrides:
conditionFulfilled in class AllQuery
Parameters:
rect - query rectangle
obj - leaf object
Returns:
condition fulfilled?

getQueryLayer

public int getQueryLayer()
Returns the index of the query layer.

Specified by:
getQueryLayer in interface LayerQuery
Returns:
the index of the query layer