public class Iteration
extends java.lang.Object
Iteration
object is used as iteration counter for the
optimization.Modifier and Type | Field and Description |
---|---|
protected int |
maxIterations |
protected int |
value |
Constructor and Description |
---|
Iteration(int maxIterations)
Constructs a
Iteration object. |
Modifier and Type | Method and Description |
---|---|
int |
max()
Returns the maximal number of iterations.
|
void |
next()
Increases the iteration value by 1.
|
int |
value()
Returns the current iteration value.
|
@Inject public Iteration(int maxIterations)
Iteration
object.maxIterations
- the maximal number of iterations