Interface MetricMemoizer<N extends Node>

  • Type Parameters:
    N - Type of node on which the memoized metric can be computed
    All Known Implementing Classes:
    BasicMetricMemoizer

    @Deprecated
    public interface MetricMemoizer<N extends Node>
    Deprecated.
    See package description
    Objects capable of memoizing metrics for a specific type of node. A default implementation is provided, see BasicMetricMemoizer.
    Since:
    6.0.0
    Author:
    Clément Fournier
    • Method Detail

      • getMemo

        Double getMemo​(ParameterizedMetricKey<N> key)
        Deprecated.
        Fetch a memoized result for a metric and options.
        Parameters:
        key - The metric key parameterized with its options
        Returns:
        The memoized result, or null if it wasn't found
      • memoize

        void memoize​(ParameterizedMetricKey<N> key,
                     double value)
        Deprecated.
        Memoizes a result for a metric and options.
        Parameters:
        key - The metric key parameterized with its options
        value - The value to store