Class SimilarityCache


public class SimilarityCache extends AbstractSimilarityCache<SimilarityCacheMatrix>

SimilarityCache class.

  • Constructor Details

    • SimilarityCache

      public SimilarityCache(WriteableObjectPool pool, String pathCache)
      This constructor creates a new SimilarityCacheMatrix for a given CaseBase, calculates all similarities and stores them under the given path.
      Parameters:
      pool - the relevant CaseBase for the SimCache.
      pathCache - a Path to search for an existing simCache or to store a new simCache. Should not be null.
    • SimilarityCache

      public SimilarityCache(WriteableObjectPool queryPool, WriteableObjectPool casePool, String pathCache)
      This constructor creates a new SimilarityCacheMatrix for a given CaseBase, calculates all similarities and stores them under the given path.
      Parameters:
      queryPool - the relevant query case base for the SimCache.
      casePool - the relevant case case base for the SimCache.
      pathCache - a Path to search for an existing simCache or to store a new simCache. Should not be null.
    • SimilarityCache

      public SimilarityCache(WriteableObjectPool pool, String pathCache, SimCalculatorStrategy strategy)
      This constructor creates a new SimilarityCacheMatrix for a given CaseBase, calculates all similarities and stores them under the given path.
      Parameters:
      pool - the relevant CaseBase for the SimCache.
      pathCache - a Path to search for an existing simCache or to store a new simCache. Should not be null.
      strategy - the strategy to use to compute the similarities
    • SimilarityCache

      public SimilarityCache(WriteableObjectPool queryPool, WriteableObjectPool casePool, String pathCache, SimCalculatorStrategy strategy)
      This constructor creates a new SimilarityCacheMatrix for a given CaseBase, calculates all similarities and stores them under the given path.
      Parameters:
      queryPool - the relevant query case base for the SimCache.
      casePool - the relevant case case base for the SimCache.
      pathCache - a Path to search for an existing simCache or to store a new simCache. Should not be null.
      strategy - the strategy to use to compute the similarities
    • SimilarityCache

      public SimilarityCache(WriteableObjectPool pool, SimilarityCacheMatrix matrix)
      This constructor creates a new SimilarityCache for a given CaseBase and SimilarityCacheMatrix. The Matrix will not be calculated and stored in a file.
      Parameters:
      pool - the relevant CaseBase for the SimCache.
      matrix - a existing SimilarityCacheMatrix for the given CaseBase.
    • SimilarityCache

      public SimilarityCache(WriteableObjectPool queryPool, WriteableObjectPool casePool, SimilarityCacheMatrix matrix)
      This constructor creates a new SimilarityCache for a given CaseBase and SimilarityCacheMatrix. The Matrix will not be calculated and stored in a file.
      Parameters:
      queryPool - the relevant query case base for the SimCache.
      casePool - the relevant case case base for the SimCache.
      matrix - a existing SimilarityCacheMatrix for the given CaseBase.
    • SimilarityCache

      public SimilarityCache(WriteableObjectPool pool, SimilarityCacheMatrix matrix, SimCalculatorStrategy strategy)
      This constructor creates a new SimilarityCache for a given CaseBase and SimilarityCacheMatrix. The Matrix will not be calculated and stored in a file.
      Parameters:
      pool - the relevant CaseBase for the SimCache.
      matrix - an existing SimilarityCacheMatrix for the given CaseBase.
      strategy - the strategy to use to compute the similarities
    • SimilarityCache

      public SimilarityCache(WriteableObjectPool queryPool, WriteableObjectPool casePool, SimilarityCacheMatrix matrix, SimCalculatorStrategy strategy)
      This constructor creates a new SimilarityCache for a given CaseBase and SimilarityCacheMatrix. The Matrix will not be calculated and stored in a file.
      Parameters:
      queryPool - the relevant query case base for the SimCache.
      casePool - the relevant case case base for the SimCache.
      matrix - an existing SimilarityCacheMatrix for the given CaseBase.
      strategy - the strategy to use to compute the similarities
  • Method Details