spatial
Interface SpatialSearchTreeQuery

All Known Implementing Classes:
RegionQuery

public interface SpatialSearchTreeQuery

Interface for objects performing a general region query on search trees.


Method Summary
 SpatialSearchTreeObject getNextObject()
          Returns the next object fulfilling the query condition.
 int getQueryNum()
          Returns the number of queries.
 long getQueryTime()
          Returns the query time.
 int getResultNum()
          Returns the number of results.
 void init(SpatialSearchTree tree)
          Initializes a query without spatial conditions.
 void reset()
          Resets the query.
 void resetCounters()
          Resets the counters and timers.
 

Method Detail

getNextObject

public SpatialSearchTreeObject getNextObject()
Returns the next object fulfilling the query condition. Will return null if no object is found.

Returns:
the found object

getQueryNum

public int getQueryNum()
Returns the number of queries.

Returns:
number of queries

getQueryTime

public long getQueryTime()
Returns the query time.

Returns:
query time

getResultNum

public int getResultNum()
Returns the number of results.

Returns:
number of results

init

public void init(SpatialSearchTree tree)
Initializes a query without spatial conditions.

Parameters:
tree - the searchtree

reset

public void reset()
Resets the query.


resetCounters

public void resetCounters()
Resets the counters and timers.