QueryProcessor
Class ResultImage

java.lang.Object
  extended by QueryProcessor.ResultImage
Direct Known Subclasses:
ScoredResultImage, SkylineResultImage

public class ResultImage
extends java.lang.Object

Abstract class representing the result (image/region) of a query.


Field Summary
protected  ImageID id
          The ID of this result image/region
 
Constructor Summary
ResultImage(ImageID id)
          Basic constructor.
 
Method Summary
 boolean equals(java.lang.Object o)
          Compares this object with the specified object for equivalence.
 boolean equals(ResultImage o)
          Compares this result image/region with the specified result image/region for equivalence.
 ImageID getID()
          Returns the ID of this result image/region.
 java.lang.String toString(int pos, java.lang.String name)
          Returns a string representation of this result image/region.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

protected ImageID id
The ID of this result image/region

Constructor Detail

ResultImage

public ResultImage(ImageID id)
Basic constructor.

Parameters:
id - ID of the result image/region.
Method Detail

getID

public ImageID getID()
Returns the ID of this result image/region.

Returns:
The ID of this result image/region.

toString

public java.lang.String toString(int pos,
                                 java.lang.String name)
Returns a string representation of this result image/region.

Parameters:
pos - Position of this image/region in the result.
name - Image/region name.
Returns:
A string representation of this result image/region.

equals

public boolean equals(java.lang.Object o)
Compares this object with the specified object for equivalence.

Overrides:
equals in class java.lang.Object
Parameters:
o - Object to be compared.
Returns:
true if this object is the same as the argument; false otherwise.

equals

public boolean equals(ResultImage o)
Compares this result image/region with the specified result image/region for equivalence.

Parameters:
o - Result image/region to be compared.
Returns:
true if this result image/region is the same as the argument; false otherwise.