QueryProcessor.Utils
Class SortedAccessResult

java.lang.Object
  extended by QueryProcessor.Utils.SortedAccessResult
Direct Known Subclasses:
WindsurfSortedAccessResult

public abstract class SortedAccessResult
extends java.lang.Object

Abstract class representing the result of a sorted access to the region index.


Field Summary
protected  double distance
          Distance value of this result to the query region
protected  ImageID id
          ID of the result region
protected  int index
          Index of the requested sorted access (query region)
 
Constructor Summary
SortedAccessResult(ScoredResultImage image, int index)
          Basic constructor.
 
Method Summary
 double getDistance()
          Returns the distance value of this result to the query region.
abstract  ImageID getImageID()
          Returns the ID of the image containing the result region.
 int getIndex()
          Returns the index of the requested sorted access (query region).
 ImageID getRegionID()
          Returns the ID of result region.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

protected ImageID id
ID of the result region


distance

protected double distance
Distance value of this result to the query region


index

protected int index
Index of the requested sorted access (query region)

Constructor Detail

SortedAccessResult

public SortedAccessResult(ScoredResultImage image,
                          int index)
Basic constructor.

Parameters:
image - The region obtained through sorted access.
index - Index of the requested sorted access (query region).
Method Detail

getImageID

public abstract ImageID getImageID()
Returns the ID of the image containing the result region.

Returns:
ID of the image containing the result region.

getRegionID

public ImageID getRegionID()
Returns the ID of result region.

Returns:
ID of the result region.

getIndex

public int getIndex()
Returns the index of the requested sorted access (query region).

Returns:
Index of the requested sorted access (query region).

getDistance

public double getDistance()
Returns the distance value of this result to the query region.

Returns:
Distance value of this result to the query region.