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,DungEntity,Formula,Node
public class BinaryAttack extends 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(java.lang.Object o)booleanequals(java.lang.Object o)BArgumentgetAttacked()returns the attacked argument of this attack relation.BArgumentgetAttacker()returns the attacking argument of this attack relation.LdoFormulagetLdoFormula()Returns a logical representation of this entity in LDO (Logic of dialectical outcomes, cf.SignaturegetSignature()Returns the signature of the language of this formula.inthashCode()java.lang.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 java.lang.String toString()
- Specified by:
toStringin interfaceAttack- Overrides:
toStringin classDirectedEdge<BArgument>
-
contains
public boolean contains(java.lang.Object o)
- Specified by:
containsin interfaceBipolarEntity
-
getLdoFormula
public LdoFormula getLdoFormula()
Description copied from interface:DungEntityReturns a logical representation of this entity in LDO (Logic of dialectical outcomes, cf. [Hunter, Thimm, 2015])- Specified by:
getLdoFormulain interfaceDungEntity- Returns:
- the logical formula of this entity.
-
getSignature
public Signature getSignature()
Description copied from interface:FormulaReturns the signature of the language of this formula.- Specified by:
getSignaturein interfaceFormula- Returns:
- the signature of the language of this formula.
-
-