Class SequenceNumberSegment

All Implemented Interfaces:
Serializable, org.refcodes.mixin.AliasAccessor, org.refcodes.mixin.LengthAccessor, org.refcodes.mixin.PayloadAccessor<Long>, org.refcodes.mixin.PayloadAccessor.PayloadBuilder<Long,PayloadTransmission<Long>>, org.refcodes.mixin.PayloadAccessor.PayloadMutator<Long>, org.refcodes.mixin.PayloadAccessor.PayloadProperty<Long>, org.refcodes.mixin.Schemable, org.refcodes.mixin.ValueAccessor<Long>, org.refcodes.mixin.ValueAccessor.ValueBuilder<Long,NumberSegment>, org.refcodes.mixin.ValueAccessor.ValueMutator<Long>, org.refcodes.mixin.ValueAccessor.ValueProperty<Long>, PayloadSegment<Long>, PayloadTransmission<Long>, Segment, Segment.SegmentMixin, Transmission, Transmission.TransmissionMixin

public class SequenceNumberSegment extends NumberSegment
Convenience class for the NumberSegment using TransmissionMetrics sequence number related properties to configure the SequenceNumberSegment (being an accordingly configured NumberSegment).
See Also:
  • Constructor Details

    • SequenceNumberSegment

      public SequenceNumberSegment(TransmissionMetrics aTransmissionMetrics)
      Constructs a SequenceNumberSegment with the given TransmissionMetrics. Only those properties of the TransmissionMetrics are considered which are also supported by the other constructors.
      Parameters:
      aTransmissionMetrics - The TransmissionMetrics used to configure the SequenceNumberSegment.
    • SequenceNumberSegment

      public SequenceNumberSegment(Long aSequenceNumberInitValue, TransmissionMetrics aTransmissionMetrics)
      Constructs a SequenceNumberSegment with the given TransmissionMetrics. Only those properties of the TransmissionMetrics are considered which are also supported by the other constructors.
      Parameters:
      aSequenceNumberInitValue - The value (payload) to be contained by the SequenceNumberSegment.
      aTransmissionMetrics - The TransmissionMetrics used to configure the SequenceNumberSegment.
    • SequenceNumberSegment

      public SequenceNumberSegment(String aAlias, TransmissionMetrics aTransmissionMetrics)
      Constructs a SequenceNumberSegment with the given TransmissionMetrics. Only those properties of the TransmissionMetrics are considered which are also supported by the other constructors.
      Parameters:
      aAlias - The alias which identifies the content of this segment.
      aTransmissionMetrics - The TransmissionMetrics used to configure the SequenceNumberSegment.
    • SequenceNumberSegment

      public SequenceNumberSegment(String aAlias, Long aSequenceNumberInitValue, TransmissionMetrics aTransmissionMetrics)
      Constructs a SequenceNumberSegment with the given TransmissionMetrics. Only those properties of the TransmissionMetrics are considered which are also supported by the other constructors.
      Parameters:
      aAlias - The alias which identifies the content of this segment.
      aSequenceNumberInitValue - The value (payload) to be contained by the SequenceNumberSegment.
      aTransmissionMetrics - The TransmissionMetrics used to configure the SequenceNumberSegment.
    • SequenceNumberSegment

      public SequenceNumberSegment(int aSequenceNumberWidth, org.refcodes.numerical.Endianess aEndianess)
      Constructs a SequenceNumberSegment with the given TransmissionMetrics. Only those properties of the TransmissionMetrics are considered which are also supported by the other constructors.
      Parameters:
      aSequenceNumberWidth - The number of bytes to be occupied by the number.
      aEndianess - The Endianess to be used for payload values.
    • SequenceNumberSegment

      public SequenceNumberSegment(int aSequenceNumberWidth, Long aSequenceNumberInitValue, org.refcodes.numerical.Endianess aEndianess)
      Constructs a SequenceNumberSegment with the given TransmissionMetrics. Only those properties of the TransmissionMetrics are considered which are also supported by the other constructors.
      Parameters:
      aSequenceNumberWidth - The number of bytes to be occupied by the number.
      aSequenceNumberInitValue - The value (payload) to be contained by the NumberSegment.
      aEndianess - The Endianess to be used for payload values.
    • SequenceNumberSegment

      public SequenceNumberSegment(String aAlias, int aSequenceNumberWidth, org.refcodes.numerical.Endianess aEndianess)
      Constructs a SequenceNumberSegment with the given TransmissionMetrics. Only those properties of the TransmissionMetrics are considered which are also supported by the other constructors.
      Parameters:
      aAlias - The alias which identifies the content of this segment.
      aSequenceNumberWidth - The number of bytes to be occupied by the number.
      aEndianess - The Endianess to be used for payload values.
    • SequenceNumberSegment

      public SequenceNumberSegment(String aAlias, int aSequenceNumberWidth, Long aSequenceNumberInitValue, org.refcodes.numerical.Endianess aEndianess)
      Constructs a SequenceNumberSegment with the given TransmissionMetrics. Only those properties of the TransmissionMetrics are considered which are also supported by the other constructors.
      Parameters:
      aAlias - The alias which identifies the content of this segment.
      aSequenceNumberWidth - The number of bytes to be occupied by the number.
      aSequenceNumberInitValue - The value (payload) to be contained by the NumberSegment.
      aEndianess - The Endianess to be used for payload values.