Class AspicAttack<T extends Invertable>
java.lang.Object
org.tweetyproject.graphs.GeneralEdge<T>
org.tweetyproject.graphs.Edge<T>
org.tweetyproject.graphs.DirectedEdge<Argument>
org.tweetyproject.arg.dung.syntax.Attack
org.tweetyproject.arg.aspic.semantics.AspicAttack<T>
- Type Parameters:
- T- is the type of the language that the ASPIC theory's rules range over
- All Implemented Interfaces:
- DungEntity,- Formula
Checks whether an argument defeats another argument
- Author:
- Nils Geilen
- 
Constructor SummaryConstructorsConstructorDescriptionAspicAttack(AspicArgument<T> active, AspicArgument<T> passive) Creates a new AspicAttack
- 
Method SummaryModifier and TypeMethodDescriptionstatic <T extends Invertable>
 Collection<AspicAttack<T>>determineAttackRelations(Collection<AspicArgument<T>> args, Comparator<AspicArgument<T>> order, RuleFormulaGenerator<T> rfgen) Checks for defeats in a list of argumentsstatic <T extends Invertable>
 booleanisAttack(AspicArgument<T> active, AspicArgument<T> passive, RuleFormulaGenerator<T> rfgen, Comparator<AspicArgument<T>> order) Determines whether the attack is successfultoString()Methods inherited from class org.tweetyproject.arg.dung.syntax.Attackcontains, equals, getAttacked, getAttacker, getLdoFormula, getSignature, hashCode, isConflictFree
- 
Constructor Details- 
AspicAttackCreates a new AspicAttack- Parameters:
- active- the attacking argument
- passive- the attacked argument
 
 
- 
- 
Method Details- 
determineAttackRelationspublic static <T extends Invertable> Collection<AspicAttack<T>> determineAttackRelations(Collection<AspicArgument<T>> args, Comparator<AspicArgument<T>> order, RuleFormulaGenerator<T> rfgen) Checks for defeats in a list of arguments- Type Parameters:
- T- the type of formula
- Parameters:
- args- a list of arguments
- order- an comparator which should compare the arguments in args
- rfgen- a rule formula generator
- Returns:
- a list of all tuples (a,b) with a, b in args where a defeats b
 
- 
isAttackpublic static <T extends Invertable> boolean isAttack(AspicArgument<T> active, AspicArgument<T> passive, RuleFormulaGenerator<T> rfgen, Comparator<AspicArgument<T>> order) Determines whether the attack is successful- Type Parameters:
- T- the type of formulas
- Parameters:
- active- the active argument
- passive- the passive argument
- rfgen- a rule formula generator
- order- a comparator
- Returns:
- true iff the attack is succuessful
 
- 
toString
 
-