Class Attack
java.lang.Object
- All Implemented Interfaces:
DungEntity,Formula
- Direct Known Subclasses:
AbaAttack,AspicAttack
This class models an attack between two arguments. It comprises of two attributes of
Argument and is mainly used by
abstract argumentation theories as e.g. DungTheory.- Author:
- Matthias Thimm
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturn true if the given argument is in this attack relation.booleanreturns the attacked argument of this attack relation.returns the attacking argument 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.inthashCode()booleanisConflictFree(Collection<? extends Argument> arguments) returns true if one arguments inargumentsattacks another within this attack relation.toString()
-
Constructor Details
-
Attack
-
-
Method Details
-
isConflictFree
returns true if one arguments inargumentsattacks another within this attack relation.- Parameters:
arguments- a list of arguments- Returns:
- returns true if one arguments in
argumentsattacks another.
-
getAttacked
returns the attacked argument of this attack relation.- Returns:
- the attacked argument of this attack relation.
-
getAttacker
returns the attacking argument of this attack relation.- Returns:
- the attacking argument of this attack relation.
-
contains
Return true if the given argument is in this attack relation.- Parameters:
argument- some argument- Returns:
- true if the given argument is in this attack relation.
-
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.
-
toString
- Overrides:
toStringin classDirectedEdge<Argument>
-
equals
-
hashCode
-
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.
-