Environment for
DeveLoping
KDD-Applications
Supported by Index-Structures

de.lmu.ifi.dbs.elki.data
Interface DatabaseObject

All Known Subinterfaces:
FeatureVector<V,N>
All Known Implementing Classes:
AbstractDatabaseObject, BitVector, Cluster, DoubleVector, ExternalObject, FloatVector, MultiInstanceObject, MultiRepresentedObject, NumberVector, ParameterizationFunction, RealVector, SparseFloatVector

public interface DatabaseObject

A DatabaseObject should provide handling of a database ID. All implementing classes should overwrite equals(Object) to ensure equality evaluation based on the specific values of the DatabaseObject rather than their ID or identity.

Author:
Arthur Zimek

Method Summary
 boolean equals(Object obj)
          Equality of DatabaseObject should be defined by their values regardless of their id.
 Integer getID()
          Returns the unique id of this database object.
 void setID(Integer id)
          Sets the id of this database object.
 

Method Detail

equals

boolean equals(Object obj)
Equality of DatabaseObject should be defined by their values regardless of their id.

Overrides:
equals in class Object
Parameters:
obj - another DatabaseObject
Returns:
true if all values of both DatabaseObjects are equal, false otherwise

getID

Integer getID()
Returns the unique id of this database object.

Returns:
the unique id of this database object

setID

void setID(Integer id)
Sets the id of this database object. The id must be unique within one database.

Parameters:
id - the id to be set

Release 0.2.1 (2009-07-13_1605)