Package net.sf.tweety.arg.lp.semantics
Class AttackRelation
- java.lang.Object
-
- net.sf.tweety.arg.lp.semantics.AttackRelation
-
public class AttackRelation extends java.lang.Object
This class represents an attack relation for a specific set of arguments represented by an ArgumentationKnowledgeBase.- Author:
- Sebastian Homann
-
-
Constructor Summary
Constructors Constructor Description AttackRelation(ArgumentationKnowledgeBase kb, AttackStrategy strategy)
Creates a new AttackRelation for an argumentation knowledgebase and a certain notion of attack.
-
Method Summary
Modifier and Type Method Description boolean
attacks(java.util.Set<Argument> attacker, Argument b)
Is true iff at least one attacking argument attacks bboolean
attacks(Argument a, Argument b)
Returns true iff argument a attacks argument b for the notion of attack represented by this attack relation.java.util.Set<Argument>
getAttackingArguments(Argument a)
Returns all arguments from the knowledgebase, that attack argument a.
-
-
-
Constructor Detail
-
AttackRelation
public AttackRelation(ArgumentationKnowledgeBase kb, AttackStrategy strategy)
Creates a new AttackRelation for an argumentation knowledgebase and a certain notion of attack.- Parameters:
kb
- an argument knowledge basestrategy
- a notion of attack for arguments in the knowledgebase
-
-
Method Detail
-
attacks
public boolean attacks(Argument a, Argument b)
Returns true iff argument a attacks argument b for the notion of attack represented by this attack relation.- Parameters:
a
- an argumentb
- another argument- Returns:
- true iff argument a attacks argument b
-
attacks
public boolean attacks(java.util.Set<Argument> attacker, Argument b)
Is true iff at least one attacking argument attacks b- Parameters:
attacker
- a set of argumentsb
- argument to be attacked by one or more arguments from the attacking set- Returns:
- true iff at least one argument from attacker attacks b
-
-