public class Progress extends java.lang.Object implements OptimizerIterationListener
Optimizer
Modifier and Type | Field and Description |
---|---|
protected int |
iteration |
protected java.lang.Integer |
maxIterations |
Constructor and Description |
---|
Progress() |
Modifier and Type | Method and Description |
---|---|
java.lang.Double |
get()
Returns the progress value between
0 and 1 . |
int |
getCurrentIteration()
Returns the current iteration.
|
java.lang.Integer |
getMaxIterations()
Returns the number of maximal iterations.
|
void |
iterationComplete(int iteration)
Invoked if the
Optimizer completes an iteration. |
@Inject(optional=true) protected java.lang.Integer maxIterations
protected int iteration
public java.lang.Double get()
0
and 1
.public java.lang.Integer getMaxIterations()
public int getCurrentIteration()
public void iterationComplete(int iteration)
OptimizerIterationListener
Optimizer
completes an iteration.iterationComplete
in interface OptimizerIterationListener
iteration
- the completed iteration