Package net.sf.tweety.arg.bipolar.syntax
Class BinaryAttack
- java.lang.Object
-
- net.sf.tweety.graphs.Edge<T>
-
- net.sf.tweety.graphs.DirectedEdge<BArgument>
-
- net.sf.tweety.arg.bipolar.syntax.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 ofArgumentand is used by abstract argumentation theories.- Author:
- Lars Bengel
-
-
Constructor Summary
Constructors Constructor Description BinaryAttack(BArgument attacker, BArgument attacked)Default constructor; initializes the two arguments used in this attack relation
-
Method Summary
Modifier and Type Method Description booleancontains(Object o)booleanequals(Object o)BArgumentgetAttacked()returns the attacked argument of this attack relation.BArgumentgetAttacker()returns the attacking argument of this attack relation.net.sf.tweety.arg.dung.ldo.syntax.LdoFormulagetLdoFormula()net.sf.tweety.commons.SignaturegetSignature()inthashCode()StringtoString()
-
-
-
Method Detail
-
getAttacked
public BArgument getAttacked()
returns the attacked argument of this attack relation.- Specified by:
getAttackedin interfaceAttack- Returns:
- the attacked argument of this attack relation.
-
getAttacker
public BArgument getAttacker()
returns the attacking argument of this attack relation.- Specified by:
getAttackerin interfaceAttack- Returns:
- the attacking argument of this attack relation.
-
toString
public String toString()
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classnet.sf.tweety.graphs.Edge<BArgument>
-
hashCode
public int hashCode()
- Overrides:
hashCodein classnet.sf.tweety.graphs.Edge<BArgument>
-
contains
public boolean contains(Object o)
- Specified by:
containsin interfaceBipolarEntity
-
getLdoFormula
public net.sf.tweety.arg.dung.ldo.syntax.LdoFormula getLdoFormula()
- Specified by:
getLdoFormulain interfacenet.sf.tweety.arg.dung.syntax.DungEntity
-
getSignature
public net.sf.tweety.commons.Signature getSignature()
- Specified by:
getSignaturein interfacenet.sf.tweety.commons.Formula
-
-