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.Schemable<SerialSchema>
,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
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.AliasProperty
Nested 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.LengthProperty
Nested 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.SegmentMixin
Nested classes/interfaces inherited from interface org.refcodes.serial.Transmission
Transmission.TransmissionMixin
Nested 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
ENDIANESS
Fields inherited from class org.refcodes.serial.AbstractPayloadSegment
_alias, _payload
-
Constructor Summary
ConstructorDescriptionSequenceNumberSegment
(int aSequenceNumberWidth, Long aSequenceNumberInitValue, org.refcodes.numerical.Endianess aEndianess) Constructs aSequenceNumberSegment
with the givenTransmissionMetrics
.SequenceNumberSegment
(int aSequenceNumberWidth, org.refcodes.numerical.Endianess aEndianess) Constructs aSequenceNumberSegment
with the givenTransmissionMetrics
.SequenceNumberSegment
(Long aSequenceNumberInitValue, TransmissionMetrics aTransmissionMetrics) Constructs aSequenceNumberSegment
with the givenTransmissionMetrics
.SequenceNumberSegment
(String aAlias, int aSequenceNumberWidth, Long aSequenceNumberInitValue, org.refcodes.numerical.Endianess aEndianess) Constructs aSequenceNumberSegment
with the givenTransmissionMetrics
.SequenceNumberSegment
(String aAlias, int aSequenceNumberWidth, org.refcodes.numerical.Endianess aEndianess) Constructs aSequenceNumberSegment
with the givenTransmissionMetrics
.SequenceNumberSegment
(String aAlias, Long aSequenceNumberInitValue, TransmissionMetrics aTransmissionMetrics) Constructs aSequenceNumberSegment
with the givenTransmissionMetrics
.SequenceNumberSegment
(String aAlias, TransmissionMetrics aTransmissionMetrics) Constructs aSequenceNumberSegment
with the givenTransmissionMetrics
.SequenceNumberSegment
(TransmissionMetrics aTransmissionMetrics) Constructs aSequenceNumberSegment
with the givenTransmissionMetrics
. -
Method Summary
Methods inherited from class org.refcodes.serial.NumberSegment
fromTransmission, getLength, getValue, setValue, toSchema, toSequence, withPayload, withValue
Methods inherited from class org.refcodes.serial.AbstractPayloadSegment
equals, getAlias, getPayload, hashCode, setPayload, toSimpleTypeMap, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.refcodes.mixin.PayloadAccessor
getPayloadOr
Methods inherited from interface org.refcodes.mixin.PayloadAccessor.PayloadProperty
letPayload
Methods inherited from interface org.refcodes.serial.Segment
fromTransmission, fromTransmission, fromTransmission, receiveFrom, receiveFrom
Methods inherited from interface org.refcodes.serial.Segment.SegmentMixin
receiveFrom
Methods inherited from interface org.refcodes.serial.Transmission
toSimpleTypeMap, transmitTo, transmitTo
Methods inherited from interface org.refcodes.serial.Transmission.TransmissionMixin
transmitTo
Methods inherited from interface org.refcodes.mixin.ValueAccessor
getValueOr
Methods inherited from interface org.refcodes.mixin.ValueAccessor.ValueProperty
letValue
-
Constructor Details
-
SequenceNumberSegment
Constructs aSequenceNumberSegment
with the givenTransmissionMetrics
. Only those properties of theTransmissionMetrics
are considered which are also supported by the other constructors.- Parameters:
aTransmissionMetrics
- TheTransmissionMetrics
used to configure theSequenceNumberSegment
.
-
SequenceNumberSegment
public SequenceNumberSegment(Long aSequenceNumberInitValue, TransmissionMetrics aTransmissionMetrics) Constructs aSequenceNumberSegment
with the givenTransmissionMetrics
. Only those properties of theTransmissionMetrics
are considered which are also supported by the other constructors.- Parameters:
aSequenceNumberInitValue
- The value (payload) to be contained by theSequenceNumberSegment
.aTransmissionMetrics
- TheTransmissionMetrics
used to configure theSequenceNumberSegment
.
-
SequenceNumberSegment
Constructs aSequenceNumberSegment
with the givenTransmissionMetrics
. Only those properties of theTransmissionMetrics
are considered which are also supported by the other constructors.- Parameters:
aAlias
- The alias which identifies the content of this segment.aTransmissionMetrics
- TheTransmissionMetrics
used to configure theSequenceNumberSegment
.
-
SequenceNumberSegment
public SequenceNumberSegment(String aAlias, Long aSequenceNumberInitValue, TransmissionMetrics aTransmissionMetrics) Constructs aSequenceNumberSegment
with the givenTransmissionMetrics
. Only those properties of theTransmissionMetrics
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 theSequenceNumberSegment
.aTransmissionMetrics
- TheTransmissionMetrics
used to configure theSequenceNumberSegment
.
-
SequenceNumberSegment
public SequenceNumberSegment(int aSequenceNumberWidth, org.refcodes.numerical.Endianess aEndianess) Constructs aSequenceNumberSegment
with the givenTransmissionMetrics
. Only those properties of theTransmissionMetrics
are considered which are also supported by the other constructors.- Parameters:
aSequenceNumberWidth
- The number of bytes to be occupied by the number.aEndianess
- TheEndianess
to be used for payload values.
-
SequenceNumberSegment
public SequenceNumberSegment(int aSequenceNumberWidth, Long aSequenceNumberInitValue, org.refcodes.numerical.Endianess aEndianess) Constructs aSequenceNumberSegment
with the givenTransmissionMetrics
. Only those properties of theTransmissionMetrics
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 theNumberSegment
.aEndianess
- TheEndianess
to be used for payload values.
-
SequenceNumberSegment
public SequenceNumberSegment(String aAlias, int aSequenceNumberWidth, org.refcodes.numerical.Endianess aEndianess) Constructs aSequenceNumberSegment
with the givenTransmissionMetrics
. Only those properties of theTransmissionMetrics
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
- TheEndianess
to be used for payload values.
-
SequenceNumberSegment
public SequenceNumberSegment(String aAlias, int aSequenceNumberWidth, Long aSequenceNumberInitValue, org.refcodes.numerical.Endianess aEndianess) Constructs aSequenceNumberSegment
with the givenTransmissionMetrics
. Only those properties of theTransmissionMetrics
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 theNumberSegment
.aEndianess
- TheEndianess
to be used for payload values.
-