Interface DataObject
- All Known Implementing Classes:
EuclideanDataObject,ManhattanDataObject
public interface DataObject
DataObject.java
Authors: Rainer Holzmann, Zhanna Melnikova-Albrecht, Matthias Schubert
Date: Aug 19, 2004
Time: 5:48:59 PM
$ Revision 1.4 $
- Version:
- $Revision: 8108 $
- Author:
- Matthias Schubert (schubert@dbs.ifi.lmu.de), Zhanna Melnikova-Albrecht (melnikov@cip.ifi.lmu.de), Rainer Holzmann (holzmann@cip.ifi.lmu.de)
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final double -
Method Summary
Modifier and TypeMethodDescriptiondoubledistance(DataObject dataObject) Calculates the distance between dataObject and this.dataObjectbooleanequals(DataObject dataObject) Compares two DataObjects in respect to their attribute-valuesintReturns the clusterID, to which this DataObject belongs todoubleReturns the coreDistance for this dataObjectReturns the original instancegetKey()Returns the key for this DataObjectdoubleReturns the reachabilityDistance for this dataObjectbooleanGives information about the status of a dataObjectvoidsetClusterLabel(int clusterID) Sets the clusterID (cluster), to which this DataObject belongs tovoidsetCoreDistance(double c_dist) Sets a new coreDistance for this dataObjectvoidSets the key for this DataObjectvoidsetProcessed(boolean processed) Marks this dataObject as processedvoidsetReachabilityDistance(double r_dist) Sets a new reachability-distance for this dataObject
-
Field Details
-
UNCLASSIFIED
static final int UNCLASSIFIED- See Also:
-
NOISE
static final int NOISE- See Also:
-
UNDEFINED
static final double UNDEFINED- See Also:
-
-
Method Details
-
equals
Compares two DataObjects in respect to their attribute-values- Parameters:
dataObject- The DataObject, that is compared with this.dataObject- Returns:
- Returns true, if the DataObjects correspond in each value, else returns false
-
distance
Calculates the distance between dataObject and this.dataObject- Parameters:
dataObject- The DataObject, that is used for distance-calculation with this.dataObject- Returns:
- double-value The distance between dataObject and this.dataObject
-
getInstance
Instance getInstance()Returns the original instance- Returns:
- originalInstance
-
getKey
String getKey()Returns the key for this DataObject- Returns:
- key
-
setKey
Sets the key for this DataObject- Parameters:
key- The key is represented as string
-
setClusterLabel
void setClusterLabel(int clusterID) Sets the clusterID (cluster), to which this DataObject belongs to- Parameters:
clusterID- Number of the Cluster
-
getClusterLabel
int getClusterLabel()Returns the clusterID, to which this DataObject belongs to- Returns:
- clusterID
-
setProcessed
void setProcessed(boolean processed) Marks this dataObject as processed- Parameters:
processed- True, if the DataObject has been already processed, false else
-
isProcessed
boolean isProcessed()Gives information about the status of a dataObject- Returns:
- True, if this dataObject has been processed, else false
-
setCoreDistance
void setCoreDistance(double c_dist) Sets a new coreDistance for this dataObject- Parameters:
c_dist- coreDistance
-
getCoreDistance
double getCoreDistance()Returns the coreDistance for this dataObject- Returns:
- coreDistance
-
setReachabilityDistance
void setReachabilityDistance(double r_dist) Sets a new reachability-distance for this dataObject -
getReachabilityDistance
double getReachabilityDistance()Returns the reachabilityDistance for this dataObject
-