Class SetAttack
java.lang.Object
- All Implemented Interfaces:
Iterable<BArgument>
,Attack
,BipolarEntity
,DungEntity
,Formula
,Node
This class models an attack between a set of arguments and an argument. It comprises of a set of
BArgument
and is used by
bipolar abstract argumentation theories.- Author:
- Lars Bengel
-
Constructor Summary
ConstructorDescriptionSetAttack
(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 relationinitializes the arguments used in this attack relation -
Method Summary
Modifier and TypeMethodDescriptionboolean
Checks if this entity contains the specified object.boolean
returns the attacked argument of this attack relation.returns the attacking set of arguments of this attack relation.Returns a logical representation of this entity in LDO (Logic of dialectical outcomes, cf.Returns the signature of the language of this formula.int
hashCode()
iterator()
toString()
Provides a string representation of the attack.Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
SetAttack
Default constructor; initializes the arguments used in this attack relation- Parameters:
supporter
- the attacking set of argumentssupported
- the attacked argument
-
SetAttack
initializes the arguments used in this attack relation- Parameters:
supporter
- a collection of attacking arguments argumentssupported
- the attacked argument
-
SetAttack
-
-
Method Details
-
getAttacked
returns the attacked argument of this attack relation.- Specified by:
getAttacked
in interfaceAttack
- Returns:
- the attacked argument of this attack relation.
-
getAttacker
returns the attacking set of arguments of this attack relation.- Specified by:
getAttacker
in interfaceAttack
- Returns:
- the attacking set of arguments of this attack relation.
-
toString
Description copied from interface:Attack
Provides a string representation of the attack.This method returns a string that describes the attack relation, typically including the identities of the attacker and the attacked entity.
- Specified by:
toString
in interfaceAttack
- Overrides:
toString
in classDirectedEdge<BipolarEntity>
- Returns:
- a string representation of the attack
-
equals
- Overrides:
equals
in classEdge<BipolarEntity>
-
hashCode
public int hashCode()- Overrides:
hashCode
in classEdge<BipolarEntity>
-
contains
Description copied from interface:BipolarEntity
Checks if this entity contains the specified object.- Specified by:
contains
in interfaceBipolarEntity
- Parameters:
o
- the object to check for containment, typically aBArgument
- Returns:
true
if the object is contained within this entity,false
otherwise
-
getLdoFormula
Description copied from interface:DungEntity
Returns a logical representation of this entity in LDO (Logic of dialectical outcomes, cf. [Hunter, Thimm, 2015])- Specified by:
getLdoFormula
in interfaceDungEntity
- Returns:
- the logical formula of this entity.
-
getSignature
Description copied from interface:Formula
Returns the signature of the language of this formula.- Specified by:
getSignature
in interfaceFormula
- Returns:
- the signature of the language of this formula.
-
iterator
-