Interface IntervalConsumer<T extends Copyable<T>>

Type Parameters:
T - The type of object being optimized.
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface IntervalConsumer<T extends Copyable<T>>
A callback interface enabling logging, tracking, etc the progress of a timed parallel search.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    accept(int interval, SolutionCostPair<T> bestAtInterval)
    Fired at each time interval during a parallel search.
  • Method Details

    • accept

      void accept(int interval, SolutionCostPair<T> bestAtInterval)
      Fired at each time interval during a parallel search.
      Parameters:
      interval - The current time interval index.
      bestAtInterval - The best solution found up to this interval.