Class AttackRelation

java.lang.Object
org.tweetyproject.arg.lp.semantics.AttackRelation

public class AttackRelation extends Object
This class represents an attack relation for a specific set of arguments represented by an ArgumentationKnowledgeBase.
Author:
Sebastian Homann
  • Constructor Details

    • 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 base
      strategy - a notion of attack for arguments in the knowledgebase
  • Method Details

    • 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 argument
      b - another argument
      Returns:
      true iff argument a attacks argument b
    • attacks

      public boolean attacks(Set<Argument> attacker, Argument b)
      Is true iff at least one attacking argument attacks b
      Parameters:
      attacker - a set of arguments
      b - argument to be attacked by one or more arguments from the attacking set
      Returns:
      true iff at least one argument from attacker attacks b
    • getAttackingArguments

      public Set<Argument> getAttackingArguments(Argument a)
      Returns all arguments from the knowledgebase, that attack argument a.
      Parameters:
      a - an argument
      Returns:
      the set of arguments from kb, that attack argument a