|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for a class that returns common search limits that can be used to control searching in a CSP problem
Method Summary | |
SearchLimit |
choiceLimit(int maxChoices)
Creates a new choicepoint search limit that will stop searching after a specified number of choicepoints have been evaluated during searching. |
SearchLimit |
combinedLimit(SearchLimit[] limits)
Creates a new combined limit search limit |
SearchLimit |
deadlineLimit(long endTime)
Creates a new deadline limit search limiter |
SearchLimit |
failLimit(int maxFailures)
Creates a new failure search limit that will stop searching after a specified number of backtracking failures during searching. |
SearchAction |
limitSearch(SearchLimit limit,
SearchAction action)
Special action that applies a limit to the search technique being used at this point in the search tree |
SearchLimit |
timeLimit(long timeLimitMs)
Creates a new time limit that will stop searching after a specified amount of time. |
Method Detail |
public SearchLimit timeLimit(long timeLimitMs)
timeLimitMs
- Time in milliseconds to limit search
public SearchLimit failLimit(int maxFailures)
maxFailures
- Maximum number of backtracks allowed before search stops
public SearchLimit choiceLimit(int maxChoices)
maxChoices
- Maximum number of choicepoints to evaluate
public SearchLimit deadlineLimit(long endTime)
endTime
- Time at which the search should end
public SearchLimit combinedLimit(SearchLimit[] limits)
limits
- Search limits to combine into single limit
public SearchAction limitSearch(SearchLimit limit, SearchAction action)
limit
- Limit to apply to searching on supplied actionaction
- Action that will generate the tree to be searched
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |