Package net.sf.tweety.arg.dung.syntax
Class Attack
- java.lang.Object
-
- net.sf.tweety.graphs.Edge<T>
-
- net.sf.tweety.graphs.DirectedEdge<Argument>
-
- net.sf.tweety.arg.dung.syntax.Attack
-
- All Implemented Interfaces:
DungEntity,Formula
- Direct Known Subclasses:
ABAAttack,AspicAttack
public class Attack extends DirectedEdge<Argument> implements DungEntity
This class models an attack between two arguments. It comprises of two attributes ofArgumentand is mainly used by abstract argumentation theories as e.g.DungTheory.- Author:
- Matthias Thimm
-
-
Method Summary
Modifier and Type Method Description booleancontains(Argument argument)Return true if the given argument is in this attack relation.booleanequals(java.lang.Object o)ArgumentgetAttacked()returns the attacked argument of this attack relation.ArgumentgetAttacker()returns the attacking argument 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()booleanisConflictFree(java.util.Collection<? extends Argument> arguments)returns true if one arguments inargumentsattacks another within this attack relation.java.lang.StringtoString()
-
-
-
Method Detail
-
isConflictFree
public boolean isConflictFree(java.util.Collection<? extends Argument> arguments)
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
public Argument getAttacked()
returns the attacked argument of this attack relation.- Returns:
- the attacked argument of this attack relation.
-
getAttacker
public Argument getAttacker()
returns the attacking argument of this attack relation.- Returns:
- the attacking argument of this attack relation.
-
contains
public boolean contains(Argument argument)
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
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.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classDirectedEdge<Argument>
-
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.
-
-