Class LongSegment

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<SerialSchema>, PayloadSegment<Long>, PayloadTransmission<Long>, Segment, Segment.SegmentMixin, Transmission, Transmission.TransmissionMixin

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

  • Constructor Details

    • LongSegment

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

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

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

      public LongSegment(String aAlias, Long 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.
    • LongSegment

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

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

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

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

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

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

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

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