public class ArgumentationReasoner extends java.lang.Object implements QualitativeReasoner<ArgumentationKnowledgeBase,Argument>
Modifier and Type | Field and Description |
---|---|
protected AttackStrategy |
attackStrategy |
protected AttackStrategy |
defenceStrategy |
Constructor and Description |
---|
ArgumentationReasoner(AttackStrategy attack,
AttackStrategy defence)
Creates a new ArgumentationReasoner parameterised
by a notion of attack for the opponent and another notion of attack for the defense
|
Modifier and Type | Method and Description |
---|---|
java.util.Set<Argument> |
getDefensibleArguments(ArgumentationKnowledgeBase kb)
Returns the set of defensible arguments, i.e.
|
java.util.Set<Argument> |
getJustifiedArguments(ArgumentationKnowledgeBase kb)
Returns the set of x/y-justified arguments using a bottom-up fixpoint calculation
|
java.util.Set<Argument> |
getOverruledArguments(ArgumentationKnowledgeBase kb)
Returns the set of overruled arguments, i.e.
|
private boolean |
isAcceptable(ArgumentationKnowledgeBase kb,
java.util.Set<Argument> arguments,
java.util.Set<Argument> defendingArguments,
Argument toCheck)
Returns true iff the argument toCheck is x/y-acceptable wrt.
|
boolean |
isDefensible(ArgumentationKnowledgeBase kb,
Argument arg)
An argument is called x/y-defensible if it is neither x/y-justified
nor x/y-overruled.
|
boolean |
isOverruled(ArgumentationKnowledgeBase kb,
Argument arg)
An argument is called x/y-overruled, if it is attacked by an
x/y-justified argument.
|
java.lang.Boolean |
query(ArgumentationKnowledgeBase kb,
Argument query)
Queries the given belief base for the given formula.
|
protected AttackStrategy attackStrategy
protected AttackStrategy defenceStrategy
public ArgumentationReasoner(AttackStrategy attack, AttackStrategy defence)
attack
- defence
- public java.lang.Boolean query(ArgumentationKnowledgeBase kb, Argument query)
Reasoner
query
in interface QualitativeReasoner<ArgumentationKnowledgeBase,Argument>
query
in interface Reasoner<java.lang.Boolean,ArgumentationKnowledgeBase,Argument>
kb
- a belief basequery
- a formulapublic boolean isOverruled(ArgumentationKnowledgeBase kb, Argument arg)
arg
- an argumentpublic boolean isDefensible(ArgumentationKnowledgeBase kb, Argument arg)
arg
- an argumentpublic java.util.Set<Argument> getJustifiedArguments(ArgumentationKnowledgeBase kb)
public java.util.Set<Argument> getOverruledArguments(ArgumentationKnowledgeBase kb)
public java.util.Set<Argument> getDefensibleArguments(ArgumentationKnowledgeBase kb)
private boolean isAcceptable(ArgumentationKnowledgeBase kb, java.util.Set<Argument> arguments, java.util.Set<Argument> defendingArguments, Argument toCheck)
arguments
- defendingArguments
- toCheck
-