Interface ParameterCache

All Known Implementing Classes:
ArrayParameterCache, ParameterCacheImpl

public interface ParameterCache
  • Method Details

    • update

      void update(Collection<ParameterValue> pvs)
      update the parameters in the cache
      Parameters:
      pvs - - parameter value list
    • getValues

      List<ParameterValue> getValues(List<Parameter> plist)
      Returns cached value for parameter or an empty list if there is no value in the cache
      Parameters:
      plist -
      Returns:
    • getLastValue

      ParameterValue getLastValue(Parameter p)
      Returns last cached value for parameter or null if there is no value in the cache
      Parameters:
      p - - parameter for which the last value is returned
      Returns:
    • getAllValues

      List<ParameterValue> getAllValues(Parameter p)
      Returns all values from the cache for the parameter or null if there is no value cached The parameter are returned in descending order (newest parameter is returned first)
      Parameters:
      p - - parameter for which all values are returned
      Returns:
      all values from the cache for the parameter or null if there is no value cached
    • getAllValues

      List<ParameterValue> getAllValues(Parameter p, long start, long stop)
      Same as above but return all values that have the generation time in the (start, stop] interval
      Parameters:
      p -
      start -
      stop -
      Returns:
    • clear

      void clear()
      Remove all the parameters from the cache