Class FloatSegment

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

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

  • Constructor Details

    • FloatSegment

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

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

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

      public FloatSegment(String aAlias, Float 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.
    • FloatSegment

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

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

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

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

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

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

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

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