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
ConstructorsConstructorDescriptionAbstractAspicReasoner(AbstractExtensionReasoner aafReasoner) Creates a new instance -
Method Summary
Modifier and TypeMethodDescriptionabstract DungTheorygetDungTheory(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 with the provided formula and returns a boolean result.final Booleanquery(AspicArgumentationTheory<T> aat, T query, InferenceMode inferenceMode) Queries the given AspicArgumentationTheory for the given formula using the given inference type.final Booleanquery(DungTheory dt, T query, InferenceMode inferenceMode) 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
-
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: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<AspicArgumentationTheory<T extends Invertable>,T extends Invertable> - Specified by:
queryin interfaceReasoner<Boolean,AspicArgumentationTheory<T extends Invertable>, T extends Invertable> - Parameters:
aat- 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 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
-