Class BinaryAttack

  • All Implemented Interfaces:
    Attack, BipolarEntity, net.sf.tweety.arg.dung.syntax.DungEntity, net.sf.tweety.commons.Formula, net.sf.tweety.graphs.Node

    public class BinaryAttack
    extends net.sf.tweety.graphs.DirectedEdge<BArgument>
    implements Attack
    This class models a binary attack relation between two arguments. It comprises of two attributes of Argument and is used by abstract argumentation theories.
    Author:
    Lars Bengel
    • Constructor Detail

      • BinaryAttack

        public BinaryAttack​(BArgument attacker,
                            BArgument attacked)
        Default constructor; initializes the two arguments used in this attack relation
        Parameters:
        attacker - the supporting argument
        attacked - the supported argument
    • Method Detail

      • getAttacked

        public BArgument getAttacked()
        returns the attacked argument of this attack relation.
        Specified by:
        getAttacked in interface Attack
        Returns:
        the attacked argument of this attack relation.
      • getAttacker

        public BArgument getAttacker()
        returns the attacking argument of this attack relation.
        Specified by:
        getAttacker in interface Attack
        Returns:
        the attacking argument of this attack relation.
      • toString

        public String toString()
        Specified by:
        toString in interface Attack
        Overrides:
        toString in class net.sf.tweety.graphs.DirectedEdge<BArgument>
      • equals

        public boolean equals​(Object o)
        Overrides:
        equals in class net.sf.tweety.graphs.Edge<BArgument>
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class net.sf.tweety.graphs.Edge<BArgument>
      • getLdoFormula

        public net.sf.tweety.arg.dung.ldo.syntax.LdoFormula getLdoFormula()
        Specified by:
        getLdoFormula in interface net.sf.tweety.arg.dung.syntax.DungEntity
      • getSignature

        public net.sf.tweety.commons.Signature getSignature()
        Specified by:
        getSignature in interface net.sf.tweety.commons.Formula