@CodeReview(reviewer="Kevin R. Dixon",date="2008-02-08",changesNeeded=false,comments="Class looks fine.") @CodeReview(reviewer="Justin Basilico",date="2006-10-02",changesNeeded=false,comments="Interface is fine.") public interface StoppableAlgorithm
StoppableAlgorithm
will also be a
IterativeAlgorithm
, but this is not enforced.IterativeAlgorithm
Modifier and Type | Method and Description |
---|---|
boolean |
isResultValid()
Indicates whether or not the algorithm results are in a consistent state
or not.
|
void |
stop()
Requests that the algorithm stop at the next appropriate point.
|
void stop()
boolean isResultValid()
StoppableAlgorithm
may not always be able to stop in a
manner that makes its results valid. This method is used to check whether
the results are in a consistent state or not.