Class IterationEvent

  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    IterativeLinearSolverEvent

    public class IterationEvent
    extends java.util.EventObject
    The root class from which all events occurring while running an IterationManager should be derived.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int iterations
      The number of iterations performed so far.
      private static long serialVersionUID  
      • Fields inherited from class java.util.EventObject

        source
    • Constructor Summary

      Constructors 
      Constructor Description
      IterationEvent​(java.lang.Object source, int iterations)
      Creates a new instance of this class.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getIterations()
      Returns the number of iterations performed at the time this event is created.
      • Methods inherited from class java.util.EventObject

        getSource, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • iterations

        private final int iterations
        The number of iterations performed so far.
    • Constructor Detail

      • IterationEvent

        public IterationEvent​(java.lang.Object source,
                              int iterations)
        Creates a new instance of this class.
        Parameters:
        source - the iterative algorithm on which the event initially occurred
        iterations - the number of iterations performed at the time this event is created
    • Method Detail

      • getIterations

        public int getIterations()
        Returns the number of iterations performed at the time this event is created.
        Returns:
        the number of iterations performed