messif.pivotselection
Class CoveragePivotChooser.PrecomputedDistances

java.lang.Object
  extended by messif.pivotselection.CoveragePivotChooser.PrecomputedDistances
Enclosing class:
CoveragePivotChooser

protected class CoveragePivotChooser.PrecomputedDistances
extends java.lang.Object

A cache for distances between a pair of objects


Constructor Summary
CoveragePivotChooser.PrecomputedDistances(AbstractObjectList<? extends LocalAbstractObject> objectList)
          Create and initilize the new instance of PrecomputedDistances.
 
Method Summary
 int getObjectCount()
          Number of objects cached in this class is returned.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CoveragePivotChooser.PrecomputedDistances

public CoveragePivotChooser.PrecomputedDistances(AbstractObjectList<? extends LocalAbstractObject> objectList)
Create and initilize the new instance of PrecomputedDistances. All pairs of distances are computed and cached.

Parameters:
objectList - list of objects
Method Detail

getObjectCount

public int getObjectCount()
Number of objects cached in this class is returned.

Returns:
number of objects that all pairs of distances among them are stored.