Class SearchPlanExecutor
java.lang.Object
tools.refinery.interpreter.localsearch.plan.SearchPlanExecutor
- All Implemented Interfaces:
ILocalSearchAdaptable
A search plan executor is used to execute
SearchPlan
instances.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAdapter
(ILocalSearchAdapter adapter) void
addAdapters
(List<ILocalSearchAdapter> adapters) double
cost()
Calculates the cost of the search plan.boolean
execute
(MatchingFrame frame) int
void
void
removeAdapter
(ILocalSearchAdapter adapter) void
removeAdapters
(List<ILocalSearchAdapter> adapters) void
toString()
-
Constructor Details
-
SearchPlanExecutor
- Since:
- 2.0
-
-
Method Details
-
getVariableMapping
- Since:
- 2.0
-
getCurrentOperation
public int getCurrentOperation() -
getSearchPlan
-
getParameterMask
- Since:
- 1.7
-
addAdapters
- Specified by:
addAdapters
in interfaceILocalSearchAdaptable
-
removeAdapters
- Specified by:
removeAdapters
in interfaceILocalSearchAdaptable
-
cost
public double cost()Calculates the cost of the search plan. -
execute
- Throws:
InterpreterRuntimeException
-
resetPlan
public void resetPlan() -
printDebugInformation
public void printDebugInformation() -
getContext
-
getAdapters
- Specified by:
getAdapters
in interfaceILocalSearchAdaptable
-
addAdapter
- Specified by:
addAdapter
in interfaceILocalSearchAdaptable
-
removeAdapter
- Specified by:
removeAdapter
in interfaceILocalSearchAdaptable
-
toString
-