Class ParallelExecution
java.lang.Object
org.tweetyproject.arg.adf.reasoner.sat.execution.ParallelExecution
- All Implemented Interfaces:
AutoCloseable,Execution
- Author:
- Mathias Hofer
-
Constructor Summary
ConstructorsConstructorDescriptionParallelExecution(AbstractDialecticalFramework adf, Semantics semantics, IncrementalSatSolver satSolver, int parallelism) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanaddClauses(Collection<? extends Clause> clauses)voidclose()processModel(Interpretation model)booleanverify(Interpretation candidate)
-
Constructor Details
-
ParallelExecution
public ParallelExecution(AbstractDialecticalFramework adf, Semantics semantics, IncrementalSatSolver satSolver, int parallelism)- Parameters:
adf- adfsemantics- semanticssatSolver- satSolverparallelism- parallelism
-
-
Method Details
-
computeCandidate
- Specified by:
computeCandidatein interfaceExecution- Returns:
- computeCandidate
-
verify
-
processModel
- Specified by:
processModelin interfaceExecution- Parameters:
model- model- Returns:
- processModel
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceExecution
-
addClause
-
addClauses
- Specified by:
addClausesin interfaceExecution- Parameters:
clauses- clauses- Returns:
- true iff all of the clauses were successfully added
-