de.lmu.ifi.dbs.elki.index.tree.query
Class GenericDistanceSearchCandidate<D extends Distance<D>>

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.index.tree.query.GenericDistanceSearchCandidate<D>
Type Parameters:
D - Distance type
All Implemented Interfaces:
Comparable<GenericDistanceSearchCandidate<D>>
Direct Known Subclasses:
GenericMTreeDistanceSearchCandidate

public class GenericDistanceSearchCandidate<D extends Distance<D>>
extends Object
implements Comparable<GenericDistanceSearchCandidate<D>>

Candidate for expansion in a distance search (generic implementation).


Field Summary
 D mindist
          Distance value
 Integer nodeID
          Page id
 
Constructor Summary
GenericDistanceSearchCandidate(D mindist, Integer pagenr)
          Constructor.
 
Method Summary
 int compareTo(GenericDistanceSearchCandidate<D> o)
           
 boolean equals(Object obj)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mindist

public D extends Distance<D> mindist
Distance value


nodeID

public Integer nodeID
Page id

Constructor Detail

GenericDistanceSearchCandidate

public GenericDistanceSearchCandidate(D mindist,
                                      Integer pagenr)
Constructor.

Parameters:
mindist - The minimum distance to this candidate
pagenr - The page number of this candidate
Method Detail

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

compareTo

public int compareTo(GenericDistanceSearchCandidate<D> o)
Specified by:
compareTo in interface Comparable<GenericDistanceSearchCandidate<D extends Distance<D>>>

Release 0.4.0 (2011-09-20_1324)