Class DoubleArraySection

    • Constructor Detail

      • DoubleArraySection

        public DoubleArraySection​(TransmissionMetrics aTransmissionMetrics)
        Constructs an according instance from the given configuration. 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:
        aTransmissionMetrics - The TransmissionMetrics to be used for configuring this instance.
      • DoubleArraySection

        public DoubleArraySection​(TransmissionMetrics aTransmissionMetrics,
                                  double... aValue)
        Constructs an according instance from the given configuration. 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:
        aTransmissionMetrics - The TransmissionMetrics to be used for configuring this instance.
        aValue - The payload to be contained by the DoubleArraySection.
      • DoubleArraySection

        public DoubleArraySection​(TransmissionMetrics aTransmissionMetrics,
                                  Double... aValue)
        Constructs an according instance from the given configuration. 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:
        aTransmissionMetrics - The TransmissionMetrics to be used for configuring this instance.
        aValue - The payload to be contained by the DoubleArraySection.
      • DoubleArraySection

        public DoubleArraySection​(String aAlias,
                                  TransmissionMetrics aTransmissionMetrics)
        Constructs an according instance from the given configuration. 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:
        aAlias - The alias which identifies the content of this instance.
        aTransmissionMetrics - The TransmissionMetrics to be used for configuring this instance.
      • DoubleArraySection

        public DoubleArraySection​(String aAlias,
                                  TransmissionMetrics aTransmissionMetrics,
                                  double... aValue)
        Constructs an according instance from the given configuration. 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:
        aAlias - The alias which identifies the content of this instance.
        aTransmissionMetrics - The TransmissionMetrics to be used for configuring this instance.
        aValue - The payload to be contained by the DoubleArraySection.
      • DoubleArraySection

        public DoubleArraySection​(String aAlias,
                                  TransmissionMetrics aTransmissionMetrics,
                                  Double... aValue)
        Constructs an according instance from the given configuration. 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:
        aAlias - The alias which identifies the content of this instance.
        aTransmissionMetrics - The TransmissionMetrics to be used for configuring this instance.
        aValue - The payload to be contained by the DoubleArraySection.
      • DoubleArraySection

        public DoubleArraySection​(org.refcodes.numerical.Endianess aEndianess)
        Constructs an empty DoubleArraySection with the given Endianess.
        Parameters:
        aEndianess - The Endianess to be used for payload values.
      • DoubleArraySection

        public DoubleArraySection​(org.refcodes.numerical.Endianess aEndianess,
                                  double... aValue)
        Constructs a DoubleArraySection with the given double array payload and the given Endianess for the representation of the DoubleArraySection's value.
        Parameters:
        aEndianess - The Endianess to be used for payload values.
        aValue - The payload to be contained by the DoubleArraySection.
      • DoubleArraySection

        public DoubleArraySection​(org.refcodes.numerical.Endianess aEndianess,
                                  Double... aValue)
        Constructs a DoubleArraySection with the given double array payload and the given Endianess for the representation of the DoubleArraySection's value.
        Parameters:
        aEndianess - The Endianess to be used for payload values.
        aValue - The payload to be contained by the DoubleArraySection.
      • DoubleArraySection

        public DoubleArraySection​(String aAlias,
                                  org.refcodes.numerical.Endianess aEndianess)
        Constructs an empty DoubleArraySection with the given Endianess.
        Parameters:
        aAlias - The alias which identifies the content of this segment.
        aEndianess - The Endianess to be used for payload values.
      • DoubleArraySection

        public DoubleArraySection​(String aAlias,
                                  org.refcodes.numerical.Endianess aEndianess,
                                  double... aValue)
        Constructs a DoubleArraySection with the given double array payload and the given Endianess for the representation of the DoubleArraySection's value.
        Parameters:
        aAlias - The alias which identifies the content of this segment.
        aEndianess - The Endianess to be used for payload values.
        aValue - The payload to be contained by the DoubleArraySection.
      • DoubleArraySection

        public DoubleArraySection​(String aAlias,
                                  org.refcodes.numerical.Endianess aEndianess,
                                  Double... aValue)
        Constructs a DoubleArraySection with the given double array payload and the given Endianess for the representation of the DoubleArraySection's value.
        Parameters:
        aAlias - The alias which identifies the content of this segment.
        aEndianess - The Endianess to be used for payload values.
        aValue - The payload to be contained by the DoubleArraySection.
    • Method Detail

      • 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).
      • withPayload

        public DoubleArraySection withPayload​(double[] aValue)
        Specified by:
        withPayload in interface org.refcodes.mixin.PayloadAccessor.PayloadBuilder<double[],​PayloadTransmission<double[]>>
      • setPayload

        public void setPayload​(Double[] aPayload)
        Convenience method to convert the array of wrapper types into its counterpart with primitive types before invoking AbstractPayloadSection.setPayload(Object).
        Parameters:
        aPayload - The payload with the wrapper types.
      • withPayload

        public DoubleArraySection withPayload​(Double[] aPayload)
        Convenience method to convert the array of wrapper types into its counterpart with primitive types before invoking withPayload(double[]).
        Parameters:
        aPayload - The payload with the wrapper types.
        Returns:
        This instance as of the builder pattern.