Class InstrumentedAlgorithm<T extends Algorithm>

java.lang.Object
org.moeaframework.algorithm.extension.AlgorithmWrapper<T>
org.moeaframework.analysis.collector.InstrumentedAlgorithm<T>
All Implemented Interfaces:
Extensible, Algorithm, Configurable, Stateful

public class InstrumentedAlgorithm<T extends Algorithm> extends AlgorithmWrapper<T>
Wraps an algorithm to indicate it is instrumented to collect runtime data.
  • Constructor Details

    • InstrumentedAlgorithm

      public InstrumentedAlgorithm(T algorithm)
      Wraps the given algorithm to create an instrumented version.
      Parameters:
      algorithm - the algorithm
  • Method Details

    • registerExtension

      public InstrumentedExtension registerExtension(int frequency, FrequencyType frequencyType)
    • addCollector

      public void addCollector(Collector collector)
      Adds a collector to this instrumented algorithm. The collector should have already been attached to the algorithm.
      Parameters:
      collector - the collector
    • getObservations

      public Observations getObservations()
      Returns the observations collected from this algorithm.
      Returns:
      the observations