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()
StopConditiontrue is this condition is satisfied.isSatisfied in interface StopConditiontrue - if this condition is satisfied false - otherwise public boolean isNotSatisfied()
StopConditiontrue is this condition is not satisfied.isNotSatisfied in interface StopConditiontrue - if this condition is not satisfied false - otherwise Copyright © 2012. All Rights Reserved.