Class AbstractMlReasoner

java.lang.Object
org.tweetyproject.logics.ml.reasoner.AbstractMlReasoner
All Implemented Interfaces:
QualitativeReasoner<MlBeliefSet,FolFormula>, Reasoner<Boolean,MlBeliefSet,FolFormula>
Direct Known Subclasses:
MleanCoPReasoner, SimpleMlReasoner, SPASSMlReasoner

public abstract class AbstractMlReasoner extends Object implements QualitativeReasoner<MlBeliefSet,FolFormula>
Abstract modal reasoner to be implemented by concrete reasoners.
Author:
Bastian Wolf, Nils Geilen, Anna Gessler, Matthias Thimm
  • Field Details

  • Constructor Details

    • AbstractMlReasoner

      public AbstractMlReasoner()
      Default Constructor
  • Method Details

    • setDefaultReasoner

      public static void setDefaultReasoner(AbstractMlReasoner reasoner)
      Set default modal reasoner with given
      Parameters:
      reasoner - an ML Reasoner
    • getDefaultReasoner

      public static AbstractMlReasoner getDefaultReasoner()
      Returns the default reasoner for modal logic
      Returns:
      the default modal reasoner
    • query

      public abstract Boolean query(MlBeliefSet beliefbase, FolFormula 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<MlBeliefSet,FolFormula>
      Specified by:
      query in interface Reasoner<Boolean,MlBeliefSet,FolFormula>
      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.