de.lmu.ifi.dbs.elki.datasource.parser
Class DistanceParsingResult<D extends Distance<D>>

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.datasource.parser.DistanceParsingResult<D>
Type Parameters:
D - distance type

public class DistanceParsingResult<D extends Distance<D>>
extends Object

Provides a list of database objects and labels associated with these objects and a cache of precomputed distances between the database objects.


Field Summary
private  Map<DBIDPair,D> distanceCache
          The cache of precomputed distances between the database objects.
private  MultipleObjectsBundle objects
          Objects representation (DBIDs and/or external IDs)
 
Constructor Summary
DistanceParsingResult(MultipleObjectsBundle objectAndLabelList, Map<DBIDPair,D> distanceCache)
          Provides a list of database objects, a list of label objects associated with these objects and cached distances between these objects.
 
Method Summary
 Map<DBIDPair,D> getDistanceCache()
          Returns the cache of precomputed distances between the database objects.
 MultipleObjectsBundle getObjects()
          Get the objects
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

distanceCache

private final Map<DBIDPair,D extends Distance<D>> distanceCache
The cache of precomputed distances between the database objects.


objects

private MultipleObjectsBundle objects
Objects representation (DBIDs and/or external IDs)

Constructor Detail

DistanceParsingResult

public DistanceParsingResult(MultipleObjectsBundle objectAndLabelList,
                             Map<DBIDPair,D> distanceCache)
Provides a list of database objects, a list of label objects associated with these objects and cached distances between these objects.

Parameters:
objectAndLabelList - the list of database objects and labels associated with these objects
distanceCache - the cache of precomputed distances between the database objects
Method Detail

getDistanceCache

public Map<DBIDPair,D> getDistanceCache()
Returns the cache of precomputed distances between the database objects.

Returns:
the cache of precomputed distances between the database objects

getObjects

public MultipleObjectsBundle getObjects()
Get the objects

Returns:
the objects bundle

Release 0.4.0 (2011-09-20_1324)