public class SearchPlanExecutor
extends java.lang.Object
SearchPlan
instances.Constructor and Description |
---|
SearchPlanExecutor(SearchPlan plan,
ISearchContext context,
java.util.Map<PVariable,java.lang.Integer> variableMapping) |
Modifier and Type | Method and Description |
---|---|
void |
addAdapters(java.util.List<ILocalSearchAdapter> adapter) |
double |
cost()
Calculates the cost of the search plan.
|
boolean |
execute(MatchingFrame frame) |
ISearchContext |
getContext() |
int |
getCurrentOperation() |
SearchPlan |
getSearchPlan() |
com.google.common.collect.BiMap<java.lang.Integer,PVariable> |
getVariableMapping() |
void |
printDebugInformation() |
void |
removeAdapters(java.util.List<ILocalSearchAdapter> adapter) |
void |
resetPlan() |
public SearchPlanExecutor(SearchPlan plan, ISearchContext context, java.util.Map<PVariable,java.lang.Integer> variableMapping)
public com.google.common.collect.BiMap<java.lang.Integer,PVariable> getVariableMapping()
public int getCurrentOperation()
public SearchPlan getSearchPlan()
public void addAdapters(java.util.List<ILocalSearchAdapter> adapter)
public void removeAdapters(java.util.List<ILocalSearchAdapter> adapter)
public double cost()
public boolean execute(MatchingFrame frame) throws LocalSearchException
LocalSearchException
public void resetPlan()
public void printDebugInformation()
public ISearchContext getContext()