public interface ISearchOperation
Modifier and Type | Method and Description |
---|---|
boolean |
execute(MatchingFrame frame,
ISearchContext context) |
java.util.List<java.lang.Integer> |
getVariablePositions() |
void |
onBacktrack(MatchingFrame frame,
ISearchContext context)
After the execution of the operation failed and
execute(MatchingFrame, ISearchContext) returns false, the onBacktrack
callback is evaluated. |
void |
onInitialize(MatchingFrame frame,
ISearchContext context)
During the execution of the corresponding plan, the onInitialize callback is evaluated before the execution of
the operation may begin.
|
void onInitialize(MatchingFrame frame, ISearchContext context) throws LocalSearchException
frame
- context
- LocalSearchException
void onBacktrack(MatchingFrame frame, ISearchContext context) throws LocalSearchException
execute(MatchingFrame, ISearchContext)
returns false, the onBacktrack
callback is evaluated. Operations may use this method to clean up any temporary structures, and make the
operation ready for a new execution.frame
- context
- LocalSearchException
boolean execute(MatchingFrame frame, ISearchContext context) throws LocalSearchException
frame
- context
- LocalSearchException
java.util.List<java.lang.Integer> getVariablePositions()