Class GeneralAbaReasoner<T extends Formula>
java.lang.Object
org.tweetyproject.arg.aba.reasoner.GeneralAbaReasoner<T>
- Type Parameters:
T- the language of the underlying ABA theory
- All Implemented Interfaces:
ModelProvider<Assumption<T>,,AbaTheory<T>, AbaExtension<T>> QualitativeReasoner<AbaTheory<T>,,Assumption<T>> Reasoner<Boolean,AbaTheory<T>, Assumption<T>>
- Direct Known Subclasses:
CompleteReasoner,FlatAbaReasoner,IdealReasoner,PreferredReasoner,StableReasoner,WellFoundedReasoner
public abstract class GeneralAbaReasoner<T extends Formula>
extends Object
implements QualitativeReasoner<AbaTheory<T>,Assumption<T>>, ModelProvider<Assumption<T>,AbaTheory<T>,AbaExtension<T>>
This is an abstract generalization over non-flat ABA reasoners.
- Author:
- Nils Geilen (geilenn@uni-koblenz.de), Matthias Thimm
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a single (dedicated) model of the given belief base.abstract Collection<AbaExtension<T>> Returns a characterizing model of the given belief basequery(AbaTheory<T> beliefbase, Assumption<T> query) Queries the given belief base with the provided formula and returns a boolean result.query(AbaTheory<T> beliefbase, Assumption<T> query, InferenceMode inferenceMode) Queries the given ABA theory for the given assumption 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.QualitativeReasoner
isInstalled
-
Constructor Details
-
GeneralAbaReasoner
public GeneralAbaReasoner()Default
-
-
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<AbaTheory<T extends Formula>,Assumption<T extends Formula>> - Specified by:
queryin interfaceReasoner<Boolean,AbaTheory<T extends Formula>, Assumption<T extends Formula>> - Parameters:
beliefbase- The belief base to be queried.query- 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 ABA theory for the given assumption using the given inference type.- Parameters:
beliefbase- an ABA theoryquery- some assumptioninferenceMode- either InferenceMode.SKEPTICAL or InferenceMode.CREDULOUS- Returns:
- "true" if the query is accepted
-
getModels
Description copied from interface:ModelProviderReturns a characterizing model of the given belief base- Specified by:
getModelsin interfaceModelProvider<Assumption<T extends Formula>,AbaTheory<T extends Formula>, AbaExtension<T extends Formula>> - Parameters:
bbase- some belief base- Returns:
- the (selected) models of the belief base
-
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<Assumption<T extends Formula>,AbaTheory<T extends Formula>, AbaExtension<T extends Formula>> - Parameters:
bbase- some belief base- Returns:
- a selected model of the belief base.
-