Package net.sf.tweety.arg.bipolar.syntax
Class SetAttack
- java.lang.Object
-
- net.sf.tweety.graphs.Edge<T>
-
- net.sf.tweety.graphs.DirectedEdge<BipolarEntity>
-
- net.sf.tweety.arg.bipolar.syntax.SetAttack
-
- All Implemented Interfaces:
Attack,BipolarEntity,net.sf.tweety.arg.dung.syntax.DungEntity,net.sf.tweety.commons.Formula,net.sf.tweety.graphs.Node
public class SetAttack extends net.sf.tweety.graphs.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(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(Object o)booleanequals(Object o)BArgumentgetAttacked()returns the attacked argument of this attack relation.ArgumentSetgetAttacker()returns the attacking set of arguments of this attack relation.net.sf.tweety.arg.dung.ldo.syntax.LdoFormulagetLdoFormula()net.sf.tweety.commons.SignaturegetSignature()inthashCode()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(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 String toString()
- Specified by:
toStringin interfaceAttack- Overrides:
toStringin classnet.sf.tweety.graphs.DirectedEdge<BipolarEntity>
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classnet.sf.tweety.graphs.Edge<BipolarEntity>
-
hashCode
public int hashCode()
- Overrides:
hashCodein classnet.sf.tweety.graphs.Edge<BipolarEntity>
-
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
-
-