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.

  • Constructor Details

    • SimpleSimilarityCache

      public SimpleSimilarityCache(WriteableObjectPool pool, String pathCache)

      Constructor for SimpleSimilarityCache.

      Parameters:
      pool - a WriteableObjectPool object
      pathCache - a String object
    • SimpleSimilarityCache

      public SimpleSimilarityCache(WriteableObjectPool queryPool, WriteableObjectPool casePool, String pathCache)

      Constructor for SimpleSimilarityCache.

      Parameters:
      queryPool - a WriteableObjectPool object
      casePool - a WriteableObjectPool object
      pathCache - a String object
    • 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 base
      pathCache - the path to the existing cache
      complete - 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 cache
      complete - 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 base
      pathCache - the path to the existing cache
      strategy - 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 cache
      strategy - 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 base
      pathCache - the path to the existing cache
      strategy - the strategy to use to compute the similarities
      complete - 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 cache
      strategy - the strategy to use to compute the similarities
      complete - whether to complete the loaded cache or do nothing