Top Description Fields Constructors Methods
org.apache.commons.math3.util

public Class IterationEvent

extends EventObject
Class Inheritance
Known Direct Subclasses
org.apache.commons.math3.linear.IterativeLinearSolverEvent
Imports
java.util.EventObject

The root class from which all events occurring while running an IterationManager should be derived.

Field Summary

Modifier and TypeField and Description
private final int
iterations

The number of iterations performed so far.

private static final long
Inherited from java.util.EventObject:
source

Constructor Summary

AccessConstructor and Description
public
IterationEvent(final Object
the iterative algorithm on which the event initially occurred
source
,
final int
the number of iterations performed at the time this event is created
iterations
)

Creates a new instance of this class.

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

the number of iterations performed
getIterations
()

Returns the number of iterations performed at the time this event is created.

Inherited from java.util.EventObject:
getSourcetoString

Field Detail

iterationsback to summary
private final int iterations

The number of iterations performed so far.

serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.util.EventObject.serialVersionUID.

Constructor Detail

IterationEventback to summary
public IterationEvent(final Object source, final int iterations)

Creates a new instance of this class.

Parameters
source:Object

the iterative algorithm on which the event initially occurred

iterations:int

the number of iterations performed at the time this event is created

Method Detail

getIterationsback to summary
public int getIterations()

Returns the number of iterations performed at the time this event is created.

Returns:int

the number of iterations performed