Class SetAttack
- java.lang.Object
-
- org.tweetyproject.graphs.Edge<T>
-
- org.tweetyproject.graphs.DirectedEdge<BipolarEntity>
-
- org.tweetyproject.arg.bipolar.syntax.SetAttack
-
- All Implemented Interfaces:
Attack,BipolarEntity,DungEntity,Formula,Node
public class SetAttack extends DirectedEdge<BipolarEntity> implements Attack
This class models an attack between a set of arguments and an argument. It comprises of a set ofBArgumentand is used by bipolar abstract argumentation theories.- Author:
- Lars Bengel
-
-
Constructor Summary
Constructors Constructor Description SetAttack(java.util.Collection<BArgument> supporter, BArgument supported)initializes the arguments used in this attack relationSetAttack(ArgumentSet supporter, BArgument supported)Default constructor; initializes the arguments used in this attack relationSetAttack(BArgument supporter, BArgument supported)initializes the 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.ArgumentSetgetAttacker()returns the attacking set of arguments 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()
-
-
-
Constructor Detail
-
SetAttack
public SetAttack(ArgumentSet supporter, BArgument supported)
Default constructor; initializes the arguments used in this attack relation- Parameters:
supporter- the attacking set of argumentssupported- the attacked argument
-
SetAttack
public SetAttack(java.util.Collection<BArgument> supporter, BArgument supported)
initializes the arguments used in this attack relation- Parameters:
supporter- a collection of attacking arguments argumentssupported- the attacked argument
-
-
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 ArgumentSet getAttacker()
returns the attacking set of arguments of this attack relation.- Specified by:
getAttackerin interfaceAttack- Returns:
- the attacking set of arguments of this attack relation.
-
toString
public java.lang.String toString()
- Specified by:
toStringin interfaceAttack- Overrides:
toStringin classDirectedEdge<BipolarEntity>
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classEdge<BipolarEntity>
-
hashCode
public int hashCode()
- Overrides:
hashCodein classEdge<BipolarEntity>
-
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.
-
-