Package net.sf.tweety.arg.aba.reasoner
Class FlatAbaReasoner<T extends net.sf.tweety.commons.Formula>
- java.lang.Object
-
- net.sf.tweety.arg.aba.reasoner.GeneralAbaReasoner<T>
-
- net.sf.tweety.arg.aba.reasoner.FlatAbaReasoner<T>
-
- Type Parameters:
T- the type of formulas
- 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>>
public class FlatAbaReasoner<T extends net.sf.tweety.commons.Formula> extends GeneralAbaReasoner<T>
This class models a reasoner over ABA formulae. This reasoner can only be used with flat ABA theories because only those can be transformed into Dung frameworks.- Author:
- Nils Geilen, Matthias Thimm
-
-
Constructor Summary
Constructors Constructor Description FlatAbaReasoner(net.sf.tweety.arg.dung.semantics.Semantics semantics)Creates a new instance
-
Method Summary
Modifier and Type Method Description Collection<AbaExtension<T>>getModels(AbaTheory<T> abat)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.-
Methods inherited from class net.sf.tweety.arg.aba.reasoner.GeneralAbaReasoner
getModel, query
-
-
-
-
Method Detail
-
query
public Boolean query(AbaTheory<T> beliefbase, Assumption<T> query, net.sf.tweety.commons.InferenceMode inferenceMode)
Description copied from class:GeneralAbaReasonerQueries the given ABA theory for the given assumption using the given inference type.- Overrides:
queryin classGeneralAbaReasoner<T extends net.sf.tweety.commons.Formula>- Parameters:
beliefbase- an ABA theoryquery- some assumptioninferenceMode- either InferenceMode.SKEPTICAL or InferenceMode.CREDULOUS- Returns:
- "true" if the query is accepted
-
getModels
public Collection<AbaExtension<T>> getModels(AbaTheory<T> abat)
- 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>>- Specified by:
getModelsin classGeneralAbaReasoner<T extends net.sf.tweety.commons.Formula>
-
-