Package org.opt4j.viewer
Class Progress
- java.lang.Object
-
- org.opt4j.viewer.Progress
-
- All Implemented Interfaces:
OptimizerIterationListener
public class Progress extends Object implements OptimizerIterationListener
- See Also:
Optimizer
-
-
Field Summary
Fields Modifier and Type Field Description protected int
iteration
protected Integer
maxIterations
-
Constructor Summary
Constructors Constructor Description Progress()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Double
get()
Returns the progress value between0
and1
.int
getCurrentIteration()
Returns the current iteration.Integer
getMaxIterations()
Returns the number of maximal iterations.void
iterationComplete(Optimizer optimizer, int iteration)
Invoked if theOptimizer
completes an iteration.
-
-
-
Field Detail
-
maxIterations
@Inject(optional=true) protected Integer maxIterations
-
iteration
protected int iteration
-
-
Method Detail
-
get
public Double get()
Returns the progress value between0
and1
.- Returns:
- the progress value
-
getMaxIterations
public Integer getMaxIterations()
Returns the number of maximal iterations.- Returns:
- the number of maximal iteration
-
getCurrentIteration
public int getCurrentIteration()
Returns the current iteration.- Returns:
- the current iteration
-
iterationComplete
public void iterationComplete(Optimizer optimizer, int iteration)
Description copied from interface:OptimizerIterationListener
Invoked if theOptimizer
completes an iteration.- Specified by:
iterationComplete
in interfaceOptimizerIterationListener
- Parameters:
optimizer
- the optimizeriteration
- the completed iteration
-
-