public class EuclidianDataObject extends Object implements DataObject, Serializable, RevisionHandler
EuclidianDataObject.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 |
---|
EuclidianDataObject(Instance originalInstance,
String key,
Database database)
Constructs a new DataObject.
|
Modifier and Type | Method and Description |
---|---|
double |
distance(DataObject dataObject)
Calculates the euclidian-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
|
String |
getKey()
Returns the key for this DataObject
|
double |
getReachabilityDistance()
Returns the reachabilityDistance for this dataObject
|
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(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
|
String |
toString() |
public boolean equals(DataObject dataObject)
equals
in interface DataObject
dataObject
- The DataObject, that is compared with this.dataObjectpublic double distance(DataObject dataObject)
distance
in interface DataObject
dataObject
- The DataObject, that is used for distance-calculation with this.dataObjectpublic Instance getInstance()
getInstance
in interface DataObject
public String getKey()
getKey
in interface DataObject
public void setKey(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 String getRevision()
getRevision
in interface RevisionHandler
Copyright © 2015 University of Waikato, Hamilton, NZ. All rights reserved.