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,net.sf.tweety.commons.Formula
public class Attack extends net.sf.tweety.graphs.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(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.net.sf.tweety.commons.SignaturegetSignature()inthashCode()booleanisConflictFree(Collection<? extends Argument> arguments)returns true if one arguments inargumentsattacks another within this attack relation.StringtoString()
-
-
-
Method Detail
-
isConflictFree
public boolean isConflictFree(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 net.sf.tweety.commons.Signature getSignature()
- Specified by:
getSignaturein interfacenet.sf.tweety.commons.Formula
-
toString
public String toString()
- Overrides:
toStringin classnet.sf.tweety.graphs.DirectedEdge<Argument>
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classnet.sf.tweety.graphs.Edge<Argument>
-
hashCode
public int hashCode()
- Overrides:
hashCodein classnet.sf.tweety.graphs.Edge<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.
-
-