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,SerialisableExtensionReasoner,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 for the given formula.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()
-
-
Method Details
-
query
Description copied from interface:ReasonerQueries the given belief base for the given formula.- Specified by:
queryin interfaceQualitativeReasoner<DungTheory,Argument> - Specified by:
queryin interfaceReasoner<Boolean,DungTheory, Argument> - Specified by:
queryin classAbstractDungReasoner- Parameters:
beliefbase- a belief baseformula- a formula- Returns:
- the answer to the query
-
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:
- if the solver is installed
-