Class SimCalculatorSingleStrategy
- java.lang.Object
-
- de.uni_trier.wi2.procake.adaptation.cache.impl.strategies.SimCalculatorSingleStrategy
-
- All Implemented Interfaces:
SimCalculatorStrategy
public class SimCalculatorSingleStrategy extends Object implements SimCalculatorStrategy
Computes similarities for the similarity cache by computing those similarities individually without using retrievers.- Author:
- Maximilian Hoffmann
-
-
Field Summary
-
Fields inherited from interface de.uni_trier.wi2.procake.adaptation.cache.impl.strategies.SimCalculatorStrategy
logger
-
-
Constructor Summary
Constructors Constructor Description SimCalculatorSingleStrategy()
-
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
-
-