Package net.sf.tweety.arg.adf.syntax
Class TautologyAcceptanceCondition
- java.lang.Object
-
- net.sf.tweety.arg.adf.syntax.AcceptanceCondition
-
- net.sf.tweety.arg.adf.syntax.TautologyAcceptanceCondition
-
public final class TautologyAcceptanceCondition extends AcceptanceCondition
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.sf.tweety.arg.adf.syntax.AcceptanceCondition
AcceptanceCondition.Builder
-
-
Constructor Summary
Constructors Constructor Description TautologyAcceptanceCondition()
-
Method Summary
Modifier and Type Method Description java.util.stream.Stream<Argument>arguments()booleanequals(java.lang.Object obj)protected java.lang.StringgetName()inthashCode()booleanisTautology()Note that this method does not perform any computations to determine if this acceptance condition is a tautology, it only checks if this is of typeTautologyAcceptanceCondition.protected <C,R>
Rtransform(Transform<C,R> transform, java.util.function.Consumer<C> consumer, int polarity)-
Methods inherited from class net.sf.tweety.arg.adf.syntax.AcceptanceCondition
builder, builder, collect, collect, isContradiction, toString, transform
-
-
-
-
Method Detail
-
arguments
public java.util.stream.Stream<Argument> arguments()
- Specified by:
argumentsin classAcceptanceCondition- Returns:
- a stream of all arguments of this acceptance condition and its subconditions.
-
isTautology
public boolean isTautology()
Description copied from class:AcceptanceConditionNote that this method does not perform any computations to determine if this acceptance condition is a tautology, it only checks if this is of typeTautologyAcceptanceCondition.This is useful for some syntax level rewriting to avoid instanceof checks and keep the code typesafe.
- Overrides:
isTautologyin classAcceptanceCondition- Returns:
- true iff this acceptance condition represents the tautology constant
-
transform
protected <C,R> R transform(Transform<C,R> transform, java.util.function.Consumer<C> consumer, int polarity)
- Specified by:
transformin classAcceptanceCondition
-
getName
protected java.lang.String getName()
- Specified by:
getNamein classAcceptanceCondition
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-