Class IterationEvent
java.lang.Object
java.util.EventObject
org.apache.commons.math3.util.IterationEvent
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
IterativeLinearSolverEvent
The root class from which all events occurring while running an
IterationManager should be derived.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe number of iterations performed so far.private static final longFields inherited from class EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionIterationEvent(Object source, int iterations) Creates a new instance of this class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the number of iterations performed at the timethisevent is created.Methods inherited from class EventObject
getSource, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
iterations
private final int iterationsThe number of iterations performed so far.
-
-
Constructor Details
-
IterationEvent
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
-