java.lang.Object
org.refcodes.serial.AbstractPayloadSegment<Long>
org.refcodes.serial.NumberSegment
org.refcodes.serial.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.Resetable,org.refcodes.mixin.ValueAccessor<Long>,org.refcodes.mixin.ValueAccessor.ValueBuilder<Long,,NumberSegment> org.refcodes.mixin.ValueAccessor.ValueMutator<Long>,org.refcodes.mixin.ValueAccessor.ValueProperty<Long>,org.refcodes.schema.Schemable,PayloadSegment<Long>,PayloadTransmission<Long>,Segment,Segment.SegmentMixin,Transmission,Transmission.TransmissionMixin
Convenience class for the
NumberSegment using
TransmissionMetrics sequence number related properties to configure
the SequenceNumberSegment (being an accordingly configured
NumberSegment).- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.refcodes.mixin.AliasAccessor
org.refcodes.mixin.AliasAccessor.AliasBuilder<B extends org.refcodes.mixin.AliasAccessor.AliasBuilder<B>>, org.refcodes.mixin.AliasAccessor.AliasMutator, org.refcodes.mixin.AliasAccessor.AliasPropertyNested classes/interfaces inherited from interface org.refcodes.mixin.LengthAccessor
org.refcodes.mixin.LengthAccessor.LengthBuilder<B extends org.refcodes.mixin.LengthAccessor.LengthBuilder<B>>, org.refcodes.mixin.LengthAccessor.LengthMutator, org.refcodes.mixin.LengthAccessor.LengthPropertyNested classes/interfaces inherited from interface org.refcodes.mixin.PayloadAccessor
org.refcodes.mixin.PayloadAccessor.PayloadBuilder<P extends Object,B extends org.refcodes.mixin.PayloadAccessor.PayloadBuilder<P, B>>, org.refcodes.mixin.PayloadAccessor.PayloadMutator<P extends Object>, org.refcodes.mixin.PayloadAccessor.PayloadProperty<P extends Object> Nested classes/interfaces inherited from interface org.refcodes.serial.Segment
Segment.SegmentMixinNested classes/interfaces inherited from interface org.refcodes.serial.Transmission
Transmission.TransmissionMixinNested classes/interfaces inherited from interface org.refcodes.mixin.ValueAccessor
org.refcodes.mixin.ValueAccessor.ValueBuilder<V extends Object,B extends org.refcodes.mixin.ValueAccessor.ValueBuilder<V, B>>, org.refcodes.mixin.ValueAccessor.ValueMutator<V extends Object>, org.refcodes.mixin.ValueAccessor.ValueProperty<V extends Object> -
Field Summary
Fields inherited from class org.refcodes.serial.NumberSegment
ENDIANESSFields inherited from class org.refcodes.serial.AbstractPayloadSegment
_alias, _payload -
Constructor Summary
ConstructorsConstructorDescriptionSequenceNumberSegment(int aSequenceNumberWidth, Long aSequenceNumberInitValue, org.refcodes.numerical.Endianess aEndianess) Constructs aSequenceNumberSegmentwith the givenTransmissionMetrics.SequenceNumberSegment(int aSequenceNumberWidth, org.refcodes.numerical.Endianess aEndianess) Constructs aSequenceNumberSegmentwith the givenTransmissionMetrics.SequenceNumberSegment(Long aSequenceNumberInitValue, TransmissionMetrics aTransmissionMetrics) Constructs aSequenceNumberSegmentwith the givenTransmissionMetrics.SequenceNumberSegment(String aAlias, int aSequenceNumberWidth, Long aSequenceNumberInitValue, org.refcodes.numerical.Endianess aEndianess) Constructs aSequenceNumberSegmentwith the givenTransmissionMetrics.SequenceNumberSegment(String aAlias, int aSequenceNumberWidth, org.refcodes.numerical.Endianess aEndianess) Constructs aSequenceNumberSegmentwith the givenTransmissionMetrics.SequenceNumberSegment(String aAlias, Long aSequenceNumberInitValue, TransmissionMetrics aTransmissionMetrics) Constructs aSequenceNumberSegmentwith the givenTransmissionMetrics.SequenceNumberSegment(String aAlias, TransmissionMetrics aTransmissionMetrics) Constructs aSequenceNumberSegmentwith the givenTransmissionMetrics.SequenceNumberSegment(TransmissionMetrics aTransmissionMetrics) Constructs aSequenceNumberSegmentwith the givenTransmissionMetrics. -
Method Summary
Methods inherited from class org.refcodes.serial.NumberSegment
fromTransmission, getLength, getValue, reset, setValue, toSchema, toSequence, withPayload, withValueMethods inherited from class org.refcodes.serial.AbstractPayloadSegment
equals, getAlias, getPayload, hashCode, setPayload, toSimpleTypeMap, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.refcodes.mixin.PayloadAccessor
getPayloadOrMethods inherited from interface org.refcodes.mixin.PayloadAccessor.PayloadProperty
letPayloadMethods inherited from interface org.refcodes.serial.Segment
fromTransmission, fromTransmission, fromTransmission, receiveFrom, receiveFromMethods inherited from interface org.refcodes.serial.Segment.SegmentMixin
receiveFromMethods inherited from interface org.refcodes.serial.Transmission
toSimpleTypeMap, transmitTo, transmitToMethods inherited from interface org.refcodes.serial.Transmission.TransmissionMixin
transmitToMethods inherited from interface org.refcodes.mixin.ValueAccessor
getValueOrMethods inherited from interface org.refcodes.mixin.ValueAccessor.ValueProperty
letValue
-
Constructor Details
-
SequenceNumberSegment
Constructs aSequenceNumberSegmentwith the givenTransmissionMetrics. Only those properties of theTransmissionMetricsare considered which are also supported by the other constructors.- Parameters:
aTransmissionMetrics- TheTransmissionMetricsused to configure theSequenceNumberSegment.
-
SequenceNumberSegment
public SequenceNumberSegment(Long aSequenceNumberInitValue, TransmissionMetrics aTransmissionMetrics) Constructs aSequenceNumberSegmentwith the givenTransmissionMetrics. Only those properties of theTransmissionMetricsare considered which are also supported by the other constructors.- Parameters:
aSequenceNumberInitValue- The value (payload) to be contained by theSequenceNumberSegment.aTransmissionMetrics- TheTransmissionMetricsused to configure theSequenceNumberSegment.
-
SequenceNumberSegment
Constructs aSequenceNumberSegmentwith the givenTransmissionMetrics. Only those properties of theTransmissionMetricsare considered which are also supported by the other constructors.- Parameters:
aAlias- The alias which identifies the content of this segment.aTransmissionMetrics- TheTransmissionMetricsused to configure theSequenceNumberSegment.
-
SequenceNumberSegment
public SequenceNumberSegment(String aAlias, Long aSequenceNumberInitValue, TransmissionMetrics aTransmissionMetrics) Constructs aSequenceNumberSegmentwith the givenTransmissionMetrics. Only those properties of theTransmissionMetricsare 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 theSequenceNumberSegment.aTransmissionMetrics- TheTransmissionMetricsused to configure theSequenceNumberSegment.
-
SequenceNumberSegment
public SequenceNumberSegment(int aSequenceNumberWidth, org.refcodes.numerical.Endianess aEndianess) Constructs aSequenceNumberSegmentwith the givenTransmissionMetrics. Only those properties of theTransmissionMetricsare considered which are also supported by the other constructors.- Parameters:
aSequenceNumberWidth- The number of bytes to be occupied by the number.aEndianess- TheEndianessto be used for payload values.
-
SequenceNumberSegment
public SequenceNumberSegment(int aSequenceNumberWidth, Long aSequenceNumberInitValue, org.refcodes.numerical.Endianess aEndianess) Constructs aSequenceNumberSegmentwith the givenTransmissionMetrics. Only those properties of theTransmissionMetricsare 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 theNumberSegment.aEndianess- TheEndianessto be used for payload values.
-
SequenceNumberSegment
public SequenceNumberSegment(String aAlias, int aSequenceNumberWidth, org.refcodes.numerical.Endianess aEndianess) Constructs aSequenceNumberSegmentwith the givenTransmissionMetrics. Only those properties of theTransmissionMetricsare 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- TheEndianessto be used for payload values.
-
SequenceNumberSegment
public SequenceNumberSegment(String aAlias, int aSequenceNumberWidth, Long aSequenceNumberInitValue, org.refcodes.numerical.Endianess aEndianess) Constructs aSequenceNumberSegmentwith the givenTransmissionMetrics. Only those properties of theTransmissionMetricsare 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 theNumberSegment.aEndianess- TheEndianessto be used for payload values.
-