Class SimpleSimilarityCache
- java.lang.Object
-
- de.uni_trier.wi2.procake.adaptation.cache.AbstractSimilarityCache<SimpleSimilarityCacheMatrix>
-
- de.uni_trier.wi2.procake.adaptation.cache.impl.SimpleSimilarityCache
-
public class SimpleSimilarityCache extends AbstractSimilarityCache<SimpleSimilarityCacheMatrix>
SimpleSimilarityCache class.
-
-
Field Summary
-
Fields inherited from class de.uni_trier.wi2.procake.adaptation.cache.AbstractSimilarityCache
cacheMatrix, casePool, logger, queryPool, TIMER_INITIAL_DELAY_MS, TIMER_PERIOD_MS
-
-
Constructor Summary
Constructors Constructor Description SimpleSimilarityCache(WriteableObjectPool queryPool, WriteableObjectPool casePool, String pathCache)Constructor for SimpleSimilarityCache.SimpleSimilarityCache(WriteableObjectPool queryPool, WriteableObjectPool casePool, String pathCache, boolean complete)Creates a new simple similarity cache and tries to complete the data loaded from the path.SimpleSimilarityCache(WriteableObjectPool queryPool, WriteableObjectPool casePool, String pathCache, SimCalculatorStrategy strategy)Creates a new simple similarity cache and tries to complete the data loaded from the path.SimpleSimilarityCache(WriteableObjectPool queryPool, WriteableObjectPool casePool, String pathCache, SimCalculatorStrategy strategy, boolean complete)Creates a new simple similarity cache and tries to complete the data loaded from the path.SimpleSimilarityCache(WriteableObjectPool pool, String pathCache)Constructor for SimpleSimilarityCache.SimpleSimilarityCache(WriteableObjectPool pool, String pathCache, boolean complete)Creates a new simple similarity cache and tries to complete the data loaded from the path.SimpleSimilarityCache(WriteableObjectPool pool, String pathCache, SimCalculatorStrategy strategy)Creates a new simple similarity cache and tries to complete the data loaded from the path.SimpleSimilarityCache(WriteableObjectPool pool, String pathCache, SimCalculatorStrategy strategy, boolean complete)Creates a new simple similarity cache and tries to complete the data loaded from the path.
-
Method Summary
-
Methods inherited from class de.uni_trier.wi2.procake.adaptation.cache.AbstractSimilarityCache
getCacheMatrix, getCases, getRoundedSimilarity, getSimilarity, updateAllSimilarities, updateAllSimilarities
-
-
-
-
Constructor Detail
-
SimpleSimilarityCache
public SimpleSimilarityCache(WriteableObjectPool pool, String pathCache)
Constructor for SimpleSimilarityCache.
- Parameters:
pool- aWriteableObjectPoolobjectpathCache- aStringobject
-
SimpleSimilarityCache
public SimpleSimilarityCache(WriteableObjectPool queryPool, WriteableObjectPool casePool, String pathCache)
Constructor for SimpleSimilarityCache.
- Parameters:
queryPool- aWriteableObjectPoolobjectcasePool- aWriteableObjectPoolobjectpathCache- aStringobject
-
SimpleSimilarityCache
public SimpleSimilarityCache(WriteableObjectPool pool, String pathCache, boolean complete)
Creates a new simple similarity cache and tries to complete the data loaded from the path.- Parameters:
pool- the case basepathCache- the path to the existing cachecomplete- whether to complete the loaded cache or do nothing
-
SimpleSimilarityCache
public SimpleSimilarityCache(WriteableObjectPool queryPool, WriteableObjectPool casePool, String pathCache, boolean complete)
Creates a new simple similarity cache and tries to complete the data loaded from the path.- Parameters:
queryPool- the relevant query case base for the SimCache.casePool- the relevant case case base for the SimCache.pathCache- the path to the existing cachecomplete- whether to complete the loaded cache or do nothing
-
SimpleSimilarityCache
public SimpleSimilarityCache(WriteableObjectPool pool, String pathCache, @NotNull SimCalculatorStrategy strategy)
Creates a new simple similarity cache and tries to complete the data loaded from the path.- Parameters:
pool- the case basepathCache- the path to the existing cachestrategy- the strategy to use to compute the similarities
-
SimpleSimilarityCache
public SimpleSimilarityCache(WriteableObjectPool queryPool, WriteableObjectPool casePool, String pathCache, @NotNull SimCalculatorStrategy strategy)
Creates a new simple similarity cache and tries to complete the data loaded from the path.- Parameters:
queryPool- the relevant query case base for the SimCache.casePool- the relevant case case base for the SimCache.pathCache- the path to the existing cachestrategy- the strategy to use to compute the similarities
-
SimpleSimilarityCache
public SimpleSimilarityCache(WriteableObjectPool pool, String pathCache, @NotNull SimCalculatorStrategy strategy, boolean complete)
Creates a new simple similarity cache and tries to complete the data loaded from the path.- Parameters:
pool- the case basepathCache- the path to the existing cachestrategy- the strategy to use to compute the similaritiescomplete- whether to complete the loaded cache or do nothing
-
SimpleSimilarityCache
public SimpleSimilarityCache(WriteableObjectPool queryPool, WriteableObjectPool casePool, String pathCache, @NotNull SimCalculatorStrategy strategy, boolean complete)
Creates a new simple similarity cache and tries to complete the data loaded from the path.- Parameters:
queryPool- the relevant query case base for the SimCache.casePool- the relevant case case base for the SimCache.pathCache- the path to the existing cachestrategy- the strategy to use to compute the similaritiescomplete- whether to complete the loaded cache or do nothing
-
-