Environment for
DeveLoping
KDD-Applications
Supported by Index-Structures

de.lmu.ifi.dbs.elki.result
Class ClusterOrderResult.PredecessorAdapter

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.result.ClusterOrderResult.PredecessorAdapter
All Implemented Interfaces:
AnnotationResult<Integer>, Result
Enclosing class:
ClusterOrderResult<D extends Distance<?>>

 class ClusterOrderResult.PredecessorAdapter
extends Object
implements AnnotationResult<Integer>

Result containing the predecessor ID.

Author:
Erich Schubert

Field Summary
private  HashMap<Integer,ClusterOrderEntry<D>> map
          Access reference.
 
Constructor Summary
ClusterOrderResult.PredecessorAdapter(HashMap<Integer,ClusterOrderEntry<D>> map)
          Constructor.
 
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

map

private HashMap<Integer,ClusterOrderEntry<D extends Distance<?>>> map
Access reference.

Constructor Detail

ClusterOrderResult.PredecessorAdapter

public ClusterOrderResult.PredecessorAdapter(HashMap<Integer,ClusterOrderEntry<D>> map)
Constructor.

Parameters:
map - Map that stores the results.
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)