QueryProcessor.Skyline
Class SkylineResultImage

java.lang.Object
  extended by QueryProcessor.ResultImage
      extended by QueryProcessor.Skyline.SkylineResultImage
All Implemented Interfaces:
java.lang.Comparable<SkylineResultImage>

public class SkylineResultImage
extends ResultImage
implements java.lang.Comparable<SkylineResultImage>

Class representing the result image of a Skyline query.


Field Summary
 
Fields inherited from class QueryProcessor.ResultImage
id
 
Constructor Summary
SkylineResultImage(ImageID id, int level)
          Basic constructor.
 
Method Summary
 int compareTo(SkylineResultImage i)
          Compares this object with the specified object for order (increasing level).
 int getLevel()
          Returns the level of the layer containing this image.
 
Methods inherited from class QueryProcessor.ResultImage
equals, equals, getID, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SkylineResultImage

public SkylineResultImage(ImageID id,
                          int level)
Basic constructor.

Parameters:
id - ID of the result image.
level - Level of layer containing this image.
Method Detail

getLevel

public int getLevel()
Returns the level of the layer containing this image.

Returns:
The level of the layer containing this image

compareTo

public int compareTo(SkylineResultImage i)
Compares this object with the specified object for order (increasing level).

Specified by:
compareTo in interface java.lang.Comparable<SkylineResultImage>
Parameters:
i - SkylineResultImage to be compared.
Returns:
A negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.