jopt.csp.spi.search
Class SearchLimitsImpl
java.lang.Object
jopt.csp.spi.search.SearchLimitsImpl
- All Implemented Interfaces:
- jopt.csp.search.SearchLimits
- public class SearchLimitsImpl
- extends java.lang.Object
- implements jopt.csp.search.SearchLimits
Creates and returns common search limits that can be used
to control searching for solutions to CSP problems
Method Summary |
jopt.csp.search.SearchLimit |
choiceLimit(int maxChoices)
|
jopt.csp.search.SearchLimit |
combinedLimit(jopt.csp.search.SearchLimit[] limits)
|
jopt.csp.search.SearchLimit |
deadlineLimit(long endTime)
|
jopt.csp.search.SearchLimit |
failLimit(int maxFailures)
|
jopt.csp.search.SearchAction |
limitSearch(jopt.csp.search.SearchLimit limit,
jopt.csp.search.SearchAction action)
|
jopt.csp.search.SearchLimit |
timeLimit(long timeLimitMs)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SearchLimitsImpl
public SearchLimitsImpl()
timeLimit
public jopt.csp.search.SearchLimit timeLimit(long timeLimitMs)
- Specified by:
timeLimit
in interface jopt.csp.search.SearchLimits
failLimit
public jopt.csp.search.SearchLimit failLimit(int maxFailures)
- Specified by:
failLimit
in interface jopt.csp.search.SearchLimits
choiceLimit
public jopt.csp.search.SearchLimit choiceLimit(int maxChoices)
- Specified by:
choiceLimit
in interface jopt.csp.search.SearchLimits
deadlineLimit
public jopt.csp.search.SearchLimit deadlineLimit(long endTime)
- Specified by:
deadlineLimit
in interface jopt.csp.search.SearchLimits
combinedLimit
public jopt.csp.search.SearchLimit combinedLimit(jopt.csp.search.SearchLimit[] limits)
- Specified by:
combinedLimit
in interface jopt.csp.search.SearchLimits
limitSearch
public jopt.csp.search.SearchAction limitSearch(jopt.csp.search.SearchLimit limit,
jopt.csp.search.SearchAction action)
- Specified by:
limitSearch
in interface jopt.csp.search.SearchLimits