cbr.service
Class PictureEntry

java.lang.Object
  extended bycbr.service.PictureEntry
All Implemented Interfaces:
Comparable, Serializable

public class PictureEntry
extends Object
implements Serializable, Comparable

This class represents entries in the index of a picture broker. Each entrie groups the relevant information on a retrieved picture. This information includes:

Two picture entries are equal iff their URLs and picture names are equal. Picture entries are returned by the picture retrieval service.

Version:
"$Id: PictureEntry.java 1913 2007-08-08 02:41:53Z jpeters $"
Author:
Volker Roth
See Also:
Serialized Form

Field Summary
 float distance
          The distance of the picture represented by this entry to the query picture.
 FeatureVector features
          The feature vector of the picture represented by this entry.
 String name
          The name of the picture represented by this entry.
 byte[] thumbnail
          The thumbnail of the picture represented by this entry.
 String url
          The URL of the agent server where the picture can be retrieved that is represented by this entry.
 
Constructor Summary
PictureEntry()
           
 
Method Summary
 int compareTo(Object o)
          Compares this instance with the given one.
 boolean equals(Object o)
          Checks for equality.
 int hashCode()
          Returns the hash code of this object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

features

public FeatureVector features
The feature vector of the picture represented by this entry.


distance

public float distance
The distance of the picture represented by this entry to the query picture.


name

public String name
The name of the picture represented by this entry.


url

public String url
The URL of the agent server where the picture can be retrieved that is represented by this entry.


thumbnail

public byte[] thumbnail
The thumbnail of the picture represented by this entry.

Constructor Detail

PictureEntry

public PictureEntry()
Method Detail

equals

public boolean equals(Object o)
Checks for equality. This object and the given one are equal iff

Returns:
true iff the given object and this object are equal.

hashCode

public int hashCode()
Returns the hash code of this object.

Returns:
The hash code.

compareTo

public int compareTo(Object o)
Compares this instance with the given one. The general contract of a Comparable is fulfilled.

Specified by:
compareTo in interface Comparable
Parameters:
o - The object to compare with.


Copyright © Fraunhofer Gesellschaft. All Rights Reserved.