Class AdmissibleVerifier
- java.lang.Object
-
- net.sf.tweety.arg.adf.reasoner.sat.verifier.AdmissibleVerifier
-
-
Constructor Summary
Constructors Constructor Description AdmissibleVerifier()
-
Method Summary
Modifier and Type Method Description boolean
postVerification(SatSolverState state, PropositionalMapping mapping, Interpretation candidate, AbstractDialecticalFramework adf, boolean verificationResult)
Gets called after everyverify
call.void
prepareState(SatSolverState state, PropositionalMapping mapping, AbstractDialecticalFramework adf)
Gets called exactly once for eachSatSolverState
before the first use inverify
.boolean
verify(SatSolverState state, PropositionalMapping mapping, Interpretation candidate, AbstractDialecticalFramework adf)
Gets called by thePipeline
to verify if the computed candidateInterpretation
asserts a certain property.
-
-
-
Method Detail
-
prepareState
public void prepareState(SatSolverState state, PropositionalMapping mapping, AbstractDialecticalFramework adf)
Description copied from interface:Verifier
Gets called exactly once for eachSatSolverState
before the first use inverify
. This method exists to perform initializations on each state.- Specified by:
prepareState
in interfaceVerifier
- Parameters:
state
- the state on which we perform initializationsmapping
- the propositional mapping of the ADFadf
- the ADF
-
verify
public boolean verify(SatSolverState state, PropositionalMapping mapping, Interpretation candidate, AbstractDialecticalFramework adf)
Description copied from interface:Verifier
Gets called by thePipeline
to verify if the computed candidateInterpretation
asserts a certain property.
-
postVerification
public boolean postVerification(SatSolverState state, PropositionalMapping mapping, Interpretation candidate, AbstractDialecticalFramework adf, boolean verificationResult)
Description copied from interface:Verifier
Gets called after everyverify
call.- Specified by:
postVerification
in interfaceVerifier
- 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
-
-