messif.objects.util
Class RankedAbstractMetaObject

java.lang.Object
  extended by messif.objects.util.DistanceRankedObject<AbstractObject>
      extended by messif.objects.util.RankedAbstractObject
          extended by messif.objects.util.RankedAbstractMetaObject
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<DistanceRankedObject<?>>, DistanceRanked, Clearable

public class RankedAbstractMetaObject
extends RankedAbstractObject

Encapsulation of an object-distance pair with the distances to respective sub-objects of a MetaObject. This class holds an AbstractObject and its distance. It is used as a return value for all the query operations.

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface messif.objects.util.DistanceRanked
comparator
 
Constructor Summary
RankedAbstractMetaObject(AbstractObject object, float distance, float[] subDistances)
          Creates a new instance of RankedAbstractObject for the object its measured distance.
 
Method Summary
 float[] getSubDistances()
          Returns the array of distances to respective sub-objects of the encapsulated object.
 java.lang.String toString()
           
 
Methods inherited from class messif.objects.util.RankedAbstractObject
clearSurplusData
 
Methods inherited from class messif.objects.util.DistanceRankedObject
clone, compareTo, equals, getDistance, getObject, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RankedAbstractMetaObject

public RankedAbstractMetaObject(AbstractObject object,
                                float distance,
                                float[] subDistances)
Creates a new instance of RankedAbstractObject for the object its measured distance.

Parameters:
object - the measured object
distance - the measured distance
subDistances - the distances to respective sub-objects of the object
Method Detail

getSubDistances

public float[] getSubDistances()
Returns the array of distances to respective sub-objects of the encapsulated object.

Returns:
the array of distances to respective sub-objects

toString

public java.lang.String toString()
Overrides:
toString in class DistanceRankedObject<AbstractObject>