Class QbfSolver

  • All Implemented Interfaces:
    net.sf.tweety.logics.commons.analysis.BeliefSetConsistencyTester<net.sf.tweety.logics.pl.syntax.PlFormula>, net.sf.tweety.logics.commons.analysis.ConsistencyTester<net.sf.tweety.commons.BeliefSet<net.sf.tweety.logics.pl.syntax.PlFormula,​?>>
    Direct Known Subclasses:
    CadetSolver, CaqeSolver, GhostQSolver, QuteSolver

    public abstract class QbfSolver
    extends Object
    implements net.sf.tweety.logics.commons.analysis.BeliefSetConsistencyTester<net.sf.tweety.logics.pl.syntax.PlFormula>
    Abstract QBF sat solver to be implemented by concrete solvers.
    Author:
    Anna Gessler
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected net.sf.tweety.commons.util.Shell bash
      Shell for running solvers.
    • Constructor Summary

      Constructors 
      Constructor Description
      QbfSolver()  
    • Field Detail

      • bash

        protected net.sf.tweety.commons.util.Shell bash
        Shell for running solvers.
    • Constructor Detail

      • QbfSolver

        public QbfSolver()
    • Method Detail

      • isSatisfiable

        public abstract boolean isSatisfiable​(Collection<net.sf.tweety.logics.pl.syntax.PlFormula> formulas)
        Checks whether the given set of formulas is satisfiable.
        Parameters:
        formulas - a set of formulas.
        Returns:
        "true" if the set is consistent.
      • isConsistent

        public boolean isConsistent​(net.sf.tweety.commons.BeliefSet<net.sf.tweety.logics.pl.syntax.PlFormula,​?> beliefSet)
        Specified by:
        isConsistent in interface net.sf.tweety.logics.commons.analysis.BeliefSetConsistencyTester<net.sf.tweety.logics.pl.syntax.PlFormula>
        Specified by:
        isConsistent in interface net.sf.tweety.logics.commons.analysis.ConsistencyTester<net.sf.tweety.commons.BeliefSet<net.sf.tweety.logics.pl.syntax.PlFormula,​?>>
      • isConsistent

        public boolean isConsistent​(Collection<net.sf.tweety.logics.pl.syntax.PlFormula> formulas)
        Specified by:
        isConsistent in interface net.sf.tweety.logics.commons.analysis.BeliefSetConsistencyTester<net.sf.tweety.logics.pl.syntax.PlFormula>
      • isConsistent

        public boolean isConsistent​(net.sf.tweety.logics.pl.syntax.PlFormula formula)
        Specified by:
        isConsistent in interface net.sf.tweety.logics.commons.analysis.BeliefSetConsistencyTester<net.sf.tweety.logics.pl.syntax.PlFormula>