edu.indiana.util.clustering
Class EquivalenceClassMember
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
obj
protected java.lang.Object obj
isPrototype
protected boolean isPrototype
diffFromPrototype
protected double diffFromPrototype
id
protected int id
EquivalenceClassMember
public EquivalenceClassMember(java.lang.Object obj,
boolean isPrototype,
double diffFromPrototype)
- Creates a new instance of EquivalenceClassMember
EquivalenceClassMember
public EquivalenceClassMember(EquivalenceClassMember ecm)
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()