Package net.sf.tweety.arg.aba.semantics
Class AbaAttack<T extends net.sf.tweety.commons.Formula>
- java.lang.Object
-
- net.sf.tweety.graphs.Edge<T>
-
- net.sf.tweety.graphs.DirectedEdge<net.sf.tweety.arg.dung.syntax.Argument>
-
- net.sf.tweety.arg.dung.syntax.Attack
-
- net.sf.tweety.arg.aba.semantics.AbaAttack<T>
-
- Type Parameters:
T- is the type of the language that the ABA theory's rules range over
- All Implemented Interfaces:
net.sf.tweety.arg.dung.syntax.DungEntity,net.sf.tweety.commons.Formula
public class AbaAttack<T extends net.sf.tweety.commons.Formula> extends net.sf.tweety.arg.dung.syntax.AttackThis class models an ABA attack.- Author:
- Nils Geilen (geilenn@uni-koblenz.de)
-
-
Constructor Summary
Constructors Constructor Description AbaAttack(net.sf.tweety.arg.dung.syntax.Argument attacker, net.sf.tweety.arg.dung.syntax.Argument attacked)Creates a new ABA attack
-
Method Summary
Modifier and Type Method Description static <T extends net.sf.tweety.commons.Formula>
Collection<AbaAttack<T>>allAttacks(Collection<Assumption<T>> from, Collection<Assumption<T>> to, AbaTheory<T> abat)Returns all attacks from the given attacking set to the given attacked set.static <T extends net.sf.tweety.commons.Formula>
Collection<AbaAttack<T>>allAttacks(AbaTheory<T> abat)Returns all attacks between arguments in the given AbaTheory.static <T extends net.sf.tweety.logics.commons.syntax.interfaces.Invertable>
booleanattacks(Deduction<T> attacker, Assumption<T> attacked)
-
-
-
Method Detail
-
attacks
public static <T extends net.sf.tweety.logics.commons.syntax.interfaces.Invertable> boolean attacks(Deduction<T> attacker, Assumption<T> attacked)
- Parameters:
attacker- the attacking argumentattacked- the attacked argument- Returns:
- true iff attacker attacks attacked
-
allAttacks
public static <T extends net.sf.tweety.commons.Formula> Collection<AbaAttack<T>> allAttacks(Collection<Assumption<T>> from, Collection<Assumption<T>> to, AbaTheory<T> abat)
Returns all attacks from the given attacking set to the given attacked set.- Type Parameters:
T- the type of formulas- Parameters:
from- the attacking setto- the attacked setabat- the ABA theory used to determine attacks- Returns:
- the set of attacks from the attacking set to the attacked set
-
allAttacks
public static <T extends net.sf.tweety.commons.Formula> Collection<AbaAttack<T>> allAttacks(AbaTheory<T> abat)
Returns all attacks between arguments in the given AbaTheory.- Type Parameters:
T- the type of formulas- Parameters:
abat- the ABA theory used to determine attacks- Returns:
- all attacks between arguments in abat
-
-