de.lmu.ifi.dbs.elki.result.optics
Class ClusterOrderResult.ClusterOrderAdapter

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.result.optics.ClusterOrderResult.ClusterOrderAdapter
All Implemented Interfaces:
OrderingResult, Result, ResultAdapter
Enclosing class:
ClusterOrderResult<D extends Distance<D>>

 class ClusterOrderResult.ClusterOrderAdapter
extends Object
implements OrderingResult, ResultAdapter

Ordering part of the result.


Field Summary
private  ArrayList<ClusterOrderEntry<D>> clusterOrder
          Access reference.
 
Constructor Summary
ClusterOrderResult.ClusterOrderAdapter(ArrayList<ClusterOrderEntry<D>> clusterOrder)
          Constructor.
 
Method Summary
 DBIDs getDBIDs()
          Get the full set of DBIDs this ordering is defined for.
 String getLongName()
          A "pretty" name for the result, for use in titles, captions and menus.
 String getShortName()
          A short name for the result, useful for file names.
 IterableIterator<DBID> iter(DBIDs ids)
          Use the cluster order to sort the given collection ids.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

clusterOrder

private ArrayList<ClusterOrderEntry<D extends Distance<D>>> clusterOrder
Access reference.

Constructor Detail

ClusterOrderResult.ClusterOrderAdapter

public ClusterOrderResult.ClusterOrderAdapter(ArrayList<ClusterOrderEntry<D>> clusterOrder)
Constructor.

Parameters:
clusterOrder - order to return
Method Detail

getDBIDs

public DBIDs getDBIDs()
Description copied from interface: OrderingResult
Get the full set of DBIDs this ordering is defined for.

Specified by:
getDBIDs in interface OrderingResult
Returns:
DBIDs

iter

public IterableIterator<DBID> iter(DBIDs ids)
Use the cluster order to sort the given collection ids. Implementation of the OrderingResult interface.

Specified by:
iter in interface OrderingResult
Parameters:
ids - Collection of ids.
Returns:
iterator for sorted array of ids

getLongName

public String getLongName()
Description copied from interface: Result
A "pretty" name for the result, for use in titles, captions and menus.

Specified by:
getLongName in interface Result
Returns:
result name

getShortName

public String getShortName()
Description copied from interface: Result
A short name for the result, useful for file names.

Specified by:
getShortName in interface Result
Returns:
result name

Release 0.4.0 (2011-09-20_1324)