Package net.sf.tweety.arg.aba.reasoner
Class GeneralAbaReasoner<T extends net.sf.tweety.commons.Formula>
- java.lang.Object
-
- net.sf.tweety.arg.aba.reasoner.GeneralAbaReasoner<T>
-
- Type Parameters:
T- the language of the underlying ABA theory
- All Implemented Interfaces:
net.sf.tweety.commons.ModelProvider<Assumption<T>,AbaTheory<T>,AbaExtension<T>>,net.sf.tweety.commons.QualitativeReasoner<AbaTheory<T>,Assumption<T>>,net.sf.tweety.commons.Reasoner<Boolean,AbaTheory<T>,Assumption<T>>
- Direct Known Subclasses:
CompleteReasoner,FlatAbaReasoner,IdealReasoner,PreferredReasoner,StableReasoner,WellFoundedReasoner
public abstract class GeneralAbaReasoner<T extends net.sf.tweety.commons.Formula> extends Object implements net.sf.tweety.commons.QualitativeReasoner<AbaTheory<T>,Assumption<T>>, net.sf.tweety.commons.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 Constructor Description GeneralAbaReasoner()
-
Method Summary
Modifier and Type Method Description AbaExtension<T>getModel(AbaTheory<T> bbase)abstract Collection<AbaExtension<T>>getModels(AbaTheory<T> bbase)Booleanquery(AbaTheory<T> beliefbase, Assumption<T> query)Booleanquery(AbaTheory<T> beliefbase, Assumption<T> query, net.sf.tweety.commons.InferenceMode inferenceMode)Queries the given ABA theory for the given assumption using the given inference type.
-
-
-
Method Detail
-
query
public Boolean query(AbaTheory<T> beliefbase, Assumption<T> query)
- Specified by:
queryin interfacenet.sf.tweety.commons.QualitativeReasoner<AbaTheory<T extends net.sf.tweety.commons.Formula>,Assumption<T extends net.sf.tweety.commons.Formula>>- Specified by:
queryin interfacenet.sf.tweety.commons.Reasoner<Boolean,AbaTheory<T extends net.sf.tweety.commons.Formula>,Assumption<T extends net.sf.tweety.commons.Formula>>
-
query
public Boolean query(AbaTheory<T> beliefbase, Assumption<T> query, net.sf.tweety.commons.InferenceMode inferenceMode)
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
public abstract Collection<AbaExtension<T>> getModels(AbaTheory<T> bbase)
- Specified by:
getModelsin interfacenet.sf.tweety.commons.ModelProvider<Assumption<T extends net.sf.tweety.commons.Formula>,AbaTheory<T extends net.sf.tweety.commons.Formula>,AbaExtension<T extends net.sf.tweety.commons.Formula>>
-
getModel
public AbaExtension<T> getModel(AbaTheory<T> bbase)
- Specified by:
getModelin interfacenet.sf.tweety.commons.ModelProvider<Assumption<T extends net.sf.tweety.commons.Formula>,AbaTheory<T extends net.sf.tweety.commons.Formula>,AbaExtension<T extends net.sf.tweety.commons.Formula>>
-
-