Class AbstractErrorCorrectionTransmissionDecorator<DECORATEE extends Transmission>

    • Constructor Detail

      • AbstractErrorCorrectionTransmissionDecorator

        public AbstractErrorCorrectionTransmissionDecorator​(DECORATEE aSegment,
                                                            TransmissionMetrics aTransmissionMetrics)
        Constructs a AbstractErrorCorrectionTransmissionDecorator instance with 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:
        aSegment - The decoratee or referencee to be contained by this facade.
        aTransmissionMetrics - The TransmissionMetrics to be used for configuring this instance.
      • AbstractErrorCorrectionTransmissionDecorator

        protected AbstractErrorCorrectionTransmissionDecorator()
        Hook constructor to be used by sub-classes.
      • AbstractErrorCorrectionTransmissionDecorator

        public AbstractErrorCorrectionTransmissionDecorator​(DECORATEE aDecoratee)
        Constructs a AbstractErrorCorrectionTransmissionDecorator instance with the given decoratee. Takes a retry count of Object.notify() by default and a timeout detecting a retry situation of IoTimeout.MIN.
        Parameters:
        aDecoratee - The decoratee to be contained by this facade.
      • AbstractErrorCorrectionTransmissionDecorator

        public AbstractErrorCorrectionTransmissionDecorator​(DECORATEE aSegment,
                                                            int aAckRetryNumber,
                                                            long aAckTimeoutInMs)
        Constructs a AbstractErrorCorrectionTransmissionDecorator instance with the given decoratee.
        Parameters:
        aSegment - The decoratee or referencee to be contained by this facade.
        aAckRetryNumber - The number of retries waiting for an ACK from the return channel.
        aAckTimeoutInMs - The timeout in milliseconds to pend till the next retry.
    • Method Detail

      • getAcknowledgeRetryNumber

        public int getAcknowledgeRetryNumber()
        Retrieves the number of retries from the acknowledge retry number. A acknowledge retry number is the overall number of retries to use when counting retries.
        Specified by:
        getAcknowledgeRetryNumber in interface AcknowledgeRetryNumberAccessor
        Returns:
        The number of retries stored by the acknowledge retry number.
      • getLength

        public int getLength()
        Determines the overall length of this Transmission. In case of nested Transmission instances, all length values from all sub-segments are accumulated to the result as well.
        Specified by:
        getLength in interface org.refcodes.mixin.LengthAccessor
        Specified by:
        getLength in interface Transmission
        Returns:
        The (overall) length of the Transmission (including any sub-segments).
      • getDecoratee

        public DECORATEE getDecoratee()
        Specified by:
        getDecoratee in interface org.refcodes.mixin.DecorateeAccessor<DECORATEE extends Transmission>
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • toSimpleTypeMap

        public org.refcodes.struct.SimpleTypeMap toSimpleTypeMap()
        Returns the SimpleTypeMap representation of this Transmission. In case this Transmission has Transmission children, then the children are queried as well and contained in the resulting SimpleTypeMap. The aliases of the according Transmission instances represent the resulting path to a Transmission's final simple type.
        Specified by:
        toSimpleTypeMap in interface Transmission
        Returns:
        The SimpleTypeMap representing this Transmission and (if any) its children, with the according aliases forming the paths to the Transmission's values.