Class SimpleSimilarityCache
java.lang.Object
de.uni_trier.wi2.procake.adaptation.cache.AbstractSimilarityCache<SimpleSimilarityCacheMatrix>
de.uni_trier.wi2.procake.adaptation.cache.impl.SimpleSimilarityCache
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
ConstructorDescriptionSimpleSimilarityCache
(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, @NotNull 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, @NotNull 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, @NotNull SimCalculatorStrategy strategy) Creates a new simple similarity cache and tries to complete the data loaded from the path.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. -
Method Summary
Methods inherited from class de.uni_trier.wi2.procake.adaptation.cache.AbstractSimilarityCache
getCacheMatrix, getCases, getRoundedSimilarity, getSimilarity, updateAllSimilarities, updateAllSimilarities
-
Constructor Details
-
SimpleSimilarityCache
Constructor for SimpleSimilarityCache.
- Parameters:
pool
- aWriteableObjectPool
objectpathCache
- aString
object
-
SimpleSimilarityCache
public SimpleSimilarityCache(WriteableObjectPool queryPool, WriteableObjectPool casePool, String pathCache) Constructor for SimpleSimilarityCache.
- Parameters:
queryPool
- aWriteableObjectPool
objectcasePool
- aWriteableObjectPool
objectpathCache
- aString
object
-
SimpleSimilarityCache
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 @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 @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 @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 @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
-