Environment for
DeveLoping
KDD-Applications
Supported by Index-Structures

de.lmu.ifi.dbs.elki.algorithm.clustering
Class OPTICS.COEntry

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.algorithm.clustering.OPTICS.COEntry
All Implemented Interfaces:
Identifiable<OPTICS.COEntry>, Serializable, Comparable<Identifiable<OPTICS.COEntry>>
Enclosing class:
OPTICS<O extends DatabaseObject,D extends Distance<D>>

public class OPTICS.COEntry
extends Object
implements Identifiable<OPTICS.COEntry>, Serializable

Encapsulates an entry in the cluster order.

See Also:
Serialized Form

Field Summary
 Integer objectID
          The id of the entry.
(package private)  Integer predecessorID
          The id of the entry's predecessor.
 
Constructor Summary
OPTICS.COEntry(Integer objectID, Integer predecessorID)
          Creates a new entry with the specified parameters.
 
Method Summary
 int compareTo(Identifiable<OPTICS.COEntry> o)
          Compares this object with the specified object for order.
 boolean equals(Object o)
          Indicates whether some other object is "equal to" this one.
 Integer getID()
          Returns the unique id of this object.
 int hashCode()
          Returns a hash code value for the object.
 String toString()
          Returns a string representation of the object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

objectID

public Integer objectID
The id of the entry.


predecessorID

Integer predecessorID
The id of the entry's predecessor.

Constructor Detail

OPTICS.COEntry

public OPTICS.COEntry(Integer objectID,
                      Integer predecessorID)
Creates a new entry with the specified parameters.

Parameters:
objectID - the id of the entry
predecessorID - the id of the entry's predecessor
Method Detail

compareTo

public int compareTo(Identifiable<OPTICS.COEntry> o)
Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.

Specified by:
compareTo in interface Comparable<Identifiable<OPTICS.COEntry>>
Parameters:
o - the Object to be compared.
Returns:
a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.

toString

public String toString()
Returns a string representation of the object.

Overrides:
toString in class Object
Returns:
a string representation of the object.

equals

public boolean equals(Object o)
Indicates whether some other object is "equal to" this one.

Overrides:
equals in class Object
Parameters:
o - the reference object with which to compare.
Returns:
true if this object is the same as the obj argument; false otherwise.

hashCode

public int hashCode()
Returns a hash code value for the object. This method is supported for the benefit of hashtables such as those provided by java.util.Hashtable.

Overrides:
hashCode in class Object
Returns:
hash code value for the object

getID

public Integer getID()
Returns the unique id of this object.

Specified by:
getID in interface Identifiable<OPTICS.COEntry>
Returns:
the unique id of this object

Release 0.1 (2008-07-10_1838)