Class Iteration


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

      Fields 
      Modifier and Type Field Description
      protected int maxIterations  
      protected int value  
    • Constructor Summary

      Constructors 
      Constructor Description
      Iteration​(int maxIterations)
      Constructs a Iteration object.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int max()
      Returns the maximal number of iterations.
      void next()
      Increases the iteration value by 1.
      int value()
      Returns the current iteration value.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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