Class TseitinTransformer
java.lang.Object
org.tweetyproject.arg.adf.transform.TseitinTransformer
- All Implemented Interfaces:
Collector<Literal,Clause>
,Transformer<Pair<Literal,Collection<Clause>>>
public final class TseitinTransformer
extends Object
implements Collector<Literal,Clause>, Transformer<Pair<Literal,Collection<Clause>>>
-
Method Summary
Modifier and TypeMethodDescriptioncollect(AcceptanceCondition acc, Consumer<Clause> clauses)
Traverses through the givenAcceptanceCondition
and calls the provided consumer on all the collected data.static TseitinTransformer
ofNegativePolarity(boolean optimize)
static TseitinTransformer
ofNegativePolarity(Function<Argument,Literal> mapping, boolean optimize)
static TseitinTransformer
ofPositivePolarity(boolean optimize)
static TseitinTransformer
ofPositivePolarity(Function<Argument,Literal> mapping, boolean optimize)
transform(AcceptanceCondition acc)
Transforms the given acceptance condition into another structure.
-
Method Details
-
ofPositivePolarity
-
ofNegativePolarity
-
ofPositivePolarity
public static TseitinTransformer ofPositivePolarity(Function<Argument,Literal> mapping, boolean optimize) -
ofNegativePolarity
public static TseitinTransformer ofNegativePolarity(Function<Argument,Literal> mapping, boolean optimize) -
collect
Description copied from interface:Collector
Traverses through the givenAcceptanceCondition
and calls the provided consumer on all the collected data. -
transform
Description copied from interface:Transformer
Transforms the given acceptance condition into another structure.- Specified by:
transform
in interfaceTransformer<Pair<Literal,Collection<Clause>>>
- Parameters:
acc
- the acceptance condition- Returns:
- the transformed result
-