edu.indiana.util.clustering
Class EquivalenceClassMember

java.lang.Object
  extended by edu.indiana.util.clustering.EquivalenceClassMember

public class EquivalenceClassMember
extends java.lang.Object

A wrapper for an object and related data, where the object is a member of an equivalence class.


Field Summary
protected  double diffFromPrototype
           
protected  int id
           
protected  boolean isPrototype
           
protected  java.lang.Object obj
           
 
Constructor Summary
EquivalenceClassMember(EquivalenceClassMember ecm)
           
EquivalenceClassMember(java.lang.Object obj, boolean isPrototype, double diffFromPrototype)
          Creates a new instance of EquivalenceClassMember
 
Method Summary
 double getDiffFromPrototype()
           
 int getID()
           
 java.lang.Object getObj()
           
 boolean isPrototype()
           
 void setDiffFromPrototype(double diffFromPrototype)
           
 void setID(int id)
           
 void setIsPrototype(boolean isPrototype)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

obj

protected java.lang.Object obj

isPrototype

protected boolean isPrototype

diffFromPrototype

protected double diffFromPrototype

id

protected int id
Constructor Detail

EquivalenceClassMember

public EquivalenceClassMember(java.lang.Object obj,
                              boolean isPrototype,
                              double diffFromPrototype)
Creates a new instance of EquivalenceClassMember


EquivalenceClassMember

public EquivalenceClassMember(EquivalenceClassMember ecm)
Method Detail

getObj

public java.lang.Object getObj()

setIsPrototype

public void setIsPrototype(boolean isPrototype)

isPrototype

public boolean isPrototype()

getDiffFromPrototype

public double getDiffFromPrototype()

setDiffFromPrototype

public void setDiffFromPrototype(double diffFromPrototype)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

setID

public void setID(int id)

getID

public int getID()