package hu.bme.mit.inf.dslreasoner.viatra2logic; import java.io.IOException; import java.util.List; import java.util.Map; import org.eclipse.xtext.common.types.JvmIdentifiableElement; import org.eclipse.xtext.xbase.XExpression; import hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage.partialinterpretation.PrimitiveElement; public class NumericDynamicProblemSolver extends NumericProblemSolver{ // private NumericZ3ProblemSolver z3Solver; private NumericDrealProblemSolver drealSolver; public NumericDynamicProblemSolver(String drealLocalPath) throws IOException, InterruptedException { // this.z3Solver = new NumericZ3ProblemSolver(); this.drealSolver = new NumericDrealProblemSolver(false, drealLocalPath); } public NumericProblemSolver selectSolver(String selection) { switch (selection) { case "z3": return new NumericZ3ProblemSolver(); case "dreal": return this.drealSolver; default: throw new IllegalArgumentException("Unknown numeric solver selection: " + selection); } } public boolean isSatisfiable(Map>> matches) throws Exception { throw new Exception("Should not reach here - isSatisfiable"); } public Map getOneSolution(List objs, Map>> matches) throws Exception { throw new Exception("Should not reach here - getOneSolution"); }}