Class DummyMetricMemoizer<N extends Node>

  • All Implemented Interfaces:
    MetricMemoizer<N>

    public final class DummyMetricMemoizer<N extends Node>
    extends java.lang.Object
    implements MetricMemoizer<N>
    Memoizes nothing.
    Since:
    6.11.0
    Author:
    Clément Fournier
    • Method Detail

      • getMemo

        public java.lang.Double getMemo​(ParameterizedMetricKey<N> key)
        Description copied from interface: MetricMemoizer
        Fetch a memoized result for a metric and options.
        Specified by:
        getMemo in interface MetricMemoizer<N extends Node>
        Parameters:
        key - The metric key parameterized with its options
        Returns:
        The memoized result, or null if it wasn't found
      • memoize

        public void memoize​(ParameterizedMetricKey<N> key,
                            double value)
        Description copied from interface: MetricMemoizer
        Memoizes a result for a metric and options.
        Specified by:
        memoize in interface MetricMemoizer<N extends Node>
        Parameters:
        key - The metric key parameterized with its options
        value - The value to store