public class DataObject
extends java.lang.Object
implements java.io.Serializable, weka.core.RevisionHandler
DataObject.java
Authors: Rainer Holzmann, Zhanna Melnikova-Albrecht, Matthias Schubert
Date: Aug 19, 2004
Time: 5:50:22 PM
$ Revision 1.4 $
Modifier and Type | Field and Description |
---|---|
static int |
NOISE |
static int |
UNCLASSIFIED |
static double |
UNDEFINED |
Constructor and Description |
---|
DataObject(weka.core.Instance originalInstance,
java.lang.String key,
Database database)
Constructs a new DataObject.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(DataObject dataObject)
Compares two DataObjects in respect to their attribute-values
|
int |
getClusterLabel()
Returns the clusterID, to which this DataObject belongs to
|
double |
getCoreDistance()
Returns the coreDistance for this dataObject
|
weka.core.Instance |
getInstance()
Returns the original instance
|
java.lang.String |
getKey()
Returns the key for this DataObject
|
double |
getReachabilityDistance()
Returns the reachabilityDistance for this dataObject
|
java.lang.String |
getRevision()
Returns the revision string.
|
boolean |
isProcessed()
Gives information about the status of a dataObject
|
void |
setClusterLabel(int clusterID)
Sets the clusterID (cluster), to which this DataObject belongs to
|
void |
setCoreDistance(double c_dist)
Sets a new coreDistance for this dataObject
|
void |
setKey(java.lang.String key)
Sets the key for this DataObject
|
void |
setProcessed(boolean processed)
Marks this dataObject as processed
|
void |
setReachabilityDistance(double r_dist)
Sets a new reachability-distance for this dataObject
|
java.lang.String |
toString() |
public static final int UNCLASSIFIED
public static final int NOISE
public static final double UNDEFINED
public DataObject(weka.core.Instance originalInstance, java.lang.String key, Database database)
originalInstance
- the original instancepublic boolean equals(DataObject dataObject)
dataObject
- The DataObject, that is compared with this.dataObject;
now assumed to be of the same type and with the same structurepublic weka.core.Instance getInstance()
public java.lang.String getKey()
public void setKey(java.lang.String key)
key
- The key is represented as stringpublic void setClusterLabel(int clusterID)
clusterID
- Number of the Clusterpublic int getClusterLabel()
public void setProcessed(boolean processed)
processed
- True, if the DataObject has been already processed, false elsepublic boolean isProcessed()
public void setCoreDistance(double c_dist)
c_dist
- coreDistancepublic double getCoreDistance()
public void setReachabilityDistance(double r_dist)
public double getReachabilityDistance()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getRevision()
getRevision
in interface weka.core.RevisionHandler