Class RuntimeCollectorExtension

java.lang.Object
org.moeaframework.algorithm.extension.PeriodicExtension
org.moeaframework.algorithm.extension.RuntimeCollectorExtension
All Implemented Interfaces:
Extension, Stateful

public class RuntimeCollectorExtension extends PeriodicExtension
Extends an algorithm to record the approximation sets at periodic intervals.
  • Constructor Details

    • RuntimeCollectorExtension

      public RuntimeCollectorExtension(ResultFileWriter writer, int frequency, FrequencyType frequencyType)
      Constructs a new wrapper to collect runtime dynamics.
      Parameters:
      writer - the result file writer where the runtime information is stored
      frequency - the frequency at which the runtime snapshots are recorded
      frequencyType - the type of frequency
  • Method Details

    • onRegister

      public void onRegister(Algorithm algorithm)
      Description copied from interface: Extension
      Called when this extension is registered with an algorithm. This can be used to perform any type checking or initialization.
      Specified by:
      onRegister in interface Extension
      Overrides:
      onRegister in class PeriodicExtension
      Parameters:
      algorithm - the algorithm associated with this extension
    • doAction

      public void doAction(Algorithm algorithm)
      Description copied from class: PeriodicExtension
      The action that is called by this extension.
      Specified by:
      doAction in class PeriodicExtension
      Parameters:
      algorithm - the algorithm associated with this extension