Class 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
    • 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 b
      boolean 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.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 base
        strategy - 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 argument
        b - 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 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 java.util.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