Class SimpleIncrementalSatSolver

  • 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,​?>>, net.sf.tweety.logics.commons.analysis.ConsistencyWitnessProvider<net.sf.tweety.logics.pl.syntax.PlBeliefSet,​net.sf.tweety.logics.pl.syntax.PlFormula>

    public class SimpleIncrementalSatSolver
    extends IncrementalSatSolver
    A simple wrapper which can be used where instances of IncrementalSatSolver are needed.

    Note that this implementation only provides a compatibility layer and no real incremental sat solving behavior. Hence, it is highly recommended to use a real incremental sat solver implementation if possible, otherwise one has to expect poor performance.

    Author:
    Mathias Hofer
    • Constructor Summary

      Constructors 
      Constructor Description
      SimpleIncrementalSatSolver​(net.sf.tweety.logics.pl.sat.SatSolver delegate)  
    • Method Summary

      Modifier and Type Method Description
      SatSolverState createState()  
      net.sf.tweety.commons.Interpretation<net.sf.tweety.logics.pl.syntax.PlBeliefSet,​net.sf.tweety.logics.pl.syntax.PlFormula> getWitness​(Collection<net.sf.tweety.logics.pl.syntax.PlFormula> formulas)  
      boolean isSatisfiable​(Collection<net.sf.tweety.logics.pl.syntax.PlFormula> formulas)  
      • Methods inherited from class net.sf.tweety.logics.pl.sat.SatSolver

        convertToDimacs, convertToDimacs, createTmpDimacsFile, createTmpDimacsFile, getDefaultSolver, getWitness, getWitness, hasDefaultSolver, isConsistent, isConsistent, isConsistent, setDefaultSolver, setTempFolder
    • Constructor Detail

      • SimpleIncrementalSatSolver

        public SimpleIncrementalSatSolver​(net.sf.tweety.logics.pl.sat.SatSolver delegate)
        Parameters:
        delegate -
    • Method Detail

      • getWitness

        public net.sf.tweety.commons.Interpretation<net.sf.tweety.logics.pl.syntax.PlBeliefSet,​net.sf.tweety.logics.pl.syntax.PlFormula> getWitness​(Collection<net.sf.tweety.logics.pl.syntax.PlFormula> formulas)
        Specified by:
        getWitness in interface net.sf.tweety.logics.commons.analysis.ConsistencyWitnessProvider<net.sf.tweety.logics.pl.syntax.PlBeliefSet,​net.sf.tweety.logics.pl.syntax.PlFormula>
        Specified by:
        getWitness in class net.sf.tweety.logics.pl.sat.SatSolver
      • isSatisfiable

        public boolean isSatisfiable​(Collection<net.sf.tweety.logics.pl.syntax.PlFormula> formulas)
        Specified by:
        isSatisfiable in class net.sf.tweety.logics.pl.sat.SatSolver