Class ExtendedAttack
java.lang.Object
org.tweetyproject.arg.extended.syntax.ExtendedAttack
- All Implemented Interfaces:
DungEntity,Formula
Represents an Extended Attack, i.e., an attack from some argument to another
(extended) attack or argument
- Author:
- Lars Bengel
-
Constructor Summary
ConstructorsConstructorDescriptionExtendedAttack(Argument attacker, Argument attacked) Initializes an extended attack from an argument to an argumentExtendedAttack(Argument attacker, Attack attacked) Initializes an extended attack from an argument to an attackExtendedAttack(Argument attacker, DungEntity attacked) Constructs anExtendedAttackobject, which represents an extended attack in a Dung argumentation framework.ExtendedAttack(Argument attacker, ExtendedAttack attacked) Initializes an extended attack from an argument to an extended attack -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturn true if the given argument is in this attack relation.booleanDetermines whether the given attack is contained in this attackbooleancontains(ExtendedAttack attack) Determines whether the given attack is contained in this attackbooleanreturns the attacked element 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.getNodeA()get first node of the edgegetNodeB()get target of edgeReturns the signature of the language of this formula.inthashCode()toString()
-
Constructor Details
-
ExtendedAttack
Constructs anExtendedAttackobject, which represents an extended attack in a Dung argumentation framework. The attack can target either an argument, a regular attack, or another extended attack.- Parameters:
attacker- The argument that initiates the attack.attacked- The target of the attack, which can be either anArgument, anAttack, or anExtendedAttack.- Throws:
IllegalArgumentException- If the target type of the attack is not supported (i.e., not an Argument, Attack, or ExtendedAttack).
-
ExtendedAttack
Initializes an extended attack from an argument to an extended attack- Parameters:
attacker- some argumentattacked- some extended attack
-
ExtendedAttack
-
ExtendedAttack
-
-
Method Details
-
getNodeA
-
getNodeB
-
getAttacked
returns the attacked element of this attack relation.- Returns:
- the attacked element 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.
-
contains
Determines whether the given attack is contained in this attack- Parameters:
attack- some attack- Returns:
- "true" if the given attack is contained in this attack
-
contains
Determines whether the given attack is contained in this attack- Parameters:
attack- some extended attack- Returns:
- "true" if the given attack is contained in this attack
-
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
-
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.
-