/******************************************************************************* * Copyright (c) 2010-2017, Zoltan Ujhelyi, IncQuery Labs Ltd. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v. 2.0 which is available at * http://www.eclipse.org/legal/epl-v20.html. * * SPDX-License-Identifier: EPL-2.0 *******************************************************************************/ package tools.refinery.viatra.runtime.localsearch.planner.compiler; import java.util.List; import java.util.Map; import java.util.Set; import tools.refinery.viatra.runtime.localsearch.matcher.CallWithAdornment; import tools.refinery.viatra.runtime.localsearch.matcher.MatcherReference; import tools.refinery.viatra.runtime.localsearch.operations.ISearchOperation; import tools.refinery.viatra.runtime.matchers.ViatraQueryRuntimeException; import tools.refinery.viatra.runtime.matchers.planning.SubPlan; import tools.refinery.viatra.runtime.matchers.psystem.PVariable; import tools.refinery.viatra.runtime.matchers.psystem.queries.PParameter; /** * An operation compiler is responsible for creating executable search plans from the subplan structure. * * @author Zoltan Ujhelyi * @since 1.7 * */ public interface IOperationCompiler { /** * Compiles a plan of POperations to a list of type List<ISearchOperation> * * @param plan * @param boundParameters * @return an ordered list of POperations that make up the compiled search plan * @throws ViatraQueryRuntimeException */ List compile(SubPlan plan, Set boundParameters); /** * Replaces previous method returning {@link MatcherReference} * @since 2.1 */ Set getDependencies(); /** * @return the cached variable bindings for the previously created plan */ Map getVariableMappings(); }