Package org.hipparchus.util
Class IterationEvent
java.lang.Object
java.util.EventObject
org.hipparchus.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
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionIterationEvent
(Object source, int iterations) Creates a new instance of this class. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the number of iterations performed at the timethis
event is created.Methods inherited from class java.util.EventObject
getSource, toString
-
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 timethis
event is created
-
-
Method Details
-
getIterations
public int getIterations()Returns the number of iterations performed at the timethis
event is created.- Returns:
- the number of iterations performed
-