Interface Verifier
-
- All Known Implementing Classes:
AdmissibleVerifier,CompleteVerifier,GrounderStableVerifier
public interface VerifierIs used to verify a certain property of anInterpretation, e.g. admissibility.- Author:
- Mathias Hofer
-
-
Method Summary
Modifier and Type Method Description booleanpostVerification(SatSolverState state, PropositionalMapping mapping, Interpretation candidate, AbstractDialecticalFramework adf, boolean verificationResult)Gets called after everyverifycall.voidprepareState(SatSolverState state, PropositionalMapping mapping, AbstractDialecticalFramework adf)Gets called exactly once for eachSatSolverStatebefore the first use inverify.booleanverify(SatSolverState state, PropositionalMapping mapping, Interpretation candidate, AbstractDialecticalFramework adf)Gets called by thePipelineto verify if the computed candidateInterpretationasserts a certain property.
-
-
-
Method Detail
-
prepareState
void prepareState(SatSolverState state, PropositionalMapping mapping, AbstractDialecticalFramework adf)
Gets called exactly once for eachSatSolverStatebefore the first use inverify. This method exists to perform initializations on each state.- Parameters:
state- the state on which we perform initializationsmapping- the propositional mapping of the ADFadf- the ADF
-
verify
boolean verify(SatSolverState state, PropositionalMapping mapping, Interpretation candidate, AbstractDialecticalFramework adf)
Gets called by thePipelineto verify if the computed candidateInterpretationasserts a certain property.- Parameters:
state- the initialized and perhaps shared statemapping- the propositional mapping of the ADFcandidate- the candidate to verifyadf- the ADF- Returns:
- true if we could verify the property for
candidate, false otherwise
-
postVerification
boolean postVerification(SatSolverState state, PropositionalMapping mapping, Interpretation candidate, AbstractDialecticalFramework adf, boolean verificationResult)
Gets called after everyverifycall.- Parameters:
state- the state used by the previous verify callmapping- the propositional mapping of the ADFcandidate- the candidate of the previous verify calladf- the ADFverificationResult- the return value of the previous verify call- Returns:
- true if the state was consumed, hence we need a new one for the subsequent verifications, false if we can reuse the state
-
-