Class SerialisedExtensionReasoner
java.lang.Object
org.tweetyproject.arg.dung.reasoner.AbstractDungReasoner
org.tweetyproject.arg.dung.reasoner.AbstractExtensionReasoner
org.tweetyproject.arg.dung.reasoner.SerialisedExtensionReasoner
- All Implemented Interfaces:
ModelProvider<Argument, DungTheory, Extension<DungTheory>>,PostulateEvaluatable<Argument>,QualitativeReasoner<DungTheory, Argument>,Reasoner<Boolean, DungTheory, Argument>
Reasoner for serialisable semantics
A semantics is serialisable iff it can be characterised by two functions
SelectionFunctiona(UA, UC, C): Return a subset of the initial setsTerminationFunctionb(AF, S): True, iff S is an extension
a(UA,UC,C) provides the
possible transitions to new states
and b(AF,S) determines whether the current state is an extension of
the semantics.- Author:
- Lars Bengel
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSerialisedExtensionReasoner(Semantics semantics) Initializes a serialisation reasoner for the given semanticsInitializes a serialisation reasoner with the given selection and termination functionsSerialisedExtensionReasoner(SelectionFunction alpha, TerminationFunction beta, Semantics semantics) Initializes a serialisation reasoner with the given selection and termination functions and sets the 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 basegetSelection(Collection<Extension<DungTheory>> ua, Collection<Extension<DungTheory>> uc, Collection<Extension<DungTheory>> c) Applies a selection function to compute a collection of preferred extensions from given sets of extensions.Return the semantics of this reasonergetSequences(DungTheory bbase) Computes the set of serialisation sequences wrt.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.booleanisTerminal(DungTheory theory, Extension<DungTheory> extension) Checks whether a given extension is terminal in the specified Dung theory.Methods inherited from class org.tweetyproject.arg.dung.reasoner.AbstractExtensionReasoner
getSimpleReasonerForSemantics, isInstalled, query, query
-
Constructor Details
-
SerialisedExtensionReasoner
Initializes a serialisation reasoner with the given selection and termination functions- Parameters:
alpha- some selection functionbeta- some termination function
-
SerialisedExtensionReasoner
public SerialisedExtensionReasoner(SelectionFunction alpha, TerminationFunction beta, Semantics semantics) Initializes a serialisation reasoner with the given selection and termination functions and sets the semantics- Parameters:
alpha- some selection functionbeta- some termination functionsemantics- some semantics
-
SerialisedExtensionReasoner
Initializes a serialisation reasoner for the given semantics- Parameters:
semantics- some selection function
-
-
Method Details
-
getModels
Description copied from interface:ModelProviderReturns a characterizing model of the given belief base- Parameters:
bbase- some belief base- Returns:
- the (selected) models of the belief base
-
getModel
Description copied from interface:ModelProviderReturns 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.
-
getSequences
Computes the set of serialisation sequences wrt. the semantics- Parameters:
bbase- some argumentation framework- Returns:
- the set of serialisation sequences
-
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
-
getSemantics
-
getSelection
public Collection<Extension<DungTheory>> getSelection(Collection<Extension<DungTheory>> ua, Collection<Extension<DungTheory>> uc, Collection<Extension<DungTheory>> c) Applies a selection function to compute a collection of preferred extensions from given sets of extensions.- Parameters:
ua- A collection of unattacked extensions of the Dung theory.uc- A collection of unattacked but conflicting extensions.c- A collection of conflicting extensions.- Returns:
- A collection of
Extensionobjects selected based on the applied selection function. - Throws:
ClassCastException- if any of the input collections cannot be cast toSet<Extension<DungTheory>>.
-
isTerminal
Checks whether a given extension is terminal in the specified Dung theory.- Parameters:
theory- TheDungTheoryin which the extension is evaluated.extension- TheExtensionto be checked for terminal status.- Returns:
trueif the extension is terminal in the given theory;falseotherwise.
-