Package org.apache.commons.math4.util
Class IterationEvent
java.lang.Object
java.util.EventObject
org.apache.commons.math4.util.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
-
Constructor Summary
Constructors Constructor Description IterationEvent(java.lang.Object source, int iterations)Creates a new instance of this class. -
Method Summary
Modifier and Type Method Description intgetIterations()Returns the number of iterations performed at the timethisevent is created.
-
Constructor Details
-
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 occurrediterations- the number of iterations performed at the timethisevent is created
-
-
Method Details
-
getIterations
public int getIterations()Returns the number of iterations performed at the timethisevent is created.- Returns:
- the number of iterations performed
-