Class SharedQueryCache

java.lang.Object
net.ssehub.easy.varModel.confModel.QueryCache
net.ssehub.easy.varModel.confModel.SharedQueryCache

class SharedQueryCache extends QueryCache
Alternative QueryCache if the same cache should be shared between two Configurations.
Author:
El-Sharkawy
  • Field Details

  • Constructor Details

    • SharedQueryCache

      SharedQueryCache(QueryCache original)
      Sole constructor for this class.
      Parameters:
      original - The shared cache instance, which should be wrapped by this cache.
  • Method Details

    • clear

      public void clear()
      Description copied from class: QueryCache
      Clears the cache, must be called from the configuration after the configuration was refreshed.
      Overrides:
      clear in class QueryCache
    • getPossibleValues

      public List<ConstraintSyntaxTree> getPossibleValues(Reference refType)
      Description copied from class: QueryCache
      Calculates possible values (ConstraintSyntaxTree-based) for a given Reference variable.
      Overrides:
      getPossibleValues in class QueryCache
      Parameters:
      refType - The reference for which possible values should be calculated for.
      Returns:
      A maybe empty list of possible values for the given Reference. This list is unmodifiable and should not be stored outside of this cache.