Class AbstractBipolarExtensionReasoner
java.lang.Object
org.tweetyproject.arg.bipolar.reasoner.AbstractBipolarExtensionReasoner
- All Implemented Interfaces:
ModelProvider<Argument,,BipolarArgumentationFramework, Extension<BipolarArgumentationFramework>> PostulateEvaluatable<Argument>,QualitativeReasoner<BipolarArgumentationFramework,,Argument> Reasoner<Boolean,BipolarArgumentationFramework, Argument>
- Direct Known Subclasses:
SimpleCoalitionReasoner,SimpleCoherentAdmissibleReasoner,SimpleCoherentReasoner,SimpleDeductiveReasoner,SimpleNecessityReasoner,SimpleStronglyConflictFreeReasoner
public abstract class AbstractBipolarExtensionReasoner
extends Object
implements ModelProvider<Argument,BipolarArgumentationFramework,Extension<BipolarArgumentationFramework>>, PostulateEvaluatable<Argument>, QualitativeReasoner<BipolarArgumentationFramework,Argument>
Abstract class for reasoners for bipolar argumentation
- Author:
- Lars Bengel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetSimpleReasonerForSemantics(Semantics semantics) Return a reasoner for the given semanticsbooleanthe solver is natively installed and is therefore always installedquery(BipolarArgumentationFramework beliefbase, Argument formula) Queries the given belief base with the provided formula and returns a boolean result.query(BipolarArgumentationFramework beliefbase, Argument formula, InferenceMode inferenceMode) Queries the given AAF for the given argument using the given inference type.queryAll(BipolarArgumentationFramework bbase, InferenceMode inferenceMode) Determine the set of acceptable arguments wrt.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
-
AbstractBipolarExtensionReasoner
public AbstractBipolarExtensionReasoner()Default constructor
-
-
Method Details
-
getSimpleReasonerForSemantics
Return a reasoner for the given semantics- Parameters:
semantics- some semantics- Returns:
- reasoner for the semantics
-
queryAll
public Collection<Argument> queryAll(BipolarArgumentationFramework bbase, InferenceMode inferenceMode) Determine the set of acceptable arguments wrt. the given inference mode- Parameters:
bbase- some bipolar argumentation frameworkinferenceMode- the inference mode- Returns:
- the set of acceptable arguments
-
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<BipolarArgumentationFramework,Argument> - Specified by:
queryin interfaceReasoner<Boolean,BipolarArgumentationFramework, Argument> - 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(BipolarArgumentationFramework 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
-
isInstalled
public boolean isInstalled()the solver is natively installed and is therefore always installed- Specified by:
isInstalledin interfaceQualitativeReasoner<BipolarArgumentationFramework,Argument> - Returns:
- `true` if the solver is installed and available, `false` otherwise.
-