Class BArgument
java.lang.Object
org.tweetyproject.arg.dung.syntax.Argument
org.tweetyproject.arg.bipolar.syntax.BArgument
- All Implemented Interfaces:
Comparable<Argument>,Iterable<BArgument>,BipolarEntity,DungEntity,Formula,Node
This class models an argument used by bipolar abstract argumentation theories.
- Author:
- Lars Bengel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks if this argument is equal to the specified object.booleanisSupportedBy(EAFTheory theory, BipolarEntity x) Checks if this argument is supported by another argument in the given theory.iterator()Returns an iterator over the arguments in this set.Methods inherited from class org.tweetyproject.arg.dung.syntax.Argument
compareTo, equals, getLdoArgument, getLdoFormula, getName, getSignature, hashCode, setName, toStringMethods inherited from interface org.tweetyproject.arg.dung.syntax.DungEntity
getLdoFormulaMethods inherited from interface org.tweetyproject.commons.Formula
getSignatureMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
BArgument
Constructs a new bipolar argument with the specified name.- Parameters:
name- the name of the argument
-
BArgument
Constructs a new bipolar argument from an existing argument.- Parameters:
arg- the argument to be converted
-
-
Method Details
-
contains
Checks if this argument is equal to the specified object.This method checks for equality based on the argument's name.
- Specified by:
containsin interfaceBipolarEntity- Parameters:
arg0- the object to be compared- Returns:
trueif this argument is equal to the specified object;falseotherwise
-
iterator
Returns an iterator over the arguments in this set.This method is not implemented for the current class and returns
null. In a complete implementation, it would provide an iterator over a collection of arguments. -
isSupportedBy
Checks if this argument is supported by another argument in the given theory.This method determines if there exists a support relation in the given
EAFTheorywhere this argument is supported by the specified argument.- Parameters:
theory- the theory in which to check for supportx- the argument that might support this argument- Returns:
trueif this argument is supported by the specified argument in the theory;falseotherwise
-