Class SharedQueryCache
java.lang.Object
net.ssehub.easy.varModel.confModel.QueryCache
net.ssehub.easy.varModel.confModel.SharedQueryCache
Alternative
QueryCache if the same cache should be shared between two Configurations.- Author:
- El-Sharkawy
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clears the cache, must be called from the configuration after the configuration was refreshed.getPossibleValues(Reference refType) Calculates possible values (ConstraintSyntaxTree-based) for a givenReferencevariable.
-
Field Details
-
delegate
-
-
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:QueryCacheClears the cache, must be called from the configuration after the configuration was refreshed.- Overrides:
clearin classQueryCache
-
getPossibleValues
Description copied from class:QueryCacheCalculates possible values (ConstraintSyntaxTree-based) for a givenReferencevariable.- Overrides:
getPossibleValuesin classQueryCache- 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.
-