java.lang.Object
tools.refinery.interpreter.localsearch.planner.util.CompilerHelper

public class CompilerHelper extends Object
Helper methods for compiling SubPlans
  • Method Details

    • createVariableMapping

      public static Map<PVariable,Integer> createVariableMapping(SubPlan plan)
    • cacheVariableBindings

      public static Map<PConstraint,Set<Integer>> cacheVariableBindings(SubPlan plan, Map<PVariable,Integer> variableMappings, Set<PParameter> adornment)
    • createOperationsList

      public static List<POperation> createOperationsList(SubPlan plan)
      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