Class AbstractRecursiveExtendedExtensionReasoner
java.lang.Object
org.tweetyproject.arg.extended.reasoner.AbstractRecursiveExtendedExtensionReasoner
- Direct Known Subclasses:
SimpleRecursiveExtendedAdmissibleReasoner,SimpleRecursiveExtendedCompleteReasoner,SimpleRecursiveExtendedConflictFreeReasoner
Abstract extension reasoner for reasoning with recursive extended theories
- Author:
- Lars Bengel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Collection<Collection<DungEntity>> getModels(RecursiveExtendedTheory bbase) Computes all models for the given theorygetSimpleReasonerForSemantics(Semantics semantics) Returns a simple recursive extended theory reasoner for the given semanticsbooleanThe reasoner is native and thus always installedquery(RecursiveExtendedTheory beliefbase, Argument formula) Queries the given belief base with a specified argument, using the default inference mode of skeptical reasoning.query(RecursiveExtendedTheory beliefbase, Argument formula, InferenceMode inferenceMode) Queries the given AAF for the given argument using the given inference type.
-
Constructor Details
-
AbstractRecursiveExtendedExtensionReasoner
public AbstractRecursiveExtendedExtensionReasoner()Default
-
-
Method Details
-
getSimpleReasonerForSemantics
public static AbstractRecursiveExtendedExtensionReasoner getSimpleReasonerForSemantics(Semantics semantics) Returns a simple recursive extended theory reasoner for the given semantics- Parameters:
semantics- some semantics- Returns:
- a simple reasoner for the given semantics
-
query
Queries the given belief base with a specified argument, using the default inference mode of skeptical reasoning. This method checks whether the provided argument (formula) is entailed by the belief base under skeptical inference mode.- Parameters:
beliefbase- The belief base, represented as aRecursiveExtendedTheory, to be queried.formula- The argument (formula) to be queried.- Returns:
TRUEif the formula is entailed by the belief base under skeptical reasoning,FALSEotherwise.
-
query
public Boolean query(RecursiveExtendedTheory beliefbase, Argument formula, InferenceMode inferenceMode) Queries the given AAF for the given argument using the given inference type.- Parameters:
beliefbase- an AAFformula- a single argumentinferenceMode- either InferenceMode.SKEPTICAL or InferenceMode.CREDULOUS- Returns:
- "true" if the argument is accepted
-
getModels
Computes all models for the given theory- Parameters:
bbase- some recursive extended theory- Returns:
- the models of this theory wrt. some semantics
-
isInstalled
public boolean isInstalled()The reasoner is native and thus always installed- Returns:
- "true"
-