接口 DataObject

所有已知实现类:
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 $

版本:
$Revision: 8108 $
作者:
Matthias Schubert (schubert@dbs.ifi.lmu.de), Zhanna Melnikova-Albrecht (melnikov@cip.ifi.lmu.de), Rainer Holzmann (holzmann@cip.ifi.lmu.de)
  • 字段概要

    字段
    修饰符和类型
    字段
    说明
    static final int
     
    static final int
     
    static final double
     
  • 方法概要

    修饰符和类型
    方法
    说明
    double
    distance(DataObject dataObject)
    Calculates the distance between dataObject and this.dataObject
    boolean
    equals(DataObject dataObject)
    Compares two DataObjects in respect to their attribute-values
    int
    Returns the clusterID, to which this DataObject belongs to
    double
    Returns the coreDistance for this dataObject
    Returns the original instance
    Returns the key for this DataObject
    double
    Returns the reachabilityDistance for this dataObject
    boolean
    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
    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
  • 字段详细资料

  • 方法详细资料

    • equals

      boolean equals(DataObject dataObject)
      Compares two DataObjects in respect to their attribute-values
      参数:
      dataObject - The DataObject, that is compared with this.dataObject
      返回:
      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
      参数:
      dataObject - The DataObject, that is used for distance-calculation with this.dataObject
      返回:
      double-value The distance between dataObject and this.dataObject
    • getInstance

      Instance getInstance()
      Returns the original instance
      返回:
      originalInstance
    • getKey

      String getKey()
      Returns the key for this DataObject
      返回:
      key
    • setKey

      void setKey(String key)
      Sets the key for this DataObject
      参数:
      key - The key is represented as string
    • setClusterLabel

      void setClusterLabel(int clusterID)
      Sets the clusterID (cluster), to which this DataObject belongs to
      参数:
      clusterID - Number of the Cluster
    • getClusterLabel

      int getClusterLabel()
      Returns the clusterID, to which this DataObject belongs to
      返回:
      clusterID
    • setProcessed

      void setProcessed(boolean processed)
      Marks this dataObject as processed
      参数:
      processed - True, if the DataObject has been already processed, false else
    • isProcessed

      boolean isProcessed()
      Gives information about the status of a dataObject
      返回:
      True, if this dataObject has been processed, else false
    • setCoreDistance

      void setCoreDistance(double c_dist)
      Sets a new coreDistance for this dataObject
      参数:
      c_dist - coreDistance
    • getCoreDistance

      double getCoreDistance()
      Returns the coreDistance for this dataObject
      返回:
      coreDistance
    • setReachabilityDistance

      void setReachabilityDistance(double r_dist)
      Sets a new reachability-distance for this dataObject
    • getReachabilityDistance

      double getReachabilityDistance()
      Returns the reachabilityDistance for this dataObject