QueryProcessor.Skyline
Class SkylineResultLayer

java.lang.Object
  extended by QueryProcessor.Skyline.SkylineResultLayer

public class SkylineResultLayer
extends java.lang.Object

Class representing a layer of uncomparable images.


Constructor Summary
SkylineResultLayer(int level)
          Basic constructor.
 
Method Summary
 void addResult(ResultImage image)
          Adds an image to this layer.
 java.util.Set<ResultImage> getImages()
          Returns the set of images in this layer.
 SkylineResultLayer getK(int k)
          Returns a layer containing a maximum of k images.
 int getLevel()
          Returns the level of this layer.
 int size()
          Returns the number of images in this layer.
 ImageID[] toArray()
          Returns an array containing the IDs of images in this layer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SkylineResultLayer

public SkylineResultLayer(int level)
Basic constructor.

Parameters:
level - Level of this layer.
Method Detail

addResult

public void addResult(ResultImage image)
Adds an image to this layer.

Parameters:
image - Image to add to the layer.

getK

public SkylineResultLayer getK(int k)
Returns a layer containing a maximum of k images.

Parameters:
k - Number of requested results.
Returns:
A new layer containing a maximum of k images; if less than k images exist in this layer, all images are returned.

getLevel

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

Returns:
The level of this layer.

size

public int size()
Returns the number of images in this layer.

Returns:
The number of images in this layer.

getImages

public java.util.Set<ResultImage> getImages()
Returns the set of images in this layer.

Returns:
The set of images in this layer.

toArray

public ImageID[] toArray()
Returns an array containing the IDs of images in this layer.

Returns:
An array containing the IDs of images in this layer.