Class AbstractInvertibleTransmissionDecorator<DECORATEE extends Transmission>

java.lang.Object
org.refcodes.serial.AbstractTransmissionDecorator<DECORATEE>
org.refcodes.serial.AbstractInvertibleTransmissionDecorator<DECORATEE>
Type Parameters:
DECORATEE - The Transmission type describing the Transmission subclass to be enriched.s
All Implemented Interfaces:
Serializable, org.refcodes.mixin.DecorateeAccessor<DECORATEE>, org.refcodes.mixin.LengthAccessor, org.refcodes.mixin.Schemable<SerialSchema>, Transmission, Transmission.TransmissionMixin
Direct Known Subclasses:
InvertibleSectionDecorator, InvertibleSegmentDecorator

public abstract class AbstractInvertibleTransmissionDecorator<DECORATEE extends Transmission> extends AbstractTransmissionDecorator<DECORATEE>
An abstract implementation of bijective and inverse functions applied to the decoratee's transmitting and receiving methods.
See Also:
  • Field Details

    • _bijectiveFunction

      protected org.refcodes.numerical.BijectiveFunction<Byte,Byte> _bijectiveFunction
    • _inverseFunction

      protected org.refcodes.numerical.InverseFunction<Byte,Byte> _inverseFunction
  • Constructor Details

    • AbstractInvertibleTransmissionDecorator

      public AbstractInvertibleTransmissionDecorator(DECORATEE aDecoratee, org.refcodes.numerical.Invertible<Byte,Byte> aInvertible)
      Constructs an invertible transmission decorator applying bijective and inverse functions upon the delegated methods.
      Parameters:
      aDecoratee - The decorator having applied the Invertible's BijectiveFunction to encode and the Invertible's InverseFunction to decode any data being delegated.
      aInvertible - The Invertible providing the BijectiveFunction to encode and the Invertible's InverseFunction to decode any data being delegated.
    • AbstractInvertibleTransmissionDecorator

      public AbstractInvertibleTransmissionDecorator(DECORATEE aDecoratee, org.refcodes.numerical.BijectiveFunction<Byte,Byte> aBijectiveFunction, org.refcodes.numerical.InverseFunction<Byte,Byte> aInverseFunction)
      Constructs an invertible transmission decorator applying bijective and inverse functions upon the delegated methods.
      Parameters:
      aDecoratee - The decorator having applied the BijectiveFunction to encode and the InverseFunction to decode any data being delegated.
      aBijectiveFunction - The BijectiveFunction to encode any data being delegated.
      aInverseFunction - The InverseFunction to decode any data being delegated.
  • Method Details