public interface ILocalSearchAdapter
EXPERIMENTAL. A few shortcomings have been found for this interface late during the development lifecycle of version 2.0 whose solution might need breaking possible future implementors. Because of this, right now it is not recommended to provide implementations outside of VIATRA. If necessary, have a look at the built-in adapters that should fulfill most cases in the meantime. See bugs https://bugs.eclipse.org/bugs/show_bug.cgi?id=535101 and https://bugs.eclipse.org/bugs/show_bug.cgi?id=535102 for details.
ExecutionLoggerAdapter
,
LocalSearchProfilerAdapter
Modifier and Type | Method and Description |
---|---|
default void |
adapterRegistered(ILocalSearchAdaptable adaptable) |
default void |
adapterUnregistered(ILocalSearchAdaptable adaptable) |
default void |
duplicateMatchFound(MatchingFrame frame)
Callback that is used to indicate that the previously reported match has been found as a duplicate, thus will be ignored from the match results.
|
default void |
executorInitializing(SearchPlan searchPlan,
MatchingFrame frame)
Callback method to indicate that a search plan is initialized in an executor with the given frame and starting operation
|
default void |
matchFound(SearchPlan plan,
MatchingFrame frame)
Callback that is used to indicate that a match has been found
|
default void |
noMoreMatchesAvailable(LocalSearchMatcher lsMatcher)
Callback method to indicate the end of a matching process
|
default void |
operationExecuted(SearchPlan plan,
ISearchOperation operation,
MatchingFrame frame,
boolean isSuccessful)
Callback method to indicate that an operation is executed
|
default void |
operationSelected(SearchPlan plan,
ISearchOperation operation,
MatchingFrame frame,
boolean isBacktrack)
Callback method to indicate the selection of an operation to execute
|
default void |
patternMatchingStarted(LocalSearchMatcher lsMatcher)
Callback method to indicate the start of a matching process
|
default void |
planChanged(java.util.Optional<SearchPlan> oldPlan,
java.util.Optional<SearchPlan> newPlan)
Callback method to indicate switching to a new plan during the execution of a pattern matching
|
default void adapterRegistered(ILocalSearchAdaptable adaptable)
default void adapterUnregistered(ILocalSearchAdaptable adaptable)
default void patternMatchingStarted(LocalSearchMatcher lsMatcher)
lsMatcher
- the local search matcher that starts the matchingdefault void noMoreMatchesAvailable(LocalSearchMatcher lsMatcher)
lsMatcher
- the local search matcher that finisheddefault void planChanged(java.util.Optional<SearchPlan> oldPlan, java.util.Optional<SearchPlan> newPlan)
oldPlan
- the plan that is finished. Value is null when the first plan is starting.newPlan
- the plan that will begin executiondefault void operationSelected(SearchPlan plan, ISearchOperation operation, MatchingFrame frame, boolean isBacktrack)
plan
- the current plan executorframe
- the current matching frameisBacktrack
- if true, the selected operation was reached via backtrackingdefault void operationExecuted(SearchPlan plan, ISearchOperation operation, MatchingFrame frame, boolean isSuccessful)
plan
- the current planframe
- the current matching frameisSuccessful
- if true, the operation executed successfully, or false if the execution failed and backtracking will happendefault void matchFound(SearchPlan plan, MatchingFrame frame)
plan
- the search plan executor that found the matchframe
- the frame that holds the substitutions of the variables that matchdefault void duplicateMatchFound(MatchingFrame frame)
plan
- the search plan executor that found the matchframe
- the frame that holds the substitutions of the variables that matchdefault void executorInitializing(SearchPlan searchPlan, MatchingFrame frame)
searchPlan
- frame
-