Class AbstractTransformer<U,​D,​R>

    • Constructor Detail

      • AbstractTransformer

        public AbstractTransformer()
    • Method Detail

      • transform

        public R transform​(AcceptanceCondition acc)
        Description copied from interface: Transformer
        Transforms the given acceptance condition into another structure.
        Specified by:
        transform in interface Transformer<U>
        Parameters:
        acc - the acceptance condition
        Returns:
        the transformed result
      • topLevelPolarity

        protected int topLevelPolarity()
      • initialize

        protected abstract D initialize()
        Provides the initial top-down data.
        Returns:
        the initial top-down data
      • finish

        protected abstract R finish​(U bottomUpData,
                                    D topDownData)
      • 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)
      • transformNegation

        protected abstract U transformNegation​(U child,
                                               D topDownData,
                                               int polarity)
      • transformArgument

        protected abstract U transformArgument​(Argument argument,
                                               D topDownData,
                                               int polarity)
      • transformContradiction

        protected abstract U transformContradiction​(D topDownData,
                                                    int polarity)
      • transformTautology

        protected abstract U transformTautology​(D topDownData,
                                                int polarity)