Class GrounderStableVerifier

  • All Implemented Interfaces:
    Verifier

    public final class GrounderStableVerifier
    extends java.lang.Object
    implements Verifier
    Verifies if a given interpretation is stable by comparing it with the ground interpretation of its omega reduct.
    Author:
    Mathias Hofer
    • Constructor Detail

      • GrounderStableVerifier

        public GrounderStableVerifier​(CandidateGenerator groundGenerator,
                                      LinkStrategy linkStrategy)
        Parameters:
        groundGenerator - the generator which is used to compute the ground interpretation
        linkStrategy - the strategy which is used to compute the links of the reduct
    • Method Detail

      • postVerification

        public boolean postVerification​(SatSolverState state,
                                        PropositionalMapping mapping,
                                        Interpretation candidate,
                                        AbstractDialecticalFramework adf,
                                        boolean verificationResult)
        Description copied from interface: Verifier
        Gets called after every verify call.
        Specified by:
        postVerification in interface Verifier
        Parameters:
        state - the state used by the previous verify call
        mapping - the propositional mapping of the ADF
        candidate - the candidate of the previous verify call
        adf - the ADF
        verificationResult - 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