Class SerialisableExtensionReasoner
java.lang.Object
org.tweetyproject.arg.dung.reasoner.AbstractDungReasoner
org.tweetyproject.arg.dung.reasoner.AbstractExtensionReasoner
org.tweetyproject.arg.dung.reasoner.serialisable.SerialisableExtensionReasoner
- All Implemented Interfaces:
ModelProvider<Argument,
,DungTheory, Extension<DungTheory>> PostulateEvaluatable<Argument>
,QualitativeReasoner<DungTheory,
,Argument> Reasoner<Boolean,
DungTheory, Argument>
- Direct Known Subclasses:
SerialisedAdmissibleReasoner
,SerialisedUnchallengedReasoner
Ancestor class for serialisable AF reasoners
A serialisable reasoner is defined via the following two methods:
Selection function a(UA, UC, C)
: Return a subset of the initial sets.
Termination function b((AF, S))
: True, if S is an extension.
- Author:
- Lars Bengel, Julian Sander
-
Constructor Summary
ConstructorDescriptionSerialisableExtensionReasoner
(Semantics semantics) Constructs a serialisable extension reasoner for the given semantics -
Method Summary
Modifier and TypeMethodDescriptiongetModel
(DungTheory bbase) Returns a single (dedicated) model of the given belief base.getModels
(DungTheory bbase) Returns a characterizing model of the given belief baseReturn the semantics of this reasonergetSequences
(DungTheory bbase) Computes the set of serialisation sequences that each correspond to some extension wrt.getSerialisableReasonerForSemantics
(Semantics semantics) Returns a reasoner for the given semantics.getSerialisationGraph
(DungTheory bbase) Creates a graph, visualizing the transition states of the serialisation process, which creates all serialisable extensions according to the specified semantics of the specified framework.abstract boolean
terminationFunction
(DungTheory theory, Extension<DungTheory> extension) Determines whether the current state represents an extension wrt.Methods inherited from class org.tweetyproject.arg.dung.reasoner.AbstractExtensionReasoner
getSimpleReasonerForSemantics, isInstalled, query, query
-
Constructor Details
-
SerialisableExtensionReasoner
Constructs a serialisable extension reasoner for the given semantics- Parameters:
semantics
- the semantics of this reasoner
-
-
Method Details
-
getModel
Description copied from interface:ModelProvider
Returns a single (dedicated) model of the given belief base. If the implemented method allows for more than one dedicated model, the selection may be non-deterministic.- Parameters:
bbase
- some belief base- Returns:
- a selected model of the belief base.
-
getModels
Description copied from interface:ModelProvider
Returns a characterizing model of the given belief base- Parameters:
bbase
- some belief base- Returns:
- the (selected) models of the belief base
-
getSequences
Computes the set of serialisation sequences that each correspond to some extension wrt. the semantics of this reasoner.- Parameters:
bbase
- some argumentation framework- Returns:
- the set of serialisation sequences computed by the reasoner
-
getSemantics
Return the semantics of this reasoner- Returns:
- The semantics of this reasoner
-
terminationFunction
Determines whether the current state represents an extension wrt. the semantics of the reasoner or not.- Parameters:
theory
- The current framework of the transition systemextension
- The extension constructed so far- Returns:
- true, if the state satisfies the termination condition of the semantics
-
getSerialisationGraph
Creates a graph, visualizing the transition states of the serialisation process, which creates all serialisable extensions according to the specified semantics of the specified framework.- Parameters:
bbase
- argumentation framework, for which the extensions shall be computed- Returns:
- Graph representing the serialisation sequences
-
getSerialisableReasonerForSemantics
public static SerialisableExtensionReasoner getSerialisableReasonerForSemantics(Semantics semantics) Returns a reasoner for the given semantics.- Parameters:
semantics
- a semantics- Returns:
- a serialisable extension reasoner for the given semantics
-