Interface DataObject
-
- All Known Implementing Classes:
EuclideanDataObject,ManhattanDataObject
public interface DataObjectDataObject.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
Fields Modifier and Type Field Description static intNOISEstatic intUNCLASSIFIEDstatic doubleUNDEFINED
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description doubledistance(DataObject dataObject)Calculates the distance between dataObject and this.dataObjectbooleanequals(DataObject dataObject)Compares two DataObjects in respect to their attribute-valuesintgetClusterLabel()Returns the clusterID, to which this DataObject belongs todoublegetCoreDistance()Returns the coreDistance for this dataObjectInstancegetInstance()Returns the original instancejava.lang.StringgetKey()Returns the key for this DataObjectdoublegetReachabilityDistance()Returns the reachabilityDistance for this dataObjectbooleanisProcessed()Gives 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 dataObjectvoidsetKey(java.lang.String key)Sets the key for this DataObjectvoidsetProcessed(boolean processed)Marks this dataObject as processedvoidsetReachabilityDistance(double r_dist)Sets a new reachability-distance for this dataObject
-
-
-
Field Detail
-
UNCLASSIFIED
static final int UNCLASSIFIED
- See Also:
- Constant Field Values
-
NOISE
static final int NOISE
- See Also:
- Constant Field Values
-
UNDEFINED
static final double UNDEFINED
- See Also:
- Constant Field Values
-
-
Method Detail
-
equals
boolean equals(DataObject dataObject)
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
double distance(DataObject dataObject)
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
java.lang.String getKey()
Returns the key for this DataObject- Returns:
- key
-
setKey
void setKey(java.lang.String key)
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
-
-