Class GrounderStableVerifier
- java.lang.Object
-
- net.sf.tweety.arg.adf.reasoner.sat.verifier.GrounderStableVerifier
-
-
Constructor Summary
Constructors Constructor Description GrounderStableVerifier(CandidateGenerator groundGenerator, LinkStrategy linkStrategy)
-
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 encodingContext, Interpretation candidate, AbstractDialecticalFramework adf)Gets called by thePipelineto verify if the computed candidateInterpretationasserts a certain property.
-
-
-
Constructor Detail
-
GrounderStableVerifier
public GrounderStableVerifier(CandidateGenerator groundGenerator, LinkStrategy linkStrategy)
- Parameters:
groundGenerator- the generator which is used to compute the ground interpretationlinkStrategy- the strategy which is used to compute the links of the reduct
-
-
Method Detail
-
prepareState
public void prepareState(SatSolverState state, PropositionalMapping mapping, AbstractDialecticalFramework adf)
Description copied from interface:VerifierGets called exactly once for eachSatSolverStatebefore the first use inverify. This method exists to perform initializations on each state.- Specified by:
prepareStatein 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 encodingContext, Interpretation candidate, AbstractDialecticalFramework adf)
Description copied from interface:VerifierGets called by thePipelineto verify if the computed candidateInterpretationasserts a certain property.
-
postVerification
public boolean postVerification(SatSolverState state, PropositionalMapping mapping, Interpretation candidate, AbstractDialecticalFramework adf, boolean verificationResult)
Description copied from interface:VerifierGets called after everyverifycall.- Specified by:
postVerificationin 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
-
-