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
Fields Modifier and Type Field Description static int
NOISE
static int
UNCLASSIFIED
static double
UNDEFINED
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description double
distance(DataObject dataObject)
Calculates the distance between dataObject and this.dataObjectboolean
equals(DataObject dataObject)
Compares two DataObjects in respect to their attribute-valuesint
getClusterLabel()
Returns the clusterID, to which this DataObject belongs todouble
getCoreDistance()
Returns the coreDistance for this dataObjectInstance
getInstance()
Returns the original instancejava.lang.String
getKey()
Returns the key for this DataObjectdouble
getReachabilityDistance()
Returns the reachabilityDistance for this dataObjectboolean
isProcessed()
Gives information about the status of a dataObjectvoid
setClusterLabel(int clusterID)
Sets the clusterID (cluster), to which this DataObject belongs tovoid
setCoreDistance(double c_dist)
Sets a new coreDistance for this dataObjectvoid
setKey(java.lang.String key)
Sets the key for this DataObjectvoid
setProcessed(boolean processed)
Marks this dataObject as processedvoid
setReachabilityDistance(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
-
-