|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opt4j.core.start.Progress
public class Progress
The Progress offers some methods for the measurement of the progress
of an Optimizer.
Optimizer| Field Summary | |
|---|---|
protected int |
iteration
|
protected java.lang.Integer |
maxIterations
|
| Constructor Summary | |
|---|---|
Progress()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
@Inject(optional=true) protected java.lang.Integer maxIterations
protected int iteration
| Constructor Detail |
|---|
public Progress()
| Method Detail |
|---|
public java.lang.Double get()
0 and 1.
public java.lang.Integer getMaxIterations()
public int getCurrentIteration()
public void iterationComplete(int iteration)
OptimizerIterationListenerOptimizer completes an iteration.
iterationComplete in interface OptimizerIterationListeneriteration - the completed iteration
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||