Class DirectDefeat
- java.lang.Object
-
- net.sf.tweety.arg.deductive.semantics.attacks.DirectDefeat
-
-
Field Summary
Fields Modifier and Type Field Description private static DirectDefeat
instance
Singleton instance.
-
Constructor Summary
Constructors Modifier Constructor Description private
DirectDefeat()
Private constructor.
-
Method Summary
Modifier and Type Method Description static DirectDefeat
getInstance()
Returns the singleton instance of this class.boolean
isAttackedBy(DeductiveArgument a, DeductiveArgument b)
Returns "true" iff the first argument is attacked by the second argument.
-
-
-
Field Detail
-
instance
private static DirectDefeat instance
Singleton instance.
-
-
Method Detail
-
getInstance
public static DirectDefeat getInstance()
Returns the singleton instance of this class.- Returns:
- the singleton instance of this class.
-
isAttackedBy
public boolean isAttackedBy(DeductiveArgument a, DeductiveArgument b)
Description copied from interface:Attack
Returns "true" iff the first argument is attacked by the second argument.- Specified by:
isAttackedBy
in interfaceAttack
- Parameters:
a
- some argumentb
- some argument- Returns:
- "true" iff
a
is attacked byb
.
-
-