Class StrongConfidentAttack
- java.lang.Object
-
- net.sf.tweety.arg.lp.semantics.attack.StrongConfidentAttack
-
- All Implemented Interfaces:
AttackStrategy
public class StrongConfidentAttack extends java.lang.Object implements AttackStrategy
This notion of attack models the strong confident attack relation. A strongly attacks B iff (1) A confidently attacks B and (2) B does not undercut A.- Author:
- Sebastian Homann
-
-
Field Summary
Fields Modifier and Type Field Description private ConfidentAttack
confidentAttack
private static StrongConfidentAttack
instance
Singleton instance.private Undercut
undercut
-
Constructor Summary
Constructors Modifier Constructor Description private
StrongConfidentAttack()
Private constructor.
-
Method Summary
Modifier and Type Method Description boolean
attacks(Argument a, Argument b)
Returns "true" iff the first argument attacks the second argument.static StrongConfidentAttack
getInstance()
Returns the singleton instance of this class.java.lang.String
toAbbreviation()
Returns the abbreviated identifier of this notion of attack, i.e.java.lang.String
toString()
-
-
-
Field Detail
-
instance
private static StrongConfidentAttack instance
Singleton instance.
-
confidentAttack
private ConfidentAttack confidentAttack
-
undercut
private Undercut undercut
-
-
Method Detail
-
getInstance
public static StrongConfidentAttack getInstance()
Returns the singleton instance of this class.- Returns:
- the singleton instance of this class.
-
attacks
public boolean attacks(Argument a, Argument b)
Description copied from interface:AttackStrategy
Returns "true" iff the first argument attacks the second argument.- Specified by:
attacks
in interfaceAttackStrategy
- Parameters:
a
- some argumentb
- some argument- Returns:
- "true" iff
a
attacksb
.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
toAbbreviation
public java.lang.String toAbbreviation()
Description copied from interface:AttackStrategy
Returns the abbreviated identifier of this notion of attack, i.e. "a" for attack- Specified by:
toAbbreviation
in interfaceAttackStrategy
- Returns:
- a short identifier
-
-