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>
- Author:
- Nils Geilen, Matthias Thimm This class models a reasoner over ABA formulae Can only be used with flat ABA theories because only those can be transformed into Dung frameworks
-
-
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>
-
-