public final class MaxIterationCondition extends Object implements StopCondition
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_MAX_ITERATIONS |
Constructor and Description |
---|
MaxIterationCondition(IterativeProcess process)
Creates a new stop condition using default value for the maximum
iteration.
|
MaxIterationCondition(IterativeProcess process,
int iterations)
Creates a new stop condition.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isNotSatisfied()
Returns
true is this condition is not satisfied. |
boolean |
isSatisfied()
Returns
true is this condition is satisfied. |
String |
toString() |
public static final int DEFAULT_MAX_ITERATIONS
public MaxIterationCondition(IterativeProcess process)
process
- The process which should be monitored.public MaxIterationCondition(IterativeProcess process, int iterations)
process
- The process which should be monitored.iterations
- The maximum iteration.public boolean isSatisfied()
StopCondition
true
is this condition is satisfied.isSatisfied
in interface StopCondition
true
- if this condition is satisfied false
- otherwise public boolean isNotSatisfied()
StopCondition
true
is this condition is not satisfied.isNotSatisfied
in interface StopCondition
true
- if this condition is not satisfied false
- otherwise Copyright © 2012. All Rights Reserved.