Class AbstractADFReasoner
java.lang.Object
org.tweetyproject.arg.adf.reasoner.AbstractADFReasoner
- All Implemented Interfaces:
ModelProvider<Argument,,AbstractDialecticalFramework, Interpretation> QualitativeReasoner<AbstractDialecticalFramework,,Argument> Reasoner<Boolean,AbstractDialecticalFramework, Argument>
- Direct Known Subclasses:
AbstractDialecticalFrameworkReasoner
public abstract class AbstractADFReasoner
extends Object
implements QualitativeReasoner<AbstractDialecticalFramework,Argument>, ModelProvider<Argument,AbstractDialecticalFramework,Interpretation>
Abstract class for reasoners of ADF semantics
- Author:
- Lars Bengel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a single (dedicated) model of the given belief base.booleanChecks whether the underlying solver or reasoning mechanism used by this reasoner is installed and available for use.query(AbstractDialecticalFramework bbase, Argument formula) Queries the given belief base with the provided formula and returns a boolean result.query(AbstractDialecticalFramework beliefbase, Argument formula, InferenceMode inferenceMode) Queries the given ADF for the given argument using the given inference type.queryAll(AbstractDialecticalFramework 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
getModels
-
Constructor Details
-
AbstractADFReasoner
public AbstractADFReasoner()Creates a new abstract ADF reasoner.
-
-
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<AbstractDialecticalFramework,Argument> - Specified by:
queryin interfaceReasoner<Boolean,AbstractDialecticalFramework, Argument> - Parameters:
bbase- 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.
-
queryAll
public Collection<Argument> queryAll(AbstractDialecticalFramework bbase, InferenceMode inferenceMode) Determine the set of acceptable arguments wrt. the given inference mode- Parameters:
bbase- some ADFinferenceMode- the inference mode- Returns:
- the set of acceptable arguments
-
query
public Boolean query(AbstractDialecticalFramework beliefbase, Argument formula, InferenceMode inferenceMode) Queries the given ADF for the given argument using the given inference type.- Parameters:
beliefbase- an ADFformula- a single argumentinferenceMode- either InferenceMode.SKEPTICAL or InferenceMode.CREDULOUS- Returns:
- "true" if the argument is accepted
-
isInstalled
public boolean isInstalled()Description copied from interface:QualitativeReasonerChecks whether the underlying solver or reasoning mechanism used by this reasoner is installed and available for use. This can be helpful when the reasoner depends on external tools or libraries for performing the reasoning tasks.- Specified by:
isInstalledin interfaceQualitativeReasoner<AbstractDialecticalFramework,Argument> - Returns:
- `true` if the solver is installed and available, `false` otherwise.
-
getModel
Description copied from interface:ModelProviderReturns a single (dedicated) model of the given belief base. If the implemented method allows for more than one dedicated model, the selection may be non-deterministic.- Specified by:
getModelin interfaceModelProvider<Argument,AbstractDialecticalFramework, Interpretation> - Parameters:
bbase- some belief base- Returns:
- a selected model of the belief base.
-