Class CompleteVerifier
java.lang.Object
org.tweetyproject.arg.adf.reasoner.sat.verifier.CompleteVerifier
- All Implemented Interfaces:
 AutoCloseable,Verifier
The 
CompleteVerifier is a verifier class that checks whether a given interpretation
 is a complete interpretation within an abstract dialectical framework (ADF). It ensures that
 the interpretation is conflict-free and adheres to acceptance conditions for all undecided arguments.- Author:
 - Mathias Hofer
 
- 
Constructor Summary
ConstructorsConstructorDescriptionCompleteVerifier(Supplier<SatSolverState> stateSupplier, AbstractDialecticalFramework adf, PropositionalMapping mapping) Constructs aCompleteVerifierwith the given SAT solver state supplier, abstract dialectical framework, and propositional mapping. - 
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Closes the SAT solver state and releases any resources associated with it.voidprepare()Prepares the SAT solver state for verification.booleanverify(Interpretation candidate) Verifies whether the given interpretation is a complete interpretation. 
- 
Constructor Details
- 
CompleteVerifier
public CompleteVerifier(Supplier<SatSolverState> stateSupplier, AbstractDialecticalFramework adf, PropositionalMapping mapping) Constructs aCompleteVerifierwith the given SAT solver state supplier, abstract dialectical framework, and propositional mapping. Initializes the SAT encodings for conflict-free and partial interpretation fixing.- Parameters:
 stateSupplier- a supplier that provides new instances ofSatSolverState, must not be nulladf- the abstract dialectical framework to be processed, must not be nullmapping- the propositional mapping used for SAT encoding, must not be null- Throws:
 NullPointerException- if any of the parameters are null
 
 - 
 - 
Method Details
- 
prepare
 - 
verify
Verifies whether the given interpretation is a complete interpretation. It checks if the interpretation is conflict-free and verifies the acceptance conditions for all undecided arguments.For each undecided argument, the method encodes the acceptance condition and verifies that it is neither tautologically satisfied nor unsatisfied in the given interpretation.
 - 
close
public void close()Closes the SAT solver state and releases any resources associated with it. This method should be called when the verifier is no longer needed to ensure proper resource management.- Specified by:
 closein interfaceAutoCloseable- Specified by:
 closein interfaceVerifier
 
 -