Environment for
DeveLoping
KDD-Applications
Supported by Index-Structures

de.lmu.ifi.dbs.elki.algorithm.clustering
Class DeLiClu.SpatialObjectPair

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.algorithm.clustering.DeLiClu.SpatialObjectPair
All Implemented Interfaces:
Identifiable
Enclosing class:
DeLiClu<O extends NumberVector<O,?>,D extends Distance<D>>

public class DeLiClu.SpatialObjectPair
extends Object
implements Identifiable

Encapsulates an entry in the cluster order.


Field Summary
(package private)  SpatialEntry entry1
          The first entry of this pair.
(package private)  SpatialEntry entry2
          The second entry of this pair.
(package private)  boolean isExpandable
          Indicates whether this pair is expandable or not.
 
Constructor Summary
DeLiClu.SpatialObjectPair(SpatialEntry entry1, SpatialEntry entry2, boolean isExpandable)
          Creates a new entry with the specified parameters.
 
Method Summary
 int compareTo(Identifiable o)
          Compares this object with the specified object for order.
 Integer getID()
          Returns the unique id of this object.
 String toString()
          Returns a string representation of the object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

entry1

SpatialEntry entry1
The first entry of this pair.


entry2

SpatialEntry entry2
The second entry of this pair.


isExpandable

boolean isExpandable
Indicates whether this pair is expandable or not.

Constructor Detail

DeLiClu.SpatialObjectPair

public DeLiClu.SpatialObjectPair(SpatialEntry entry1,
                                 SpatialEntry entry2,
                                 boolean isExpandable)
Creates a new entry with the specified parameters.

Parameters:
entry1 - the first entry of this pair
entry2 - the second entry of this pair
isExpandable - if true, this pair is expandable (a pair of nodes), otherwise this pair is not expandable (a pair of objects)
Method Detail

compareTo

public int compareTo(Identifiable 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.

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.

getID

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

Specified by:
getID in interface Identifiable
Returns:
the unique id of this object

Release 0.2.1 (2009-07-13_1605)