Class StratifiedLabelingReasoner

java.lang.Object
org.tweetyproject.arg.dung.reasoner.AbstractDungReasoner
org.tweetyproject.arg.dung.reasoner.StratifiedLabelingReasoner
All Implemented Interfaces:
ModelProvider<Argument,DungTheory,StratifiedLabeling>, QualitativeReasoner<DungTheory,Argument>, Reasoner<Boolean,DungTheory,Argument>

public class StratifiedLabelingReasoner extends AbstractDungReasoner implements ModelProvider<Argument,DungTheory,StratifiedLabeling>
This class implements a stratified labeling reasoner.
Author:
Matthias Thimm
  • Constructor Details

    • StratifiedLabelingReasoner

      public StratifiedLabelingReasoner(Semantics semantics)
      Creates a new reasoner for the given semantics.
      Parameters:
      semantics - a semantics
    • StratifiedLabelingReasoner

      public StratifiedLabelingReasoner()
      Creates a new reasoner using sceptical inference and grounded semantics.
  • Method Details

    • getModels

      public Collection<StratifiedLabeling> getModels(DungTheory bbase)
      Description copied from interface: ModelProvider
      Returns a characterizing model of the given belief base
      Specified by:
      getModels in interface ModelProvider<Argument,DungTheory,StratifiedLabeling>
      Parameters:
      bbase - some belief base
      Returns:
      the (selected) models of the belief base
    • getModel

      public StratifiedLabeling getModel(DungTheory bbase)
      Description copied from interface: ModelProvider
      Returns a single (dedicated) model of the given belief base. If the implemented method allows for more than one dedicated model, the selection may be non-deterministic.
      Specified by:
      getModel in interface ModelProvider<Argument,DungTheory,StratifiedLabeling>
      Parameters:
      bbase - some belief base
      Returns:
      a selected model of the belief base.
    • query

      public Boolean query(DungTheory beliefbase, Argument 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<DungTheory,Argument>
      Specified by:
      query in interface Reasoner<Boolean,DungTheory,Argument>
      Specified by:
      query in class AbstractDungReasoner
      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.
    • query

      public Boolean query(DungTheory beliefbase, Argument formula, InferenceMode inferenceMode)
      Queries the given AAF for the given argument using the given inference type.
      Parameters:
      beliefbase - an AAF
      formula - a single argument
      inferenceMode - either InferenceMode.SKEPTICAL or InferenceMode.CREDULOUS
      Returns:
      "true" if the argument is accepted
    • isInstalled

      public boolean isInstalled()
      the solver is natively installed and is therefore always installed
      Specified by:
      isInstalled in interface QualitativeReasoner<DungTheory,Argument>
      Returns:
      `true` if the solver is installed and available, `false` otherwise.