blob: d818ec9144bc70a3dde51c343e57d36b9cb72dee (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
package hu.bme.mit.inf.dslreasoner.viatra2logic;
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 abstract class NumericProblemSolver {
long endformingProblem=0;
long endSolvingProblem=0;
long endFormingSolution=0;
public long getEndformingProblem() {return endformingProblem;}
public long getEndSolvingProblem() {return endSolvingProblem;}
public long getEndFormingSolution() {return endFormingSolution;}
public abstract boolean isSatisfiable(Map<XExpression, Iterable<Map<JvmIdentifiableElement,PrimitiveElement>>> matches) throws Exception;
public abstract Map<PrimitiveElement,Number> getOneSolution(List<PrimitiveElement> objs, Map<XExpression, Iterable<Map<JvmIdentifiableElement,PrimitiveElement>>> matches) throws Exception;
}
|