Class AbstractReadyToReceiveTransmissionDecorator<DECORATEE extends Transmission>

java.lang.Object
org.refcodes.serial.AbstractReadyToReceiveTransmissionDecorator<DECORATEE>
Type Parameters:
DECORATEE - The decoratee type describing the according subclass to be enriched.
All Implemented Interfaces:
Serializable, org.refcodes.mixin.DecorateeAccessor<DECORATEE>, org.refcodes.mixin.LengthAccessor, org.refcodes.mixin.Schemable, EnquiryStandbyTimeMillisAccessor, ReadyToReceiveMagicBytesAccessor, ReadyToReceiveRetryNumberAccessor, ReadyToReceiveSegmentPackagerAccessor, ReadyToReceiveTimeoutMillisAccessor, ReadyToReceiveTransmission, Transmission, Transmission.TransmissionMixin
Direct Known Subclasses:
ReadyToReceiveSectionDecorator, ReadyToReceiveSegmentDecorator

public abstract class AbstractReadyToReceiveTransmissionDecorator<DECORATEE extends Transmission> extends Object implements ReadyToReceiveTransmission, Transmission.TransmissionMixin, org.refcodes.mixin.DecorateeAccessor<DECORATEE>
The AbstractReadyToReceiveTransmissionDecorator class implements a decorator providing ReadyToReceiveTransmission functionality for a Transmission.
See Also:
  • Field Details

    • RTR_MAGIC_BYTES

      public static final String RTR_MAGIC_BYTES
      See Also:
    • RTR_TIMEOUT_IN_MS

      public static final String RTR_TIMEOUT_IN_MS
      See Also:
    • RTR_RETRY_NUMBER

      public static final String RTR_RETRY_NUMBER
      See Also:
    • _decoratee

      protected DECORATEE extends Transmission _decoratee
    • _enquiryStandbyTimeInMs

      protected long _enquiryStandbyTimeInMs
    • _readyToReceiveTimeoutInMs

      protected long _readyToReceiveTimeoutInMs
    • _readyToReceiveMagicBytes

      protected byte[] _readyToReceiveMagicBytes
    • _readyToReceiveSegmentPackager

      protected SegmentPackager _readyToReceiveSegmentPackager
    • _readyToReceiveRetryNumber

      protected int _readyToReceiveRetryNumber
    • _readyToReceiveMagicByteSegment

      protected MagicBytesSegment _readyToReceiveMagicByteSegment
    • _readyToReceiveSegment

      protected Segment _readyToReceiveSegment
  • Constructor Details

    • AbstractReadyToReceiveTransmissionDecorator

      protected AbstractReadyToReceiveTransmissionDecorator()
      Instantiates a new abstract ready to receive transmission decorator.
    • AbstractReadyToReceiveTransmissionDecorator

      public AbstractReadyToReceiveTransmissionDecorator(DECORATEE aDecoratee, TransmissionMetrics aTransmissionMetrics)
      Constructs an according control-flow decorator instance wrapping the given decoratee. The configuration attributes are taken from the TransmissionMetrics configuration object, though only those attributes are supported which are also supported by the other constructors!
      Parameters:
      aDecoratee - The decoratee to be wrapped by the control-flow decorator.
      aTransmissionMetrics - The TransmissionMetrics to be used for configuring this instance.
    • AbstractReadyToReceiveTransmissionDecorator

      public AbstractReadyToReceiveTransmissionDecorator(DECORATEE aDecoratee)
      Constructs an according flow-control decorator instance wrapping the given decoratee.
      Parameters:
      aDecoratee - The decoratee to be wrapped by the flow-control decorator.
    • AbstractReadyToReceiveTransmissionDecorator

      public AbstractReadyToReceiveTransmissionDecorator(DECORATEE aDecoratee, byte[] aReadyToReceiveMagicBytes)
      Constructs an according flow-control decorator instance wrapping the given decoratee.
      Parameters:
      aDecoratee - The decoratee to be wrapped by the flow-control decorator.
      aReadyToReceiveMagicBytes - The RTR character to be used to signal a RTR.
    • AbstractReadyToReceiveTransmissionDecorator

      public AbstractReadyToReceiveTransmissionDecorator(DECORATEE aDecoratee, long aEnquiryStandbyTimeInMs)
      Constructs an according flow-control decorator instance wrapping the given decoratee.
      Parameters:
      aDecoratee - The decoratee to be wrapped by the flow-control decorator.
      aEnquiryStandbyTimeInMs - The timeout in milliseconds to wait for an RTR request (transmitter) from the receiver.
    • AbstractReadyToReceiveTransmissionDecorator

      public AbstractReadyToReceiveTransmissionDecorator(DECORATEE aDecoratee, byte[] aReadyToReceiveMagicBytes, SegmentPackager aReadyToReceiveSegmentPackager)
      Constructs an according flow-control decorator instance wrapping the given decoratee.
      Parameters:
      aDecoratee - The decoratee to be wrapped by the flow-control decorator.
      aReadyToReceiveMagicBytes - The RTR character to be used to signal a RTR.
      aReadyToReceiveSegmentPackager - The RTR SegmentPackager for packaging RTR responses.
    • AbstractReadyToReceiveTransmissionDecorator

      public AbstractReadyToReceiveTransmissionDecorator(DECORATEE aDecoratee, long aReadyToReceiveTimeoutInMs, SegmentPackager aReadyToReceiveSegmentPackager)
      Constructs an according flow-control decorator instance wrapping the given decoratee.
      Parameters:
      aDecoratee - The decoratee to be wrapped by the flow-control decorator.
      aReadyToReceiveTimeoutInMs - The timeout in milliseconds to wait for a payload response (receiver) from the transmitter after signaling a RTR ("ready-to-receive") to the transmitter.
      aReadyToReceiveSegmentPackager - The RTR SegmentPackager for packaging RTR responses.
    • AbstractReadyToReceiveTransmissionDecorator

      public AbstractReadyToReceiveTransmissionDecorator(DECORATEE aDecoratee, byte[] aReadyToReceiveMagicBytes, int aReadyToReceiveRetryNumber)
      Constructs an according flow-control decorator instance wrapping the given decoratee.
      Parameters:
      aDecoratee - The decoratee to be wrapped by the flow-control decorator.
      aReadyToReceiveMagicBytes - The RTR character to be used to signal a RTR.
      aReadyToReceiveRetryNumber - The number of retries sending an RTR over the return channel.
    • AbstractReadyToReceiveTransmissionDecorator

      public AbstractReadyToReceiveTransmissionDecorator(DECORATEE aDecoratee, int aReadyToReceiveRetryNumber, long aReadyToReceiveTimeoutInMs)
      Constructs an according flow-control decorator instance wrapping the given decoratee.
      Parameters:
      aDecoratee - The decoratee to be wrapped by the flow-control decorator.
      aReadyToReceiveRetryNumber - The number of retries sending an RTR over the return channel.
      aReadyToReceiveTimeoutInMs - The timeout in milliseconds to wait for a payload response (receiver) from the transmitter after signaling a RTR ("ready-to-receive") to the transmitter.
    • AbstractReadyToReceiveTransmissionDecorator

      public AbstractReadyToReceiveTransmissionDecorator(DECORATEE aDecoratee, byte[] aReadyToReceiveMagicBytes, int aReadyToReceiveRetryNumber, SegmentPackager aReadyToReceiveSegmentPackager)
      Constructs an according flow-control decorator instance wrapping the given decoratee.
      Parameters:
      aDecoratee - The decoratee to be wrapped by the flow-control decorator.
      aReadyToReceiveMagicBytes - The RTR character to be used to signal a RTR.
      aReadyToReceiveRetryNumber - The number of retries sending an RTR over the return channel.
      aReadyToReceiveSegmentPackager - The RTR SegmentPackager for packaging RTR responses.
    • AbstractReadyToReceiveTransmissionDecorator

      public AbstractReadyToReceiveTransmissionDecorator(DECORATEE aDecoratee, int aReadyToReceiveRetryNumber, long aReadyToReceiveTimeoutInMs, SegmentPackager aReadyToReceiveSegmentPackager)
      Constructs an according flow-control decorator instance wrapping the given decoratee.
      Parameters:
      aDecoratee - The decoratee to be wrapped by the flow-control decorator.
      aReadyToReceiveRetryNumber - The number of retries sending an RTR over the return channel.
      aReadyToReceiveTimeoutInMs - The timeout in milliseconds to wait for a payload response (receiver) from the transmitter after signaling a RTR ("ready-to-receive") to the transmitter.
      aReadyToReceiveSegmentPackager - The RTR SegmentPackager for packaging RTR responses.
    • AbstractReadyToReceiveTransmissionDecorator

      public AbstractReadyToReceiveTransmissionDecorator(DECORATEE aDecoratee, byte[] aReadyToReceiveMagicBytes, long aReadyToReceiveTimeoutInMs)
      Constructs an according flow-control decorator instance wrapping the given decoratee.
      Parameters:
      aDecoratee - The decoratee to be wrapped by the flow-control decorator.
      aReadyToReceiveMagicBytes - The RTR character to be used to signal a RTR.
      aReadyToReceiveTimeoutInMs - The timeout in milliseconds to wait for a payload response (receiver) from the transmitter after signaling a RTR ("ready-to-receive") to the transmitter.
    • AbstractReadyToReceiveTransmissionDecorator

      public AbstractReadyToReceiveTransmissionDecorator(DECORATEE aDecoratee, byte[] aReadyToReceiveMagicBytes, long aReadyToReceiveTimeoutInMs, SegmentPackager aReadyToReceiveSegmentPackager)
      Constructs an according flow-control decorator instance wrapping the given decoratee.
      Parameters:
      aDecoratee - The decoratee to be wrapped by the flow-control decorator.
      aReadyToReceiveMagicBytes - The RTR character to be used to signal a RTR.
      aReadyToReceiveTimeoutInMs - The timeout in milliseconds to wait for a payload response (receiver) from the transmitter after signaling a RTR ("ready-to-receive") to the transmitter.
      aReadyToReceiveSegmentPackager - The RTR SegmentPackager for packaging RTR responses.
    • AbstractReadyToReceiveTransmissionDecorator

      public AbstractReadyToReceiveTransmissionDecorator(DECORATEE aDecoratee, long aEnquiryStandbyTimeInMs, byte[] aReadyToReceiveMagicBytes)
      Constructs an according flow-control decorator instance wrapping the given decoratee.
      Parameters:
      aDecoratee - The decoratee to be wrapped by the flow-control decorator.
      aEnquiryStandbyTimeInMs - The timeout in milliseconds to wait for an RTR request (transmitter) from the receiver.
      aReadyToReceiveMagicBytes - The RTR character to be used to signal a RTR.
    • AbstractReadyToReceiveTransmissionDecorator

      public AbstractReadyToReceiveTransmissionDecorator(DECORATEE aDecoratee, long aEnquiryStandbyTimeInMs, long aReadyToReceiveTimeoutInMs)
      Constructs an according flow-control decorator instance wrapping the given decoratee.
      Parameters:
      aDecoratee - The decoratee to be wrapped by the flow-control decorator.
      aEnquiryStandbyTimeInMs - The timeout in milliseconds to wait for an RTR request (transmitter) from the receiver.
      aReadyToReceiveTimeoutInMs - The timeout in milliseconds to wait for a payload response (receiver) from the transmitter after signaling a RTR ("ready-to-receive") to the transmitter.
    • AbstractReadyToReceiveTransmissionDecorator

      public AbstractReadyToReceiveTransmissionDecorator(DECORATEE aDecoratee, long aEnquiryStandbyTimeInMs, byte[] aReadyToReceiveMagicBytes, SegmentPackager aReadyToReceiveSegmentPackager)
      Constructs an according flow-control decorator instance wrapping the given decoratee.
      Parameters:
      aDecoratee - The decoratee to be wrapped by the flow-control decorator.
      aEnquiryStandbyTimeInMs - The timeout in milliseconds to wait for an RTR request (transmitter) from the receiver.
      aReadyToReceiveMagicBytes - The RTR character to be used to signal a RTR.
      aReadyToReceiveSegmentPackager - The RTR SegmentPackager for packaging RTR responses.
    • AbstractReadyToReceiveTransmissionDecorator

      public AbstractReadyToReceiveTransmissionDecorator(DECORATEE aDecoratee, long aEnquiryStandbyTimeInMs, long aReadyToReceiveTimeoutInMs, SegmentPackager aReadyToReceiveSegmentPackager)
      Constructs an according flow-control decorator instance wrapping the given decoratee.
      Parameters:
      aDecoratee - The decoratee to be wrapped by the flow-control decorator.
      aEnquiryStandbyTimeInMs - The timeout in milliseconds to wait for an RTR request (transmitter) from the receiver.
      aReadyToReceiveTimeoutInMs - The timeout in milliseconds to wait for a payload response (receiver) from the transmitter after signaling a RTR ("ready-to-receive") to the transmitter.
      aReadyToReceiveSegmentPackager - The RTR SegmentPackager for packaging RTR responses.
    • AbstractReadyToReceiveTransmissionDecorator

      public AbstractReadyToReceiveTransmissionDecorator(DECORATEE aDecoratee, long aEnquiryStandbyTimeInMs, byte[] aReadyToReceiveMagicBytes, int aReadyToReceiveRetryNumber)
      Constructs an according flow-control decorator instance wrapping the given decoratee.
      Parameters:
      aDecoratee - The decoratee to be wrapped by the flow-control decorator.
      aEnquiryStandbyTimeInMs - The timeout in milliseconds to wait for an RTR request (transmitter) from the receiver.
      aReadyToReceiveMagicBytes - The RTR character to be used to signal a RTR.
      aReadyToReceiveRetryNumber - The number of retries sending an RTR over the return channel.
    • AbstractReadyToReceiveTransmissionDecorator

      public AbstractReadyToReceiveTransmissionDecorator(DECORATEE aDecoratee, long aEnquiryStandbyTimeInMs, int aReadyToReceiveRetryNumber, long aReadyToReceiveTimeoutInMs)
      Constructs an according flow-control decorator instance wrapping the given decoratee.
      Parameters:
      aDecoratee - The decoratee to be wrapped by the flow-control decorator.
      aEnquiryStandbyTimeInMs - The timeout in milliseconds to wait for an RTR request (transmitter) from the receiver.
      aReadyToReceiveRetryNumber - The number of retries sending an RTR over the return channel.
      aReadyToReceiveTimeoutInMs - The timeout in milliseconds to wait for a payload response (receiver) from the transmitter after signaling a RTR ("ready-to-receive") to the transmitter.
    • AbstractReadyToReceiveTransmissionDecorator

      public AbstractReadyToReceiveTransmissionDecorator(DECORATEE aDecoratee, long aEnquiryStandbyTimeInMs, byte[] aReadyToReceiveMagicBytes, int aReadyToReceiveRetryNumber, SegmentPackager aReadyToReceiveSegmentPackager)
      Constructs an according flow-control decorator instance wrapping the given decoratee.
      Parameters:
      aDecoratee - The decoratee to be wrapped by the flow-control decorator.
      aEnquiryStandbyTimeInMs - The timeout in milliseconds to wait for an RTR request (transmitter) from the receiver.
      aReadyToReceiveMagicBytes - The RTR character to be used to signal a RTR.
      aReadyToReceiveRetryNumber - The number of retries sending an RTR over the return channel.
      aReadyToReceiveSegmentPackager - The RTR SegmentPackager for packaging RTR responses.
    • AbstractReadyToReceiveTransmissionDecorator

      public AbstractReadyToReceiveTransmissionDecorator(DECORATEE aDecoratee, long aEnquiryStandbyTimeInMs, int aReadyToReceiveRetryNumber, long aReadyToReceiveTimeoutInMs, SegmentPackager aReadyToReceiveSegmentPackager)
      Constructs an according flow-control decorator instance wrapping the given decoratee.
      Parameters:
      aDecoratee - The decoratee to be wrapped by the flow-control decorator.
      aEnquiryStandbyTimeInMs - The timeout in milliseconds to wait for an RTR request (transmitter) from the receiver.
      aReadyToReceiveRetryNumber - The number of retries sending an RTR over the return channel.
      aReadyToReceiveTimeoutInMs - The timeout in milliseconds to wait for a payload response (receiver) from the transmitter after signaling a RTR ("ready-to-receive") to the transmitter.
      aReadyToReceiveSegmentPackager - The RTR SegmentPackager for packaging RTR responses.
    • AbstractReadyToReceiveTransmissionDecorator

      public AbstractReadyToReceiveTransmissionDecorator(DECORATEE aDecoratee, long aEnquiryStandbyTimeInMs, byte[] aReadyToReceiveMagicBytes, long aReadyToReceiveTimeoutInMs)
      Constructs an according flow-control decorator instance wrapping the given decoratee.
      Parameters:
      aDecoratee - The decoratee to be wrapped by the flow-control decorator.
      aEnquiryStandbyTimeInMs - The timeout in milliseconds to wait for an RTR request (transmitter) from the receiver.
      aReadyToReceiveMagicBytes - The RTR character to be used to signal a RTR.
      aReadyToReceiveTimeoutInMs - The timeout in milliseconds to wait for a payload response (receiver) from the transmitter after signaling a RTR ("ready-to-receive") to the transmitter.
    • AbstractReadyToReceiveTransmissionDecorator

      public AbstractReadyToReceiveTransmissionDecorator(DECORATEE aDecoratee, long aEnquiryStandbyTimeInMs, byte[] aReadyToReceiveMagicBytes, long aReadyToReceiveTimeoutInMs, SegmentPackager aReadyToReceiveSegmentPackager)
      Constructs an according flow-control decorator instance wrapping the given decoratee.
      Parameters:
      aDecoratee - The decoratee to be wrapped by the flow-control decorator.
      aEnquiryStandbyTimeInMs - The timeout in milliseconds to wait for an RTR request (transmitter) from the receiver.
      aReadyToReceiveMagicBytes - The RTR character to be used to signal a RTR.
      aReadyToReceiveTimeoutInMs - The timeout in milliseconds to wait for a payload response (receiver) from the transmitter after signaling a RTR ("ready-to-receive") to the transmitter.
      aReadyToReceiveSegmentPackager - The RTR SegmentPackager for packaging RTR responses.
    • AbstractReadyToReceiveTransmissionDecorator

      public AbstractReadyToReceiveTransmissionDecorator(DECORATEE aDecoratee, byte[] aReadyToReceiveMagicBytes, int aReadyToReceiveRetryNumber, long aReadyToReceiveTimeoutInMs, SegmentPackager aReadyToReceiveSegmentPackager)
      Constructs an according flow-control decorator instance wrapping the given decoratee.
      Parameters:
      aDecoratee - The decoratee to be wrapped by the flow-control decorator.
      aReadyToReceiveMagicBytes - The RTR character to be used to signal a RTR.
      aReadyToReceiveRetryNumber - The number of retries sending an RTR over the return channel.
      aReadyToReceiveTimeoutInMs - The timeout in milliseconds to wait for a payload response (receiver) from the transmitter after signaling a RTR ("ready-to-receive") to the transmitter.
      aReadyToReceiveSegmentPackager - The RTR SegmentPackager for packaging RTR responses.
    • AbstractReadyToReceiveTransmissionDecorator

      public AbstractReadyToReceiveTransmissionDecorator(DECORATEE aDecoratee, long aEnquiryStandbyTimeInMs, byte[] aReadyToReceiveMagicBytes, int aReadyToReceiveRetryNumber, long aReadyToReceiveTimeoutInMs, SegmentPackager aReadyToReceiveSegmentPackager)
      Constructs an according flow-control decorator instance wrapping the given decoratee.
      Parameters:
      aDecoratee - The decoratee to be wrapped by the flow-control decorator.
      aEnquiryStandbyTimeInMs - The timeout in milliseconds to wait for an RTR request (transmitter) from the receiver.
      aReadyToReceiveMagicBytes - The RTR character to be used to signal a RTR.
      aReadyToReceiveRetryNumber - The number of retries sending an RTR over the return channel.
      aReadyToReceiveTimeoutInMs - The timeout in milliseconds to wait for a payload response (receiver) from the transmitter after signaling a RTR ("ready-to-receive") to the transmitter.
      aReadyToReceiveSegmentPackager - The RTR SegmentPackager for packaging RTR responses.
  • Method Details