Class ParallelExecution
java.lang.Object
org.tweetyproject.arg.adf.reasoner.sat.execution.ParallelExecution
- All Implemented Interfaces:
AutoCloseable
,Execution
- Author:
- Mathias Hofer
-
Constructor Summary
ConstructorDescriptionParallelExecution(AbstractDialecticalFramework adf, Semantics semantics, IncrementalSatSolver satSolver, int parallelism)
-
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
addClauses(Collection<? extends Clause> clauses)
void
close()
processModel(Interpretation model)
boolean
verify(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:
computeCandidate
in interfaceExecution
- Returns:
- computeCandidate
-
verify
-
processModel
- Specified by:
processModel
in interfaceExecution
- Parameters:
model
- model- Returns:
- processModel
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceExecution
-
addClause
-
addClauses
- Specified by:
addClauses
in interfaceExecution
- Parameters:
clauses
- clauses- Returns:
- true iff all of the clauses were successfully added
-