public class MaxSteps extends Object implements StopCriterion
| Constructor and Description |
|---|
MaxSteps(long maxSteps)
Create a stop criterion to limit the number of steps of a search run.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
searchShouldStop(Search<?> search)
Checks whether the maximum number of steps has been reached for the given search.
|
String |
toString() |
public MaxSteps(long maxSteps)
maxSteps - maximum number of stepsIllegalArgumentException - if maxSteps is ≤ 0public boolean searchShouldStop(Search<?> search)
searchShouldStop in interface StopCriterionsearch - search for which the number of performed steps has to be checkedtrue if the given search has reached the maximum number of stepsCopyright © 2016. All rights reserved.