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

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

 class ClusterOrderResult.ReachabilityDistanceAdapter
extends Object
implements Relation<D>, ResultAdapter

Result containing the reachability distances.


Field Summary
private  DBIDs dbids
          DBIDs
private  HashMap<DBID,ClusterOrderEntry<D>> map
          Access reference.
 
Fields inherited from interface de.lmu.ifi.dbs.elki.database.query.DatabaseQuery
HINT_BULK, HINT_EXACT, HINT_HEAVY_USE, HINT_NO_CACHE, HINT_OPTIMIZED_ONLY, HINT_SINGLE
 
Constructor Summary
ClusterOrderResult.ReachabilityDistanceAdapter(HashMap<DBID,ClusterOrderEntry<D>> map, DBIDs dbids)
          Constructor.
 
Method Summary
 void delete(DBID id)
          Delete an objects values.
 D get(DBID objID)
          Get the representation of an object.
 Database getDatabase()
          Get the associated database.
 SimpleTypeInformation<D> getDataTypeInformation()
          Get the data type of this representation
 DBIDs getDBIDs()
          Get the IDs the query is defined for.
 ResultHierarchy getHierarchy()
          Get the objects current hierarchy - may be null!
 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> iterDBIDs()
          Get an iterator access to the DBIDs.
 void set(DBID id, D val)
          Set an object representation.
 void setHierarchy(ResultHierarchy hierarchy)
          Set (exchange) the hierarchy implementation (e.g. after merging!)
 int size()
          Get the number of DBIDs.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

map

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


dbids

private DBIDs dbids
DBIDs

Constructor Detail

ClusterOrderResult.ReachabilityDistanceAdapter

public ClusterOrderResult.ReachabilityDistanceAdapter(HashMap<DBID,ClusterOrderEntry<D>> map,
                                                      DBIDs dbids)
Constructor.

Parameters:
map - Map that stores the results.
dbids - DBIDs we are defined for.
Method Detail

get

public D get(DBID objID)
Description copied from interface: Relation
Get the representation of an object.

Specified by:
get in interface Relation<D extends Distance<D>>
Parameters:
objID - Object ID
Returns:
object instance

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

getDBIDs

public DBIDs getDBIDs()
Description copied from interface: Relation
Get the IDs the query is defined for.

Specified by:
getDBIDs in interface Relation<D extends Distance<D>>
Returns:
IDs this is defined for

iterDBIDs

public IterableIterator<DBID> iterDBIDs()
Description copied from interface: Relation
Get an iterator access to the DBIDs.

Specified by:
iterDBIDs in interface Relation<D extends Distance<D>>
Returns:
iterator for the DBIDs.

size

public int size()
Description copied from interface: Relation
Get the number of DBIDs.

Specified by:
size in interface Relation<D extends Distance<D>>
Returns:
Size

getDatabase

public Database getDatabase()
Description copied from interface: Relation
Get the associated database. Note: in some situations, this might be null!

Specified by:
getDatabase in interface Relation<D extends Distance<D>>
Returns:
Database

set

public void set(DBID id,
                D val)
Description copied from interface: Relation
Set an object representation.

Specified by:
set in interface Relation<D extends Distance<D>>
Parameters:
id - Object ID
val - Value

delete

public void delete(DBID id)
Description copied from interface: Relation
Delete an objects values.

Specified by:
delete in interface Relation<D extends Distance<D>>
Parameters:
id - ID to delete

getDataTypeInformation

public SimpleTypeInformation<D> getDataTypeInformation()
Description copied from interface: Relation
Get the data type of this representation

Specified by:
getDataTypeInformation in interface Relation<D extends Distance<D>>
Returns:
Data type

getHierarchy

public ResultHierarchy getHierarchy()
Description copied from interface: HierarchicalResult
Get the objects current hierarchy - may be null!

Specified by:
getHierarchy in interface HierarchicalResult
Returns:
current hierarchy. May be null!

setHierarchy

public void setHierarchy(ResultHierarchy hierarchy)
Description copied from interface: HierarchicalResult
Set (exchange) the hierarchy implementation (e.g. after merging!)

Specified by:
setHierarchy in interface HierarchicalResult
Parameters:
hierarchy - New hierarchy

Release 0.4.0 (2011-09-20_1324)