Class Iteration


  • public class Iteration
    extends Object
    The Iteration object is used as iteration counter for the optimization.
    • Field Detail

      • value

        protected int value
      • maxIterations

        protected final int maxIterations
    • Constructor Detail

      • Iteration

        @Inject
        public Iteration​(int maxIterations)
        Constructs a Iteration object.
        Parameters:
        maxIterations - the maximal number of iterations
    • Method Detail

      • value

        public int value()
        Returns the current iteration value.
        Returns:
        the current iteration value
      • next

        public void next()
        Increases the iteration value by 1.
      • max

        public int max()
        Returns the maximal number of iterations.
        Returns:
        the maximal number of iterations