public class ManhattanDataObject extends java.lang.Object implements DataObject, java.io.Serializable, RevisionHandler
ManhattanDataObject.java
Authors: Rainer Holzmann, Zhanna Melnikova-Albrecht, Matthias Schubert
Date: Aug 19, 2004
Time: 5:50:22 PM
$ Revision 1.4 $
NOISE, UNCLASSIFIED, UNDEFINED
Constructor and Description |
---|
ManhattanDataObject(Instance originalInstance,
java.lang.String key,
Database database)
Constructs a new DataObject.
|
Modifier and Type | Method and Description |
---|---|
double |
distance(DataObject dataObject)
Calculates the manhattan-distance between dataObject and this.dataObject
|
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
|
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 boolean equals(DataObject dataObject)
equals
in interface DataObject
dataObject
- The DataObject, that is compared with this.dataObject;
now assumed to be of the same type and with the same structurepublic double distance(DataObject dataObject)
distance
in interface DataObject
dataObject
- The DataObject, that is used for distance-calculation with this.dataObject
now assumed to be of the same type and with the same structurepublic Instance getInstance()
getInstance
in interface DataObject
public java.lang.String getKey()
getKey
in interface DataObject
public void setKey(java.lang.String key)
setKey
in interface DataObject
key
- The key is represented as stringpublic void setClusterLabel(int clusterID)
setClusterLabel
in interface DataObject
clusterID
- Number of the Clusterpublic int getClusterLabel()
getClusterLabel
in interface DataObject
public void setProcessed(boolean processed)
setProcessed
in interface DataObject
processed
- True, if the DataObject has been already processed, false elsepublic boolean isProcessed()
isProcessed
in interface DataObject
public void setCoreDistance(double c_dist)
setCoreDistance
in interface DataObject
c_dist
- coreDistancepublic double getCoreDistance()
getCoreDistance
in interface DataObject
public void setReachabilityDistance(double r_dist)
setReachabilityDistance
in interface DataObject
public double getReachabilityDistance()
getReachabilityDistance
in interface DataObject
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getRevision()
getRevision
in interface RevisionHandler