public class AttackRelation
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private ArgumentationKnowledgeBase |
kb |
private AttackStrategy |
strategy |
| Constructor and Description |
|---|
AttackRelation(ArgumentationKnowledgeBase kb,
AttackStrategy strategy)
Creates a new AttackRelation for an argumentation knowledgebase
and a certain notion of attack.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
attacks(Argument a,
Argument b)
Returns true iff argument a attacks argument b for the notion of
attack represented by this attack relation.
|
boolean |
attacks(java.util.Set<Argument> attacker,
Argument b)
Is true iff at least one attacking argument attacks b
|
java.util.Set<Argument> |
getAttackingArguments(Argument a)
Returns all arguments from the knowledgebase, that attack argument a.
|
private ArgumentationKnowledgeBase kb
private AttackStrategy strategy
public AttackRelation(ArgumentationKnowledgeBase kb, AttackStrategy strategy)
kb - an argument knowledge basestrategy - a notion of attack for arguments in the knowledgebasepublic boolean attacks(Argument a, Argument b)
a - an argumentb - another argumentpublic boolean attacks(java.util.Set<Argument> attacker, Argument b)
attacker - a set of argumentsb - argument to be attacked by one or more arguments from the attacking set