Class AbstractExtensionSetAfReasoner
java.lang.Object
org.tweetyproject.arg.setaf.reasoners.AbstractSetAfReasoner
org.tweetyproject.arg.setaf.reasoners.AbstractExtensionSetAfReasoner
- All Implemented Interfaces:
ModelProvider<Argument, SetAf, Extension<SetAf>>,PostulateEvaluatable<Argument>,QualitativeReasoner<SetAf,,Argument> Reasoner<Boolean,SetAf, Argument>
- Direct Known Subclasses:
SimpleAdmissibleSetAfReasoner,SimpleCompleteSetAfReasoner,SimpleConflictFreeSetAfReasoner,SimpleEagerSetAfReasoner,SimpleGroundedSetAfReasoner,SimpleIdealSetAfReasoner,SimplePreferredSetAfReasoner,SimpleSemiStableSetAfReasoner,SimpleStableSetAfReasoner,SimpleStageSetAfReasoner
public abstract class AbstractExtensionSetAfReasoner
extends AbstractSetAfReasoner
implements ModelProvider<Argument, SetAf, Extension<SetAf>>, PostulateEvaluatable<Argument>
Ancestor class for all SetAf-extension-based reasoners.
- Author:
- Sebastian Franke
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor forAbstractExtensionSetAfReasoner. -
Method Summary
Modifier and TypeMethodDescriptiongetSimpleReasonerForSemantics(Semantics semantics) Creates a reasoner for the given semantics.Queries the given belief base with the provided formula and returns a boolean result.query(SetAf 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, getModelsMethods inherited from interface org.tweetyproject.commons.QualitativeReasoner
isInstalled
-
Constructor Details
-
AbstractExtensionSetAfReasoner
public AbstractExtensionSetAfReasoner()Default constructor forAbstractExtensionSetAfReasoner.
-
-
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<SetAf,Argument> - Specified by:
queryin interfaceReasoner<Boolean,SetAf, Argument> - Specified by:
queryin classAbstractSetAfReasoner- 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
-