Class AbstractAspicReasoner<T extends Invertable>
java.lang.Object
org.tweetyproject.arg.aspic.reasoner.AbstractAspicReasoner<T>
- Type Parameters:
T
- The type of formulas
- All Implemented Interfaces:
QualitativeReasoner<AspicArgumentationTheory<T>,
,T> Reasoner<Boolean,
AspicArgumentationTheory<T>, T>
- Direct Known Subclasses:
DirectionalAspicReasoner
,ModuleBasedAspicReasoner
,RandomAspicReasoner
,SimpleAspicReasoner
public abstract class AbstractAspicReasoner<T extends Invertable>
extends Object
implements QualitativeReasoner<AspicArgumentationTheory<T>,T>
The abstract ancestor of all Aspic reasoner implementations
- Author:
- Matthias Thimm
-
Constructor Summary
ConstructorDescriptionAbstractAspicReasoner
(AbstractExtensionReasoner aafReasoner) Creates a new instance -
Method Summary
Modifier and TypeMethodDescriptionabstract DungTheory
getDungTheory
(AspicArgumentationTheory<T> aat, T query) Computes the Dung theory from which the answer will be derivedquery
(AspicArgumentationTheory<T> aat, T query) Queries the given belief base for the given formula.final Boolean
query
(AspicArgumentationTheory<T> aat, T query, InferenceMode inferenceMode) Queries the given AspicArgumentationTheory for the given formula using the given inference type.final Boolean
query
(DungTheory dt, T query, InferenceMode inferenceMode) Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.tweetyproject.commons.QualitativeReasoner
isInstalled
-
Constructor Details
-
AbstractAspicReasoner
Creates a new instance- Parameters:
aafReasoner
- Underlying reasoner for AAFs.
-
-
Method Details
-
getDungTheory
Computes the Dung theory from which the answer will be derived- Parameters:
aat
- some Aspic theoryquery
- some query- Returns:
- a Dung theory
-
query
Description copied from interface:Reasoner
Queries the given belief base for the given formula.- Specified by:
query
in interfaceQualitativeReasoner<AspicArgumentationTheory<T extends Invertable>,
T extends Invertable> - Specified by:
query
in interfaceReasoner<Boolean,
AspicArgumentationTheory<T extends Invertable>, T extends Invertable> - Parameters:
aat
- a belief basequery
- a formula- Returns:
- the answer to the query
-
query
Queries the given AspicArgumentationTheory for the given formula using the given inference type.- Parameters:
aat
- an AspicArgumentationTheoryquery
- a formulainferenceMode
- either Semantics.SCEPTICAL_INFERENCE or Semantics.CREDULOUS_INFERENCE- Returns:
- "true" if the formula is accepted
-
query
- Parameters:
dt
- dung theoryquery
- a formulainferenceMode
- either Semantics.SCEPTICAL_INFERENCE or Semantics.CREDULOUS_INFERENCE- Returns:
- "true" if the formula is accepted
-