Package org.tweetyproject.arg.adf.syntax
Class Argument
java.lang.Object
org.tweetyproject.arg.dung.syntax.Argument
org.tweetyproject.arg.adf.syntax.Argument
- All Implemented Interfaces:
Comparable<Argument>,AcceptanceCondition,DungEntity,Formula,Node
An immutable representation of an ADF argument
This argument can also be used as an AcceptanceCondition, since it is
its atomic building block.
- Author:
- Mathias Hofer
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.tweetyproject.arg.adf.syntax.acc.AcceptanceCondition
AcceptanceCondition.Builder -
Field Summary
Fields inherited from interface org.tweetyproject.arg.adf.syntax.acc.AcceptanceCondition
CONTRADICTION, TAUTOLOGY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<U,D> U Passes the topDownData to the right visit method and returns the result of the visit method, performs no modifications on them.Recursively computes all the arguments of this acceptance conditionbooleanChecks if the given argument is contained in this acceptance condition.booleanReturns the children of this acceptance conditionMethods inherited from class org.tweetyproject.arg.dung.syntax.Argument
compareTo, getLdoArgument, getLdoFormula, getName, getSignature, hashCode, setName, toString
-
Constructor Details
-
Argument
public Argument()Creates an unnamed ADF argument. -
Argument
Creates an ADF argument with the given name.- Parameters:
name- the name of the argument
-
-
Method Details
-
arguments
Description copied from interface:AcceptanceConditionRecursively computes all the arguments of this acceptance condition- Specified by:
argumentsin interfaceAcceptanceCondition- Returns:
- recursively computes all the arguments of this acceptance condition
-
contains
Description copied from interface:AcceptanceConditionChecks if the given argument is contained in this acceptance condition.Note that this relation is reflexive, hence each argument contains itself.
- Specified by:
containsin interfaceAcceptanceCondition- Parameters:
arg- some argument- Returns:
- true if the argument is contained
-
getChildren
Description copied from interface:AcceptanceConditionReturns the children of this acceptance condition- Specified by:
getChildrenin interfaceAcceptanceCondition- Returns:
- an unmodifiable set of children
-
accept
Description copied from interface:AcceptanceConditionPasses the topDownData to the right visit method and returns the result of the visit method, performs no modifications on them.This allows for type-safe traversal through the acceptance condition structure.
- Specified by:
acceptin interfaceAcceptanceCondition- Type Parameters:
U- the bottom-up dataD- the top-down data- Parameters:
visitor- the visitortopDownData- the data which is passed from the root of the acceptance condition to the leaf- Returns:
- the result of the visit method
-
equals
-