public class DoubleDistanceClusterOrderEntry extends Object implements ClusterOrderEntry<DoubleDistanceClusterOrderEntry>, TextWriteable
ClusterOrderResult
.Modifier and Type | Field and Description |
---|---|
private DBID |
objectID
The id of the entry.
|
private DBID |
predecessorID
The id of the entry's predecessor.
|
private double |
reachability
The reachability of the entry.
|
Constructor and Description |
---|
DoubleDistanceClusterOrderEntry(DBID objectID,
DBID predecessorID,
double reachability)
Creates a new entry in a cluster order with the specified parameters.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(DoubleDistanceClusterOrderEntry o) |
boolean |
equals(Object o)
Indicates whether some other object is "equal to" this one.
|
DBID |
getID()
Returns the object id of this entry.
|
DBID |
getPredecessorID()
Returns the id of the predecessor of this entry if this entry has a
predecessor, null otherwise.
|
double |
getReachability()
Returns the reachability distance of this entry
|
int |
hashCode()
Returns a hash code value for the object.
|
String |
toString()
Returns a string representation of the object.
|
void |
writeToText(TextWriterStream out,
String label)
Write self to the given
TextWriterStream |
private DBID objectID
private DBID predecessorID
private double reachability
public DoubleDistanceClusterOrderEntry(DBID objectID, DBID predecessorID, double reachability)
objectID
- the id of the entrypredecessorID
- the id of the entry's predecessorreachability
- the reachability of the entrypublic boolean equals(Object o)
public int hashCode()
public String toString()
public DBID getID()
getID
in interface ClusterOrderEntry<DoubleDistanceClusterOrderEntry>
public DBID getPredecessorID()
getPredecessorID
in interface ClusterOrderEntry<DoubleDistanceClusterOrderEntry>
public double getReachability()
public int compareTo(DoubleDistanceClusterOrderEntry o)
compareTo
in interface Comparable<DoubleDistanceClusterOrderEntry>
public void writeToText(TextWriterStream out, String label)
TextWriteable
TextWriterStream
writeToText
in interface TextWriteable
out
- Output writerlabel
- LabelCopyright © 2014 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.