public abstract class CheckOperation extends java.lang.Object implements ISearchOperation
Constructor and Description |
---|
CheckOperation() |
Modifier and Type | Method and Description |
---|---|
boolean |
execute(MatchingFrame frame,
ISearchContext context) |
void |
onBacktrack(MatchingFrame frame,
ISearchContext context)
After the execution of the operation failed and
ISearchOperation.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.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getVariablePositions
public void onInitialize(MatchingFrame frame, ISearchContext context) throws LocalSearchException
ISearchOperation
onInitialize
in interface ISearchOperation
LocalSearchException
public void onBacktrack(MatchingFrame frame, ISearchContext context) throws LocalSearchException
ISearchOperation
ISearchOperation.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.onBacktrack
in interface ISearchOperation
LocalSearchException
public boolean execute(MatchingFrame frame, ISearchContext context) throws LocalSearchException
execute
in interface ISearchOperation
LocalSearchException