Environment for
DeveLoping
KDD-Applications
Supported by Index-Structures

de.lmu.ifi.dbs.elki.result
Class IDResult

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.result.IDResult
All Implemented Interfaces:
AnnotationResult<Integer>, Result

public class IDResult
extends Object
implements AnnotationResult<Integer>

The trivial 'result' of the object IDs used.

Author:
Erich Schubert

Field Summary
static AssociationID<Integer> OBJECT_ID
          The association ID to use.
 
Constructor Summary
IDResult()
           
 
Method Summary
 AssociationID<Integer> getAssociationID()
          Return the association ID of this result.
 String getName()
          Get a user-understandable name for this result.
 Integer getValueFor(Integer objID)
          Get associated value for an object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OBJECT_ID

public static final AssociationID<Integer> OBJECT_ID
The association ID to use.

Constructor Detail

IDResult

public IDResult()
Method Detail

getAssociationID

public AssociationID<Integer> getAssociationID()
Description copied from interface: AnnotationResult
Return the association ID of this result.

Specified by:
getAssociationID in interface AnnotationResult<Integer>
Returns:
Association ID

getValueFor

public Integer getValueFor(Integer objID)
Description copied from interface: AnnotationResult
Get associated value for an object.

Specified by:
getValueFor in interface AnnotationResult<Integer>
Parameters:
objID - Object ID
Returns:
Associated value

getName

public String getName()
Description copied from interface: Result
Get a user-understandable name for this result. Defaults may be returned such as "list" for a list result.

Specified by:
getName in interface Result
Returns:
result name

Release 0.3 (2010-03-31_1612)