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()
boolean
equals(java.lang.Object obj)
protected java.lang.String
getName()
int
hashCode()
boolean
isTautology()
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:
arguments
in classAcceptanceCondition
- Returns:
- a stream of all arguments of this acceptance condition and its subconditions.
-
isTautology
public boolean isTautology()
Description copied from class:AcceptanceCondition
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
.This is useful for some syntax level rewriting to avoid instanceof checks and keep the code typesafe.
- Overrides:
isTautology
in 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:
transform
in classAcceptanceCondition
-
getName
protected java.lang.String getName()
- Specified by:
getName
in classAcceptanceCondition
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-