Class LocalSearchProfilerAdapter
java.lang.Object
tools.refinery.interpreter.localsearch.profiler.LocalSearchProfilerAdapter
- All Implemented Interfaces:
ILocalSearchAdapter
This is a simple
ILocalSearchAdapter
which capable of counting
each search operation execution then printing it in human readably form
(along with the executed plans) using toString()
- Since:
- 1.5
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
operationExecuted
(SearchPlan plan, ISearchOperation operation, MatchingFrame frame, boolean isSuccessful) Callback method to indicate that an operation is executedvoid
patternMatchingStarted
(LocalSearchMatcher lsMatcher) Callback method to indicate the start of a matching processtoString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface tools.refinery.interpreter.localsearch.matcher.ILocalSearchAdapter
adapterRegistered, adapterUnregistered, duplicateMatchFound, executorInitializing, matchFound, noMoreMatchesAvailable, operationSelected, planChanged
-
Constructor Details
-
LocalSearchProfilerAdapter
public LocalSearchProfilerAdapter()
-
-
Method Details
-
patternMatchingStarted
Description copied from interface:ILocalSearchAdapter
Callback method to indicate the start of a matching process- Specified by:
patternMatchingStarted
in interfaceILocalSearchAdapter
- Parameters:
lsMatcher
- the local search matcher that starts the matching
-
operationExecuted
public void operationExecuted(SearchPlan plan, ISearchOperation operation, MatchingFrame frame, boolean isSuccessful) Description copied from interface:ILocalSearchAdapter
Callback method to indicate that an operation is executed- Specified by:
operationExecuted
in interfaceILocalSearchAdapter
- Parameters:
plan
- the current planframe
- the current matching frameisSuccessful
- if true, the operation executed successfully, or false if the execution failed and backtracking will happen
-
toString
-