Class SatReasoner

java.lang.Object
org.tweetyproject.logics.pl.reasoner.AbstractPlReasoner
org.tweetyproject.logics.pl.reasoner.SatReasoner
All Implemented Interfaces:
KernelProvider<PlFormula>, QualitativeReasoner<PlBeliefSet,PlFormula>, Reasoner<Boolean,PlBeliefSet,PlFormula>

public class SatReasoner extends AbstractPlReasoner
Uses the default SAT reasoner to perform reasoning in propositional logic
Author:
Matthias Thimm
  • Constructor Details

    • SatReasoner

      public SatReasoner()
      Default Constructor
  • Method Details

    • query

      public Boolean query(PlBeliefSet beliefbase, PlFormula formula)
      Description copied from interface: QualitativeReasoner
      Queries the given belief base with the provided formula and returns a boolean result. The result indicates whether the formula is entailed or satisfied by the belief base according to the qualitative reasoning method implemented by the reasoner.
      Specified by:
      query in interface QualitativeReasoner<PlBeliefSet,PlFormula>
      Specified by:
      query in interface Reasoner<Boolean,PlBeliefSet,PlFormula>
      Specified by:
      query in class AbstractPlReasoner
      Parameters:
      beliefbase - The belief base to be queried.
      formula - The formula for which the query is made.
      Returns:
      `TRUE` if the formula is entailed or satisfied by the belief base, `FALSE` otherwise.
    • isInstalled

      public boolean isInstalled()
      Description copied from interface: QualitativeReasoner
      Checks whether the underlying solver or reasoning mechanism used by this reasoner is installed and available for use. This can be helpful when the reasoner depends on external tools or libraries for performing the reasoning tasks.
      Returns:
      `true` if the solver is installed and available, `false` otherwise.