Class AbstractExtensionReasoner
java.lang.Object
org.tweetyproject.arg.dung.reasoner.AbstractDungReasoner
org.tweetyproject.arg.dung.reasoner.AbstractExtensionReasoner
- All Implemented Interfaces:
ModelProvider<Argument, DungTheory, Extension<DungTheory>>,PostulateEvaluatable<Argument>,QualitativeReasoner<DungTheory, Argument>,Reasoner<Boolean, DungTheory, Argument>
- Direct Known Subclasses:
AbstractSatExtensionReasoner,ProboI23Reasoner,ProboReasoner,QualifiedReasoner,SccCF2Reasoner,SCF2Reasoner,SCOOCNaiveReasoner,SemiQualifiedReasoner,SerialisedExtensionReasoner,SimpleAdmissibleReasoner,SimpleCompleteReasoner,SimpleConflictFreeReasoner,SimpleEagerReasoner,SimpleGroundedReasoner,SimpleIdealReasoner,SimpleInitialReasoner,SimpleNaiveReasoner,SimplePreferredReasoner,SimpleResolutionBasedReasoner,SimpleSccCompleteReasoner,SimpleSccRecursiveReasoner,SimpleSemiStableReasoner,SimpleStableReasoner,SimpleStageReasoner,SolidAdmissibleReasoner,Stage2Reasoner,StronglyAdmissibleReasoner,VacuousReductReasoner,WeaklyAdmissibleReasoner,WeaklyCompleteReasoner,WeaklyGroundedReasoner,WeaklyPreferredReasoner
public abstract class AbstractExtensionReasoner
extends AbstractDungReasoner
implements ModelProvider<Argument, DungTheory, Extension<DungTheory>>, PostulateEvaluatable<Argument>
Ancestor class for all extension-based reasoners.
- Author:
- Matthias Thimm
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AbstractExtensionReasonergetSimpleReasonerForSemantics(Semantics semantics) Creates a reasoner for the given semantics.booleanthe solver is natively installed and is therefore always installedquery(DungTheory beliefbase, Argument formula) Queries the given belief base with the provided formula and returns a boolean result.query(DungTheory beliefbase, Argument formula, InferenceMode inferenceMode) Queries the given AAF for the given argument using the given inference type.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.tweetyproject.commons.ModelProvider
getModel, getModels
-
Constructor Details
-
AbstractExtensionReasoner
public AbstractExtensionReasoner()Default constructor
-
-
Method Details
-
query
Description copied from interface:QualitativeReasonerQueries 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:
queryin interfaceQualitativeReasoner<DungTheory, Argument>- Specified by:
queryin interfaceReasoner<Boolean, DungTheory, Argument>- Specified by:
queryin classAbstractDungReasoner- 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
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
-
getSimpleReasonerForSemantics
Creates a reasoner for the given semantics.- Parameters:
semantics- a semantics- Returns:
- a reasoner for the given Dung theory, inference type, and semantics
-
isInstalled
public boolean isInstalled()the solver is natively installed and is therefore always installed- Specified by:
isInstalledin interfaceQualitativeReasoner<DungTheory, Argument>- Returns:
- `true` if the solver is installed and available, `false` otherwise.
-