Class SimpleInitialReasoner
java.lang.Object
org.tweetyproject.arg.dung.reasoner.AbstractDungReasoner
org.tweetyproject.arg.dung.reasoner.AbstractExtensionReasoner
org.tweetyproject.arg.dung.reasoner.SimpleInitialReasoner
- All Implemented Interfaces:
ModelProvider<Argument,
,DungTheory, Extension<DungTheory>> PostulateEvaluatable<Argument>
,QualitativeReasoner<DungTheory,
,Argument> Reasoner<Boolean,
DungTheory, Argument>
Basic Implementation of a reasoner for initial sets
A set of arguments S is considered initial iff it is non-empty and minimal among the non-empty admissible sets
Ref: Yuming Xu and Claudette Cayrol. Initial sets in abstract argumentation frameworks.
- Author:
- Lars Bengel
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
TheInitial
enum represents the initial status of arguments in a Dung theory. -
Constructor Summary
-
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 baseboolean
isChallenged
(Extension<DungTheory> ext, DungTheory theory) An initial set S is called challenged in F iff there is some other initial set of F which attacks Sboolean
isUnattacked
(Extension<DungTheory> ext, DungTheory theory) A set S is called unattacked if there is no attacker of S in Fboolean
isUnchallenged
(Extension<DungTheory> ext, DungTheory theory) An initial set S is called unchallenged in F iff there is no other initial set of F which attacks SpartitionInitialSets
(DungTheory theory) Helper function that computed the initial sets of F and labels them in three categoriesMethods inherited from class org.tweetyproject.arg.dung.reasoner.AbstractExtensionReasoner
getSimpleReasonerForSemantics, isInstalled, query, query
-
Constructor Details
-
SimpleInitialReasoner
public SimpleInitialReasoner()
-
-
Method Details
-
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
-
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.
-
isUnattacked
A set S is called unattacked if there is no attacker of S in F- Parameters:
ext
- an extension S of theorytheory
- a dung theory F- Returns:
- true if S is unattacked in F
-
isUnchallenged
An initial set S is called unchallenged in F iff there is no other initial set of F which attacks S- Parameters:
ext
- an extension S of theorytheory
- a dung theory F- Returns:
- true if S is unchallenged in F
-
isChallenged
An initial set S is called challenged in F iff there is some other initial set of F which attacks S- Parameters:
ext
- an extension S of theorytheory
- a dung theory F- Returns:
- true if S is challenged in F
-
partitionInitialSets
public static Map<SimpleInitialReasoner.Initial,Collection<Extension<DungTheory>>> partitionInitialSets(DungTheory theory) Helper function that computed the initial sets of F and labels them in three categories- Parameters:
theory
- some argumentation theory F- Returns:
- a map contain the three groups of initial sets
-