Class CompilerHelper
java.lang.Object
tools.refinery.interpreter.localsearch.planner.util.CompilerHelper
Helper methods for compiling SubPlans
-
Method Summary
Modifier and TypeMethodDescriptionstatic Map
<PConstraint, Set<Integer>> cacheVariableBindings
(SubPlan plan, Map<PVariable, Integer> variableMappings, Set<PParameter> adornment) static List
<POperation> createOperationsList
(SubPlan plan) Extracts the operations from a SubPlan into a list of POperations in the order of executioncreateVariableMapping
(SubPlan plan)
-
Method Details
-
createVariableMapping
-
cacheVariableBindings
public static Map<PConstraint,Set<Integer>> cacheVariableBindings(SubPlan plan, Map<PVariable, Integer> variableMappings, Set<PParameter> adornment) -
createOperationsList
Extracts the operations from a SubPlan into a list of POperations in the order of execution- Parameters:
plan
- the SubPlan from wich the POperations should be extracted- Returns:
- list of POperations extracted from the
plan
-