Package net.sf.tweety.arg.adf.transform
Class AbstractTransformer<U,D,R>
- java.lang.Object
-
- net.sf.tweety.arg.adf.transform.AbstractTransformer<U,D,R>
-
- Type Parameters:
U- the information that is passed bottom-up during the transformationD- the information that is passed top-down during the transformationR- the result of the transformation
- All Implemented Interfaces:
Transformer<R>
- Direct Known Subclasses:
FixPartialTransformer,OmegaReductTransformer,PropositionalTransformer
public abstract class AbstractTransformer<U,D,R> extends Object implements Transformer<R>
- Author:
- Mathias Hofer
-
-
Constructor Summary
Constructors Constructor Description AbstractTransformer()
-
Method Summary
Modifier and Type Method Description protected abstract Rfinish(U bottomUpData, D topDownData)protected abstract Dinitialize()Provides the initial top-down data.protected inttopLevelPolarity()Rtransform(AcceptanceCondition acc)Transforms the given acceptance condition into another structure.protected Utransform(AcceptanceCondition acc, D userObject)protected abstract UtransformArgument(Argument argument, D topDownData, int polarity)protected abstract UtransformConjunction(Collection<U> children, D topDownData, int polarity)protected abstract UtransformContradiction(D topDownData, int polarity)protected abstract UtransformDisjunction(Collection<U> children, D topDownData, int polarity)protected abstract UtransformEquivalence(Collection<U> children, D topDownData, int polarity)protected abstract UtransformExclusiveDisjunction(U left, U right, D topDownData, int polarity)protected abstract UtransformImplication(U left, U right, D topDownData, int polarity)protected abstract UtransformNegation(U child, D topDownData, int polarity)protected abstract UtransformTautology(D topDownData, int polarity)
-
-
-
Method Detail
-
transform
public R transform(AcceptanceCondition acc)
Description copied from interface:TransformerTransforms the given acceptance condition into another structure.- Specified by:
transformin interfaceTransformer<U>- Parameters:
acc- the acceptance condition- Returns:
- the transformed result
-
transform
protected U transform(AcceptanceCondition acc, D userObject)
-
topLevelPolarity
protected int topLevelPolarity()
-
initialize
protected abstract D initialize()
Provides the initial top-down data.- Returns:
- the initial top-down data
-
transformDisjunction
protected abstract U transformDisjunction(Collection<U> children, D topDownData, int polarity)
-
transformConjunction
protected abstract U transformConjunction(Collection<U> children, D topDownData, int polarity)
-
transformImplication
protected abstract U transformImplication(U left, U right, D topDownData, int polarity)
-
transformEquivalence
protected abstract U transformEquivalence(Collection<U> children, D topDownData, int polarity)
-
transformExclusiveDisjunction
protected abstract U transformExclusiveDisjunction(U left, U right, D topDownData, int polarity)
-
transformArgument
protected abstract U transformArgument(Argument argument, D topDownData, int polarity)
-
-