Class SimCalculatorRetrieverStrategy
- java.lang.Object
-
- de.uni_trier.wi2.procake.adaptation.cache.impl.strategies.SimCalculatorRetrieverStrategy
-
- All Implemented Interfaces:
SimCalculatorStrategy
public class SimCalculatorRetrieverStrategy extends Object implements SimCalculatorStrategy
Computes similarities for the similarity cache by using a standard parallelized retriever.- Author:
- Maximilian Hoffmann
-
-
Constructor Summary
Constructors Constructor Description SimCalculatorRetrieverStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longcomputeSimilarities(DecimalFormat df, WriteableObjectPool queryPool, WriteableObjectPool casePool, AbstractSimilarityCacheMatrix similarityMatrix)Computes the similarities according to the strategy.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.uni_trier.wi2.procake.adaptation.cache.impl.strategies.SimCalculatorStrategy
printProgressAndEstimation
-
-
-
-
Method Detail
-
computeSimilarities
public long computeSimilarities(DecimalFormat df, WriteableObjectPool queryPool, WriteableObjectPool casePool, AbstractSimilarityCacheMatrix similarityMatrix)
Computes the similarities according to the strategy. Thereby, the implementation should use the given methods of this interface to enable printing of the progress and utilizing the cache functionality.- Specified by:
computeSimilaritiesin interfaceSimCalculatorStrategy- Parameters:
df- the decimal format to usequeryPool- Pool of queriescasePool- Pool of casessimilarityMatrix- the similarity matrix to fill- Returns:
- the overall time the procedure ran
-
-