Class ShortSegment

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

public class ShortSegment extends AbstractPayloadSegment<Short> implements Segment
The ShortSegment is an implementation of a Segment carrying in short value as payload.
See Also:
  • Field Details

  • Constructor Details

    • ShortSegment

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

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

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

      public ShortSegment(String aAlias, Short 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.
    • ShortSegment

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

      public ShortSegment(org.refcodes.numerical.Endianess aEndianess)
      Constructs an empty ShortSegment with the given Endianess endian representation of the ShortSegment's value.
      Parameters:
      aEndianess - The Endianess to be used for the payload values.
    • ShortSegment

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

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

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

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

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

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