Class IntSegment

All Implemented Interfaces:
Serializable, org.refcodes.mixin.AliasAccessor, org.refcodes.mixin.LengthAccessor, org.refcodes.mixin.PayloadAccessor<Integer>, org.refcodes.mixin.PayloadAccessor.PayloadBuilder<Integer,PayloadTransmission<Integer>>, org.refcodes.mixin.PayloadAccessor.PayloadMutator<Integer>, org.refcodes.mixin.PayloadAccessor.PayloadProperty<Integer>, org.refcodes.mixin.Schemable<SerialSchema>, PayloadSegment<Integer>, PayloadTransmission<Integer>, Segment, Segment.SegmentMixin, Transmission, Transmission.TransmissionMixin

public class IntSegment extends AbstractPayloadSegment<Integer> implements Segment
The IntSegment is an implementation of a Segment carrying an integer value as payload.
See Also:
  • Field Details

  • Constructor Details

    • IntSegment

      public IntSegment(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.
    • IntSegment

      public IntSegment(Integer aValue, 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:
      aValue - The payload to be contained by the DoubleArraySection.
      aTransmissionMetrics - The TransmissionMetrics to be used for configuring this instance.
    • IntSegment

      public IntSegment(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.
    • IntSegment

      public IntSegment(String aAlias, Integer aValue, 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.
      aValue - The payload to be contained by the DoubleArraySection.
      aTransmissionMetrics - The TransmissionMetrics to be used for configuring this instance.
    • IntSegment

      public IntSegment()
      Constructs an empty IntSegment with a TransmissionMetrics.DEFAULT_ENDIANESS endian representation of the IntSegment's value.
    • IntSegment

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

      public IntSegment(Integer aValue)
      Constructs a IntSegment with the given integer value (payload) and a TransmissionMetrics.DEFAULT_ENDIANESS endian representation of the IntSegment's value.
      Parameters:
      aValue - The value (payload) to be contained by the IntSegment.
    • IntSegment

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

      public IntSegment(String aAlias)
      Constructs an empty IntSegment with a TransmissionMetrics.DEFAULT_ENDIANESS endian representation of the IntSegment's value.
      Parameters:
      aAlias - The alias which identifies the content of this segment.
    • IntSegment

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

      public IntSegment(String aAlias, Integer aValue)
      Constructs a IntSegment with the given integer value (payload) and a TransmissionMetrics.DEFAULT_ENDIANESS endian representation of the IntSegment's value.
      Parameters:
      aAlias - The alias which identifies the content of this segment.
      aValue - The value (payload) to be contained by the IntSegment.
    • IntSegment

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