Class IteratesMonitor<S>

java.lang.Object
dev.nm.misc.algorithm.iterative.monitor.IteratesMonitor<S>
All Implemented Interfaces:
IterationMonitor<S>
Direct Known Subclasses:
VectorMonitor

public class IteratesMonitor<S> extends Object implements IterationMonitor<S>
This IterationMonitor stores all states generated during iterations.
  • Constructor Details

    • IteratesMonitor

      public IteratesMonitor()
      Construct a monitor to keep track of the states in all iterations.
  • Method Details

    • addIterate

      public void addIterate(S s)
      Description copied from interface: IterationMonitor
      Record a new iteration state.
      Specified by:
      addIterate in interface IterationMonitor<S>
      Parameters:
      s - the new iteration state
    • getIterates

      public List<S> getIterates()
      Get a list of all iterative states.
      Returns:
      the list of iterates