java.lang.Object
org.refcodes.serial.SerialSugar
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <DECORATEE extends Section>
AllocSectionDecoratorSegment<DECORATEE>allocSegment
(DECORATEE aDecoratee) Constructs aAllocSectionDecoratorSegment
with the given decoratee and a width ofTransmissionMetrics.DEFAULT_LENGTH_WIDTH
bytes used to specify the decoratee's length aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of the decoratee's length.static <DECORATEE extends Section>
AllocSectionDecoratorSegment<DECORATEE>allocSegment
(DECORATEE aDecoratee, int aLengthWidth) Constructs aAllocSectionDecoratorSegment
with the given decoratee and with the given number of bytes used to specify the decoratee's length and aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of the decoratee's length.static <DECORATEE extends Section>
AllocSectionDecoratorSegment<DECORATEE>allocSegment
(DECORATEE aDecoratee, int aLengthWidth, org.refcodes.numerical.Endianess aEndianess) Constructs aAllocSectionDecoratorSegment
with the given decoratee and with the given number of bytes used to specify the decoratee's length and the providedEndianess
representation of the decoratee's length.static <DECORATEE extends Section>
AllocSectionDecoratorSegment<DECORATEE>allocSegment
(DECORATEE aDecoratee, org.refcodes.numerical.Endianess aEndianess) Constructs aAllocSectionDecoratorSegment
with the given decoratee and a width ofTransmissionMetrics.DEFAULT_LENGTH_WIDTH
bytes used to specify the decoratee's length and the providedEndianess
representation of the decoratee's length.static <DECORATEE extends Section>
AllocSectionDecoratorSegment<DECORATEE>allocSegment
(DECORATEE aDecoratee, TransmissionMetrics aTransmissionMetrics) Constructs an accordingAllocSectionDecoratorSegment
instance.static <DECORATEE extends Section>
AllocSegmentBody<DECORATEE>allocSegmentBody
(DECORATEE aDecoratee) Constructs the decorator with the given decoratee and a width ofTransmissionMetrics.DEFAULT_LENGTH_WIDTH
bytes used to specify the decoratee's length aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of the decoratee's length.static AllocSegmentHead
Constructs an empty head with a width ofTransmissionMetrics.DEFAULT_LENGTH_WIDTH
bytes used to specify the body's length and aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of the body's length.static AllocSegmentHead
allocSegmentHead
(int aLengthWidth) Constructs an empty head with the given number of bytes used to specify the body's length and aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of the body's length.static AllocSegmentHead
allocSegmentHead
(int aLengthWidth, org.refcodes.numerical.Endianess aEndianess) Constructs an empty head with a width ofTransmissionMetrics.DEFAULT_LENGTH_WIDTH
bytes used to specify the body's length and the providedEndianess
representation of the body's length.static AllocSegmentHead
allocSegmentHead
(org.refcodes.numerical.Endianess aEndianess) Constructs an empty head with a width ofTransmissionMetrics.DEFAULT_LENGTH_WIDTH
bytes used to specify the body's length and the providedEndianess
representation of the body's length.static AllocSegmentHead
allocSegmentHead
(AllocSegmentBody<?> aBody) Constructs the head with the given body and a width ofTransmissionMetrics.DEFAULT_LENGTH_WIDTH
bytes used to specify the body's length aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of the body's length.static AllocSegmentHead
allocSegmentHead
(AllocSegmentBody<?> aBody, int aLengthWidth) Constructs the head with the given body and with the given number of bytes used to specify the body's length and aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of the body's length.static AllocSegmentHead
allocSegmentHead
(AllocSegmentBody<?> aBody, int aLengthWidth, org.refcodes.numerical.Endianess aEndianess) Constructs the head with the given body and with the given number of bytes used to specify the body's length and the providedEndianess
representation of the body's length.static AllocSegmentHead
allocSegmentHead
(AllocSegmentBody<?> aBody, org.refcodes.numerical.Endianess aEndianess) Constructs the head with the given body and a width ofTransmissionMetrics.DEFAULT_LENGTH_WIDTH
bytes used to specify the body's length and the providedEndianess
representation of the body's length.static AllocSegmentHead
allocSegmentHead
(AllocSegmentBody<?> aBody, TransmissionMetrics aTransmissionMetrics) Constructs the head with the given body.static <ARRAY extends Segment>
SegmentArraySection<ARRAY>arraySection
(ARRAY... aSegmentArray) Constructs aSegmentArraySection
with the givenSegment
elements.static <ARRAY extends Segment>
SegmentArraySection<ARRAY>arraySection
(Class<ARRAY> aSegmentClass) Constructs aSegmentArraySection
with instances of the array being created using the providedClass
instance.static <ARRAY extends Segment>
SegmentArraySection<ARRAY>arraySection
(org.refcodes.factory.TypeFactory<ARRAY> aSegmentFactory) Constructs aSegmentArraySection
with instances of the array being created using the providedTypeFactory
instance.static <ARRAY extends Segment>
SegmentArraySection<ARRAY>arraySection
(org.refcodes.factory.TypeFactory<ARRAY> aSegmentFactory, ARRAY... aSegmentArray) Constructs aSegmentArraySection
with the given elements.static AsciizArraySegment
asciizArraySegment
(byte aEndOfStringByte, int aLengthWidth, org.refcodes.numerical.Endianess aEndianess, String... aPayload) Constructs anAsciizArraySegment
using the providedString
elements and using the providedSegment
class for creatingSegment
instances.static AsciizArraySegment
asciizArraySegment
(byte aEndOfStringByte, String... aPayload) Constructs anAsciizArraySegment
containing the provided payload and using theTransmissionMetrics.DEFAULT_LENGTH_WIDTH
as well as theTransmissionMetrics.DEFAULT_ENDIANESS
.static AsciizArraySegment
asciizArraySegment
(int aLengthWidth, org.refcodes.numerical.Endianess aEndianess, String... aPayload) Constructs anAsciizArraySegment
using the providedString
elements and using the providedSegment
class for creatingSegment
instances.static AsciizArraySegment
asciizArraySegment
(String... aPayload) Constructs anAsciizArraySegment
containing the provided payload and using theTransmissionMetrics.DEFAULT_LENGTH_WIDTH
as well as theTransmissionMetrics.DEFAULT_ENDIANESS
.static AsciizArraySegment
asciizArraySegment
(String aAlias, byte aEndOfStringByte, int aLengthWidth, org.refcodes.numerical.Endianess aEndianess, String... aPayload) Constructs anAsciizArraySegment
using the provided arguments.static AsciizArraySegment
asciizArraySegment
(String aAlias, int aLengthWidth, org.refcodes.numerical.Endianess aEndianess, String... aPayload) Constructs anAsciizArraySegment
using the provided arguments.static AsciizArraySegment
asciizArraySegment
(String aAlias, TransmissionMetrics aTransmissionMetrics) Constructs anAsciizArraySegment
from the given configuration.static AsciizArraySegment
asciizArraySegment
(String aAlias, TransmissionMetrics aTransmissionMetrics, byte aEndOfStringByte) Constructs anAsciizArraySegment
from the given configuration.static AsciizArraySegment
asciizArraySegment
(String aAlias, TransmissionMetrics aTransmissionMetrics, String... aValue) Constructs anAsciizArraySegment
from the given configuration.static AsciizArraySegment
asciizArraySegment
(TransmissionMetrics aTransmissionMetrics) Constructs anAsciizArraySegment
from the given configuration.static AsciizArraySegment
asciizArraySegment
(TransmissionMetrics aTransmissionMetrics, String... aValue) Constructs anAsciizArraySegment
from the given configuration.static AsciizSegment
Constructs an emptyAsciizSegment
.static AsciizSegment
asciizSegment
(byte aEndOfStringByte) Constructs an emptyAsciizSegment
.static AsciizSegment
asciizSegment
(byte[] aValue) Constructs anAsciizSegment
with the given (ASCII encoded) bytes payload.static AsciizSegment
asciizSegment
(byte[] aValue, byte aEndOfStringByte) Constructs anAsciizSegment
with the given (ASCII encoded) bytes payload.static AsciizSegment
asciizSegment
(String aValue) Constructs anAsciizSegment
with the givenString
payload.static AsciizSegment
asciizSegment
(String aValue, byte aEndOfStringByte) Constructs anAsciizSegment
with the givenString
payload.static AsciizSegment
asciizSegment
(String aAlias, byte[] aValue) Constructs anAsciizSegment
with the given (ASCII encoded) bytes payload.static AsciizSegment
asciizSegment
(String aAlias, byte[] aValue, byte aEndOfStringByte) Constructs anAsciizSegment
with the given (ASCII encoded) bytes payload.static AsciizSegment
asciizSegment
(String aAlias, String aValue) Constructs anAsciizSegment
with the givenString
payload.static AsciizSegment
asciizSegment
(String aAlias, String aValue, byte aEndOfStringByte) Constructs anAsciizSegment
with the givenString
payload.static AsciizSegment
asciizSegment
(String aAlias, TransmissionMetrics aTransmissionMetrics, byte[] aValue) Constructs anAsciizSegment
with the given (ASCII encoded) bytes payload.static AsciizSegment
asciizSegment
(String aAlias, TransmissionMetrics aTransmissionMetrics, String aValue) Constructs anAsciizSegment
with the givenString
payload.static AsciizSegment
asciizSegment
(TransmissionMetrics aTransmissionMetrics) Constructs an emptyAsciizSegment
.static AsciizSegment
asciizSegment
(TransmissionMetrics aTransmissionMetrics, byte[] aValue) Constructs anAsciizSegment
with the given (ASCII encoded) bytes payload.static AsciizSegment
asciizSegment
(TransmissionMetrics aTransmissionMetrics, String aValue) Constructs anAsciizSegment
with the givenString
payload.static <DECORATEE extends Section>
AssertMagicBytesSectionDecorator<DECORATEE>assertMagicBytesSection
(DECORATEE aDecoratee, byte... aMagicBytes) Enriches the providedSection
with the given magic bytes being prefixed.static <DECORATEE extends Section>
AssertMagicBytesSectionDecorator<DECORATEE>assertMagicBytesSection
(DECORATEE aDecoratee, String aMagicBytes) static <DECORATEE extends Section>
AssertMagicBytesSectionDecorator<DECORATEE>assertMagicBytesSection
(DECORATEE aDecoratee, String aMagicBytes, Charset aCharset) static <DECORATEE extends Section>
AssertMagicBytesSectionDecorator<DECORATEE>assertMagicBytesSection
(String aAlias, DECORATEE aDecoratee, byte... aMagicBytes) Enriches the providedSection
with the given magic bytes being prefixed.static <DECORATEE extends Section>
AssertMagicBytesSectionDecorator<DECORATEE>assertMagicBytesSection
(String aAlias, DECORATEE aDecoratee, String aMagicBytes) static <DECORATEE extends Section>
AssertMagicBytesSectionDecorator<DECORATEE>assertMagicBytesSection
(String aAlias, DECORATEE aDecoratee, String aMagicBytes, Charset aCharset) static AssertMagicBytesSegment
assertMagicBytesSegment
(byte... aMagicBytes) Constructs anAbstractMagicBytesTransmission
with the according magic bytes.static AssertMagicBytesSegment
assertMagicBytesSegment
(byte[] aMagicBytes, TransmissionMetrics aTransmissionMetrics) Constructs anAbstractMagicBytesTransmission
with the according magic bytes.static <DECORATEE extends Segment>
AssertMagicBytesSegmentDecorator<DECORATEE>assertMagicBytesSegment
(DECORATEE aDecoratee, byte... aMagicBytes) Enriches the providedSegment
with the given magic bytes being prefixed.static <DECORATEE extends Segment>
AssertMagicBytesSegmentDecorator<DECORATEE>assertMagicBytesSegment
(DECORATEE aDecoratee, String aMagicBytes) static <DECORATEE extends Segment>
AssertMagicBytesSegmentDecorator<DECORATEE>assertMagicBytesSegment
(DECORATEE aDecoratee, String aMagicBytes, Charset aCharset) static AssertMagicBytesSegment
assertMagicBytesSegment
(String aMagicBytes) Constructs anAssertMagicBytesSegment
with the according magic bytes (retrieved from the givenString
).static AssertMagicBytesSegment
assertMagicBytesSegment
(String aAlias, byte... aMagicBytes) Constructs anAssertMagicBytesSegment
with the according magic bytes.static AssertMagicBytesSegment
assertMagicBytesSegment
(String aAlias, byte[] aMagicBytes, TransmissionMetrics aTransmissionMetrics) Constructs anAssertMagicBytesSegment
with the according magic bytes.static <DECORATEE extends Segment>
AssertMagicBytesSegmentDecorator<DECORATEE>assertMagicBytesSegment
(String aAlias, DECORATEE aDecoratee, byte... aMagicBytes) Enriches the providedSegment
with the given magic bytes being prefixed.static <DECORATEE extends Segment>
AssertMagicBytesSegmentDecorator<DECORATEE>assertMagicBytesSegment
(String aAlias, DECORATEE aDecoratee, String aMagicBytes) static <DECORATEE extends Segment>
AssertMagicBytesSegmentDecorator<DECORATEE>assertMagicBytesSegment
(String aAlias, DECORATEE aDecoratee, String aMagicBytes, Charset aCharset) static AssertMagicBytesSegment
assertMagicBytesSegment
(String aAlias, String aMagicBytes) Constructs anAbstractMagicBytesTransmission
with the according magic bytes (retrieved from the givenString
).static AssertMagicBytesSegment
assertMagicBytesSegment
(String aAlias, String aMagicBytes, Charset aCharset) Constructs anAbstractMagicBytesTransmission
with the according magic bytes (retrieved from the givenString
).static AssertMagicBytesSegment
assertMagicBytesSegment
(String aAlias, String aMagicBytes, TransmissionMetrics aTransmissionMetrics) Constructs anAbstractMagicBytesTransmission
with the according magic bytes (retrieved from the givenString
).static AssertMagicBytesSegment
assertMagicBytesSegment
(String aMagicBytes, Charset aCharset) Constructs anAbstractMagicBytesTransmission
with the according magic bytes (retrieved from the givenString
).static AssertMagicBytesSegment
assertMagicBytesSegment
(String aMagicBytes, TransmissionMetrics aTransmissionMetrics) Constructs anAbstractMagicBytesTransmission
with the according magic bytes (retrieved from the givenString
).static AssertMagicBytesSegment
assertMagicBytesSegment
(TransmissionMetrics aTransmissionMetrics) Constructs anAbstractMagicBytesTransmission
with the according magic bytes (retrieved from the givenString
).static BooleanArraySection
Constructs an emptyBooleanArraySection
.static BooleanArraySection
booleanArraySection
(boolean... aValue) Constructs aBooleanArraySection
with the given boolean array payload.static BooleanArraySection
booleanArraySection
(Boolean... aValue) Constructs aBooleanArraySection
with the given boolean array payload.static BooleanArraySection
booleanArraySection
(String aAlias) Constructs an emptyBooleanArraySection
.static BooleanArraySection
booleanArraySection
(String aAlias, boolean... aValue) Constructs aBooleanArraySection
with the given boolean array payload.static BooleanArraySection
booleanArraySection
(String aAlias, Boolean... aValue) Constructs aBooleanArraySection
with the given boolean array payload.static BooleanSegment
Constructs an emptyBooleanSegment
.static BooleanSegment
booleanSegment
(boolean aValue) Constructs aBooleanSegment
with the given boolean payload.static BooleanSegment
booleanSegment
(String aAlias) Constructs an emptyBooleanSegment
.static BooleanSegment
booleanSegment
(String aAlias, boolean aValue) Constructs aBooleanSegment
with the given boolean payload.static <DECORATEE extends Section>
BreakerSectionDecorator<DECORATEE>breakerSection
(DECORATEE aDecoratee, int aBreakNumber) Constructs aBreakerSectionDecorator
instance with the given decoratee breaking deserialization of the decorated segments by the given number of times.static <DECORATEE extends Segment>
BreakerSegmentDecorator<DECORATEE>breakerSegment
(DECORATEE aDecoratee, int aBreakNumber) Constructs aBreakerSegmentDecorator
instance with the given decoratee breaking deserialization of the decorated segments by the given number of times.static ByteArraySection
Constructs an emptyByteArraySection
.static ByteArraySection
byteArraySection
(byte... aArray) Constructs aByteArraySection
with the given byte array payload.static ByteArraySection
byteArraySection
(Byte... aArray) Constructs aByteArraySection
with the given byte array payload.static ByteArraySection
byteArraySection
(String aAlias) Constructs an emptyByteArraySection
.static ByteArraySection
byteArraySection
(String aAlias, byte... aArray) Constructs aByteArraySection
with the given byte array payload.static ByteArraySection
byteArraySection
(String aAlias, Byte... aArray) Constructs aByteArraySection
with the given byte array payload.static ByteSegment
Constructs an emptyByteSegment
.static ByteSegment
byteSegment
(Byte aValue) Constructs aByteSegment
with the given byte payload.static ByteSegment
byteSegment
(String aAlias) Constructs an emptyByteSegment
.static ByteSegment
byteSegment
(String aAlias, Byte aValue) Constructs aByteSegment
with the given byte payload.static CharArraySection
Constructs an emptyCharArraySection
.static CharArraySection
charArraySection
(char[] aPayload) Constructs aCharArraySection
with the given char array payload.static CharArraySection
charArraySection
(Character[] aPayload) Constructs aCharArraySection
with the given char array payload.static CharArraySection
charArraySection
(String aAlias) Constructs an emptyCharArraySection
.static CharArraySection
charArraySection
(String aAlias, char[] aPayload) Constructs aCharArraySection
with the given char array payload.static CharArraySection
charArraySection
(String aAlias, Character[] aPayload) Constructs aCharArraySection
with the given char array payload.static CharArraySection
charArraySection
(String aAlias, Charset aCharset) Constructs an emptyCharArraySection
.static CharArraySection
charArraySection
(String aAlias, Charset aCharset, char... aPayload) Constructs aCharArraySection
with the given char array payload.static CharArraySection
charArraySection
(String aAlias, Charset aCharset, Character... aPayload) Constructs aCharArraySection
with the given char array payload.static CharArraySection
charArraySection
(String aAlias, TransmissionMetrics aTransmissionMetrics) Constructs an according instance from the given configuration.static CharArraySection
charArraySection
(String aAlias, TransmissionMetrics aTransmissionMetrics, char... aValue) Constructs an according instance from the given configuration.static CharArraySection
charArraySection
(String aAlias, TransmissionMetrics aTransmissionMetrics, Character... aValue) Constructs an according instance from the given configuration.static CharArraySection
charArraySection
(Charset aCharset) Constructs an emptyCharArraySection
.static CharArraySection
charArraySection
(Charset aCharset, char... aPayload) Constructs aCharArraySection
with the given char array payload.static CharArraySection
charArraySection
(Charset aCharset, Character... aPayload) Constructs aCharArraySection
with the given char array payload.static CharArraySection
charArraySection
(TransmissionMetrics aTransmissionMetrics) Constructs an according instance from the given configuration.static CharArraySection
charArraySection
(TransmissionMetrics aTransmissionMetrics, char... aValue) Constructs an according instance from the given configuration.static CharArraySection
charArraySection
(TransmissionMetrics aTransmissionMetrics, Character... aValue) Constructs an according instance from the given configuration.static CharSection
Constructs an emptyCharSection
.static CharSection
charSection
(char aValue, TransmissionMetrics aTransmissionMetrics) Constructs an according instance from the given configuration.static CharSection
charSection
(Character aPayload) Constructs aCharSection
with the given char payload.static CharSection
charSection
(Character aPayload, Charset aCharset) Constructs aCharSection
with the given char payload and the givenCharset
.static CharSection
charSection
(Character aValue, TransmissionMetrics aTransmissionMetrics) Constructs an according instance from the given configuration.static CharSection
charSection
(String aAlias) Constructs an emptyCharSection
.static CharSection
charSection
(String aAlias, char aValue, TransmissionMetrics aTransmissionMetrics) Constructs an according instance from the given configuration.static CharSection
charSection
(String aAlias, Character aPayload) Constructs aCharSection
with the given char payload.static CharSection
charSection
(String aAlias, Character aPayload, Charset aCharset) Constructs aCharSection
with the given char payload and the givenCharset
.static CharSection
charSection
(String aAlias, Character aValue, TransmissionMetrics aTransmissionMetrics) Constructs an according instance from the given configuration.static CharSection
charSection
(String aAlias, Charset aCharset) Constructs an emptyCharSection
with the givenCharset
.static CharSection
charSection
(String aAlias, TransmissionMetrics aTransmissionMetrics) Constructs an according instance from the given configuration.static CharSection
charSection
(Charset aCharset) Constructs an emptyCharSection
with the givenCharset
.static CharSection
charSection
(TransmissionMetrics aTransmissionMetrics) Constructs an according instance from the given configuration.static <DECORATEE extends Section>
CipherSectionDecorator<DECORATEE>cipherSection
(DECORATEE aDecoratee, Cipher aCipher) Constructs aCipher
transmission decorator applying bijective and inverse functions upon the delegated methods.static <DECORATEE extends Segment>
CipherSegmentDecorator<DECORATEE>cipherSegment
(DECORATEE aDecoratee, Cipher aCipher) Constructs aCipher
transmission decorator applying bijective and inverse functions upon the delegated methods.static <T> ComplexTypeSegment<T>
complexTypeSegment
(Class<T> aType) Constructs aComplexTypeSegment
from the givenClass
for the according type T.static <T> ComplexTypeSegment<T>
complexTypeSegment
(Class<T> aType, int aLengthWidth, org.refcodes.numerical.Endianess aEndianess, Charset aCharset) Constructs aComplexTypeSegment
from the givenClass
for the according type T.static <T> ComplexTypeSegment<T>
complexTypeSegment
(Class<T> aType, int aLengthWidth, org.refcodes.numerical.Endianess aEndianess, Charset aCharset, String... aAttributes) Constructs aComplexTypeSegment
from the givenClass
for the according type T.static <T> ComplexTypeSegment<T>
complexTypeSegment
(Class<T> aType, String... aAttributes) Constructs aComplexTypeSegment
from the givenClass
for the according type T.static <T> ComplexTypeSegment<T>
complexTypeSegment
(Class<T> aType, TransmissionMetrics aTransmissionMetrics) Constructs aComplexTypeSegment
from the givenClass
for the according type T.static <T> ComplexTypeSegment<T>
complexTypeSegment
(Class<T> aType, TransmissionMetrics aTransmissionMetrics, String... aAttributes) Constructs aComplexTypeSegment
from the givenClass
for the according type T.static <T> ComplexTypeSegment<T>
complexTypeSegment
(String aAlias, Class<T> aType) Constructs aComplexTypeSegment
from the givenClass
for the according type T.static <T> ComplexTypeSegment<T>
complexTypeSegment
(String aAlias, Class<T> aType, int aLengthWidth, org.refcodes.numerical.Endianess aEndianess, Charset aCharset) Constructs aComplexTypeSegment
from the givenClass
for the according type T.static <T> ComplexTypeSegment<T>
complexTypeSegment
(String aAlias, Class<T> aType, int aLengthWidth, org.refcodes.numerical.Endianess aEndianess, Charset aCharset, String... aAttributes) Constructs aComplexTypeSegment
from the givenClass
for the according type T.static <T> ComplexTypeSegment<T>
complexTypeSegment
(String aAlias, Class<T> aType, String... aAttributes) Constructs aComplexTypeSegment
from the givenClass
for the according type T.static <T> ComplexTypeSegment<T>
complexTypeSegment
(String aAlias, T aValue) Constructs aComplexTypeSegment
from the given data structure instance.static <T> ComplexTypeSegment<T>
complexTypeSegment
(String aAlias, T aValue, int aLengthWidth, org.refcodes.numerical.Endianess aEndianess, Charset aCharset) Constructs aComplexTypeSegment
from the given data structure instance.static <T> ComplexTypeSegment<T>
complexTypeSegment
(String aAlias, T aValue, int aLengthWidth, org.refcodes.numerical.Endianess aEndianess, Charset aCharset, String... aAttributes) Constructs aComplexTypeSegment
from the given data structure instance..static <T> ComplexTypeSegment<T>
complexTypeSegment
(String aAlias, T aValue, String... aAttributes) Constructs aComplexTypeSegment
from the given data structure instance..static <T> ComplexTypeSegment<T>
complexTypeSegment
(T aValue) Constructs aComplexTypeSegment
from the given data structure instance.static <T> ComplexTypeSegment<T>
complexTypeSegment
(T aValue, int aLengthWidth, org.refcodes.numerical.Endianess aEndianess, Charset aCharset) Constructs aComplexTypeSegment
from the given data structure instance.static <T> ComplexTypeSegment<T>
complexTypeSegment
(T aValue, int aLengthWidth, org.refcodes.numerical.Endianess aEndianess, Charset aCharset, String... aAttributes) Constructs aComplexTypeSegment
from the given data structure instance..static <T> ComplexTypeSegment<T>
complexTypeSegment
(T aValue, String... aAttributes) Constructs aComplexTypeSegment
from the given data structure instance..static <T> ComplexTypeSegment<T>
complexTypeSegment
(T aValue, TransmissionMetrics aTransmissionMetrics) Constructs aComplexTypeSegment
from the given data structure instance.static <T> ComplexTypeSegment<T>
complexTypeSegment
(T aValue, TransmissionMetrics aTransmissionMetrics, String... aAttributes) Constructs aComplexTypeSegment
from the given data structure instance..static <DECORATEE extends Section>
CrcSectionDecorator<DECORATEE>crcPrefixSection
(DECORATEE aDecoratee, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm) Constructs aCrcSectionDecorator
wrapping the givenSection
(usingTransmissionMetrics.DEFAULT_ENDIANESS
by default).static <DECORATEE extends Section>
CrcSectionDecorator<DECORATEE>crcPrefixSection
(DECORATEE aDecoratee, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.numerical.ChecksumValidationMode aChecksumValidationMode) Constructs aCrcSectionDecorator
wrapping the givenSection
(usingTransmissionMetrics.DEFAULT_ENDIANESS
by default).static <DECORATEE extends Section>
CrcSectionDecorator<DECORATEE>crcPrefixSection
(DECORATEE aDecoratee, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.numerical.ChecksumValidationMode aChecksumValidationMode, org.refcodes.numerical.Endianess aEndianess) Constructs aCrcSectionDecorator
wrapping the givenSection
.static <DECORATEE extends Section>
CrcSectionDecorator<DECORATEE>crcPrefixSection
(DECORATEE aDecoratee, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.numerical.Endianess aEndianess) Constructs aCrcSectionDecorator
wrapping the givenSection
.static <DECORATEE extends Segment>
CrcSegmentDecorator<DECORATEE>crcPrefixSegment
(DECORATEE aDecoratee, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm) Constructs aCrcSegmentDecorator
wrapping the givenSegment
(usingTransmissionMetrics.DEFAULT_ENDIANESS
by default).static <DECORATEE extends Segment>
CrcSegmentDecorator<DECORATEE>crcPrefixSegment
(DECORATEE aDecoratee, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.numerical.ChecksumValidationMode aChecksumValidationMode) Constructs aCrcSegmentDecorator
wrapping the givenSegment
(usingTransmissionMetrics.DEFAULT_ENDIANESS
by default).static <DECORATEE extends Segment>
CrcSegmentDecorator<DECORATEE>crcPrefixSegment
(DECORATEE aDecoratee, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.numerical.ChecksumValidationMode aChecksumValidationMode, org.refcodes.numerical.Endianess aEndianess) Constructs aCrcSegmentDecorator
wrapping the givenSegment
.static <DECORATEE extends Segment>
CrcSegmentDecorator<DECORATEE>crcPrefixSegment
(DECORATEE aDecoratee, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.numerical.Endianess aEndianess) Constructs aCrcSegmentDecorator
wrapping the givenSegment
.static <DECORATEE extends Segment>
CrcSegmentDecorator<DECORATEE>crcPrefixSegment
(DECORATEE aDecoratee, TransmissionMetrics aTransmissionMetrics) Constructs aCrcSegmentDecorator
wrapping the givenSegment
(usingTransmissionMetrics.DEFAULT_ENDIANESS
by default).static <DECORATEE extends Section>
CrcSectionDecorator<DECORATEE>crcSection
(DECORATEE aDecoratee, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.mixin.ConcatenateMode aCrcChecksumConcatenateMode) Constructs aCrcSectionDecorator
wrapping the givenSection
(usingTransmissionMetrics.DEFAULT_ENDIANESS
by default).static <DECORATEE extends Section>
CrcSectionDecorator<DECORATEE>crcSection
(DECORATEE aDecoratee, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.mixin.ConcatenateMode aCrcChecksumConcatenateMode, org.refcodes.numerical.ChecksumValidationMode aChecksumValidationMode) Constructs aCrcSectionDecorator
wrapping the givenSection
(usingTransmissionMetrics.DEFAULT_ENDIANESS
by default).static <DECORATEE extends Section>
CrcSectionDecorator<DECORATEE>crcSection
(DECORATEE aDecoratee, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.mixin.ConcatenateMode aCrcChecksumConcatenateMode, org.refcodes.numerical.ChecksumValidationMode aChecksumValidationMode, org.refcodes.numerical.Endianess aEndianess) Constructs aCrcSectionDecorator
wrapping the givenSection
.static <DECORATEE extends Section>
CrcSectionDecorator<DECORATEE>crcSection
(DECORATEE aDecoratee, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.mixin.ConcatenateMode aCrcChecksumConcatenateMode, org.refcodes.numerical.Endianess aEndianess) Constructs aCrcSectionDecorator
wrapping the givenSection
.static <DECORATEE extends Section>
CrcSectionDecorator<DECORATEE>crcSection
(DECORATEE aDecoratee, TransmissionMetrics aTransmissionMetrics) Constructs aCrcSectionDecorator
wrapping the givenSection
.static <DECORATEE extends Segment>
CrcSegmentDecorator<DECORATEE>crcSegment
(DECORATEE aDecoratee, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.mixin.ConcatenateMode aCrcChecksumConcatenateMode) Constructs aCrcSegmentDecorator
wrapping the givenSegment
(usingTransmissionMetrics.DEFAULT_ENDIANESS
by default).static <DECORATEE extends Segment>
CrcSegmentDecorator<DECORATEE>crcSegment
(DECORATEE aDecoratee, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.mixin.ConcatenateMode aCrcChecksumConcatenateMode, org.refcodes.numerical.ChecksumValidationMode aChecksumValidationMode) Constructs aCrcSegmentDecorator
wrapping the givenSegment
(usingTransmissionMetrics.DEFAULT_ENDIANESS
by default).static <DECORATEE extends Segment>
CrcSegmentDecorator<DECORATEE>crcSegment
(DECORATEE aDecoratee, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.mixin.ConcatenateMode aCrcChecksumConcatenateMode, org.refcodes.numerical.ChecksumValidationMode aChecksumValidationMode, org.refcodes.numerical.Endianess aEndianess) Constructs aCrcSegmentDecorator
wrapping the givenSegment
.static <DECORATEE extends Segment>
CrcSegmentDecorator<DECORATEE>crcSegment
(DECORATEE aDecoratee, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.mixin.ConcatenateMode aCrcChecksumConcatenateMode, org.refcodes.numerical.Endianess aEndianess) Constructs aCrcSegmentDecorator
wrapping the givenSegment
.static <DECORATEE extends Segment>
CrcSegmentDecorator<DECORATEE>crcSegment
(DECORATEE aDecoratee, TransmissionMetrics aTransmissionMetrics) Constructs aCrcSegmentDecorator
wrapping the givenSegment
.static CrcSegmentPackager
crcSegmentPackager
(org.refcodes.mixin.ConcatenateMode aCrcChecksumConcatenateMode) Constructs an accordingCrcSegmentPackager
for packaging and extracting of packets with a CRC checksum (usingTransmissionMetrics.DEFAULT_ENDIANESS
by default).static CrcSegmentPackager
crcSegmentPackager
(org.refcodes.mixin.ConcatenateMode aCrcChecksumConcatenateMode, org.refcodes.numerical.Endianess aEndianess) Constructs an accordingCrcSegmentPackager
for packaging and extracting of packets with a CRC checksum.static CrcSegmentPackager
crcSegmentPackager
(org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm) Constructs an accordingCrcSegmentPackager
for packaging and extracting of packets with a CRC checksum (usingTransmissionMetrics.DEFAULT_ENDIANESS
by default).static CrcSegmentPackager
crcSegmentPackager
(org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.mixin.ConcatenateMode aCrcChecksumConcatenateMode) Constructs an accordingCrcSegmentPackager
for packaging and extracting of packets with a CRC checksum (usingTransmissionMetrics.DEFAULT_ENDIANESS
by default).static CrcSegmentPackager
crcSegmentPackager
(org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.mixin.ConcatenateMode aCrcChecksumConcatenateMode, org.refcodes.numerical.ChecksumValidationMode aChecksumValidationMode) Constructs an accordingCrcSegmentPackager
for packaging and extracting of packets with a CRC checksum (usingTransmissionMetrics.DEFAULT_ENDIANESS
by default).static CrcSegmentPackager
crcSegmentPackager
(org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.mixin.ConcatenateMode aCrcChecksumConcatenateMode, org.refcodes.numerical.ChecksumValidationMode aChecksumValidationMode, org.refcodes.numerical.Endianess aEndianess) Constructs an accordingCrcSegmentPackager
for packaging and extracting of packets with a CRC checksum.static CrcSegmentPackager
crcSegmentPackager
(org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.mixin.ConcatenateMode aCrcChecksumConcatenateMode, org.refcodes.numerical.Endianess aEndianess) Constructs an accordingCrcSegmentPackager
for packaging and extracting of packets with a CRC checksum.static CrcSegmentPackager
crcSegmentPackager
(org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.numerical.ChecksumValidationMode aChecksumValidationMode) Constructs an accordingCrcSegmentPackager
for packaging and extracting of packets with a CRC checksum (usingTransmissionMetrics.DEFAULT_ENDIANESS
by default).static CrcSegmentPackager
crcSegmentPackager
(org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.numerical.ChecksumValidationMode aChecksumValidationMode, org.refcodes.numerical.Endianess aEndianess) Constructs an accordingCrcSegmentPackager
for packaging and extracting of packets with a CRC checksum.static CrcSegmentPackager
crcSegmentPackager
(org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.numerical.Endianess aEndianess) Constructs an accordingCrcSegmentPackager
for packaging and extracting of packets with a CRC checksum.static CrcSegmentPackager
crcSegmentPackager
(TransmissionMetrics aTransmissionMetrics) Constructs an accordingCrcSegmentPackager
for packaging and extracting of packets with a CRC checksum.static <DECORATEE extends Section>
CrcSectionDecorator<DECORATEE>crcSuffixSection
(DECORATEE aDecoratee, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm) Constructs aCrcSectionDecorator
wrapping the givenSection
(usingTransmissionMetrics.DEFAULT_ENDIANESS
by default).static <DECORATEE extends Section>
CrcSectionDecorator<DECORATEE>crcSuffixSection
(DECORATEE aDecoratee, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.numerical.ChecksumValidationMode aChecksumValidationMode) Constructs aCrcSectionDecorator
wrapping the givenSection
(usingTransmissionMetrics.DEFAULT_ENDIANESS
by default).static <DECORATEE extends Section>
CrcSectionDecorator<DECORATEE>crcSuffixSection
(DECORATEE aDecoratee, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.numerical.ChecksumValidationMode aChecksumValidationMode, org.refcodes.numerical.Endianess aEndianess) Constructs aCrcSectionDecorator
wrapping the givenSection
.static <DECORATEE extends Section>
CrcSectionDecorator<DECORATEE>crcSuffixSection
(DECORATEE aDecoratee, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.numerical.Endianess aEndianess) Constructs aCrcSectionDecorator
wrapping the givenSection
.static <DECORATEE extends Segment>
CrcSegmentDecorator<DECORATEE>crcSuffixSegment
(DECORATEE aDecoratee, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm) Constructs aCrcSegmentDecorator
wrapping the givenSegment
(usingTransmissionMetrics.DEFAULT_ENDIANESS
by default).static <DECORATEE extends Segment>
CrcSegmentDecorator<DECORATEE>crcSuffixSegment
(DECORATEE aDecoratee, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.numerical.ChecksumValidationMode aChecksumValidationMode) Constructs aCrcSegmentDecorator
wrapping the givenSegment
(usingTransmissionMetrics.DEFAULT_ENDIANESS
by default).static <DECORATEE extends Segment>
CrcSegmentDecorator<DECORATEE>crcSuffixSegment
(DECORATEE aDecoratee, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.numerical.ChecksumValidationMode aChecksumValidationMode, org.refcodes.numerical.Endianess aEndianess) Constructs aCrcSegmentDecorator
wrapping the givenSegment
.static <DECORATEE extends Segment>
CrcSegmentDecorator<DECORATEE>crcSuffixSegment
(DECORATEE aDecoratee, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.numerical.Endianess aEndianess) Constructs aCrcSegmentDecorator
wrapping the givenSegment
.static <DECORATEE extends Segment>
CrcSegmentDecorator<DECORATEE>crcSuffixSegment
(DECORATEE aDecoratee, TransmissionMetrics aTransmissionMetrics) Constructs aCrcSegmentDecorator
wrapping the givenSegment
(usingTransmissionMetrics.DEFAULT_ENDIANESS
by default).static DoubleArraySection
Constructs an emptyDoubleArraySection
with aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theSection
's value.static DoubleArraySection
doubleArraySection
(double... aValue) Constructs aDoubleArraySection
with the given double array payload and aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theDoubleArraySection
's value.static DoubleArraySection
doubleArraySection
(Double... aValue) Constructs aDoubleArraySection
with the given double array payload and aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theDoubleArraySection
's value.static DoubleArraySection
doubleArraySection
(String aAlias) Constructs an emptyDoubleArraySection
with aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theSection
's value.static DoubleArraySection
doubleArraySection
(String aAlias, double... aValue) Constructs aDoubleArraySection
with the given double array payload and aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theDoubleArraySection
's value.static DoubleArraySection
doubleArraySection
(String aAlias, Double... aValue) Constructs aDoubleArraySection
with the given double array payload and aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theDoubleArraySection
's value.static DoubleArraySection
doubleArraySection
(String aAlias, org.refcodes.numerical.Endianess aEndianess) Constructs an emptyDoubleArraySection
with the givenEndianess
.static DoubleArraySection
doubleArraySection
(String aAlias, org.refcodes.numerical.Endianess aEndianess, double... aValue) Constructs aDoubleArraySection
with the given double array payload and the givenEndianess
for the representation of theDoubleArraySection
's value.static DoubleArraySection
doubleArraySection
(String aAlias, org.refcodes.numerical.Endianess aEndianess, Double... aValue) Constructs aDoubleArraySection
with the given double array payload and the givenEndianess
for the representation of theDoubleArraySection
's value.static DoubleArraySection
doubleArraySection
(String aAlias, TransmissionMetrics aTransmissionMetrics) Constructs an according instance from the given configuration.static DoubleArraySection
doubleArraySection
(String aAlias, TransmissionMetrics aTransmissionMetrics, double... aValue) Constructs an according instance from the given configuration.static DoubleArraySection
doubleArraySection
(String aAlias, TransmissionMetrics aTransmissionMetrics, Double... aValue) Constructs an according instance from the given configuration.static DoubleArraySection
doubleArraySection
(org.refcodes.numerical.Endianess aEndianess) Constructs an emptyDoubleArraySection
with the givenEndianess
.static DoubleArraySection
doubleArraySection
(org.refcodes.numerical.Endianess aEndianess, double... aValue) Constructs aDoubleArraySection
with the given double array payload and the givenEndianess
for the representation of theDoubleArraySection
's value.static DoubleArraySection
doubleArraySection
(org.refcodes.numerical.Endianess aEndianess, Double... aValue) Constructs aDoubleArraySection
with the given double array payload and the givenEndianess
for the representation of theDoubleArraySection
's value.static DoubleArraySection
doubleArraySection
(TransmissionMetrics aTransmissionMetrics) Constructs an according instance from the given configuration.static DoubleArraySection
doubleArraySection
(TransmissionMetrics aTransmissionMetrics, double... aValue) Constructs an according instance from the given configuration.static DoubleArraySection
doubleArraySection
(TransmissionMetrics aTransmissionMetrics, Double... aValue) Constructs an according instance from the given configuration.static DoubleSegment
Constructs an emptyDoubleSegment
with aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theDoubleSegment
's value.static DoubleSegment
doubleSegment
(Double aValue) Constructs aDoubleSegment
with the given double payload and aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theDoubleSegment
's value.static DoubleSegment
doubleSegment
(Double aValue, org.refcodes.numerical.Endianess aEndianess) Constructs aDoubleSegment
with the given double payload and the givenEndianess
for the representation of theSegment
's value.static DoubleSegment
doubleSegment
(Double aValue, TransmissionMetrics aTransmissionMetrics) Constructs an according instance from the given configuration.static DoubleSegment
doubleSegment
(String aAlias) Constructs an emptyDoubleSegment
with aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theDoubleSegment
's value.static DoubleSegment
doubleSegment
(String aAlias, Double aValue) Constructs aDoubleSegment
with the given double payload and aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theDoubleSegment
's value.static DoubleSegment
doubleSegment
(String aAlias, Double aValue, org.refcodes.numerical.Endianess aEndianess) Constructs aDoubleSegment
with the given double payload and the givenEndianess
for the representation of theSegment
's value.static DoubleSegment
doubleSegment
(String aAlias, Double aValue, TransmissionMetrics aTransmissionMetrics) Constructs an according instance from the given configuration.static DoubleSegment
doubleSegment
(String aAlias, org.refcodes.numerical.Endianess aEndianess) Constructs an emptyDoubleSegment
with the givenEndianess
endian representation of theDoubleSegment
's value.static DoubleSegment
doubleSegment
(String aAlias, TransmissionMetrics aTransmissionMetrics) Constructs an according instance from the given configuration.static DoubleSegment
doubleSegment
(org.refcodes.numerical.Endianess aEndianess) Constructs an emptyDoubleSegment
with the givenEndianess
endian representation of theDoubleSegment
's value.static DoubleSegment
doubleSegment
(TransmissionMetrics aTransmissionMetrics) Constructs an according instance from the given configuration.Constructs an accordingSegmentPackager.DummySegmentPackager
.static DynamicTypeSection
Constructs aDynamicTypeSection
with the default properties (TransmissionMetrics.DEFAULT_LENGTH_WIDTH
,TransmissionMetrics.DEFAULT_ENDIANESS
as well asTransmissionMetrics.DEFAULT_ENCODING
).static DynamicTypeSection
dynamicTypeSection
(int aLengthWidth, org.refcodes.numerical.Endianess aEndianess) Constructs aDynamicTypeSection
with the given properties as well as with theTransmissionMetrics.DEFAULT_ENCODING
.static DynamicTypeSection
dynamicTypeSection
(int aLengthWidth, org.refcodes.numerical.Endianess aEndianess, Charset aCharset) Constructs aDynamicTypeSection
with the given properties.static DynamicTypeSection
dynamicTypeSection
(String aAlias) Constructs aDynamicTypeSection
with the default properties (TransmissionMetrics.DEFAULT_LENGTH_WIDTH
,TransmissionMetrics.DEFAULT_ENDIANESS
as well asTransmissionMetrics.DEFAULT_ENCODING
).static DynamicTypeSection
dynamicTypeSection
(String aAlias, int aLengthWidth, org.refcodes.numerical.Endianess aEndianess) Constructs aDynamicTypeSection
with the given properties as well as with theTransmissionMetrics.DEFAULT_ENCODING
.static DynamicTypeSection
dynamicTypeSection
(String aAlias, int aLengthWidth, org.refcodes.numerical.Endianess aEndianess, Charset aCharset) Constructs aDynamicTypeSection
with the given properties.static DynamicTypeSection
dynamicTypeSection
(String aAlias, Charset aCharset) Constructs aDynamicTypeSection
with the givenCharSection
, as well as with theTransmissionMetrics.DEFAULT_LENGTH_WIDTH
and theTransmissionMetrics.DEFAULT_ENDIANESS
.static DynamicTypeSection
dynamicTypeSection
(String aAlias, TransmissionMetrics aTransmissionMetrics) Constructs aDynamicTypeSection
with the given properties.static <T> DynamicTypeSection
dynamicTypeSection
(String aAlias, T aValue) Constructs aDynamicTypeSection
with the default properties (TransmissionMetrics.DEFAULT_LENGTH_WIDTH
,TransmissionMetrics.DEFAULT_ENDIANESS
as well asTransmissionMetrics.DEFAULT_ENCODING
).static <T> DynamicTypeSection
dynamicTypeSection
(String aAlias, T aValue, int aLengthWidth, org.refcodes.numerical.Endianess aEndianess) Constructs aDynamicTypeSection
with the given properties as well as with theTransmissionMetrics.DEFAULT_ENCODING
.static <T> DynamicTypeSection
dynamicTypeSection
(String aAlias, T aValue, int aLengthWidth, org.refcodes.numerical.Endianess aEndianess, String... aAttributes) Constructs aDynamicTypeSection
with the given properties as well as with theTransmissionMetrics.DEFAULT_ENCODING
.static <T> DynamicTypeSection
dynamicTypeSection
(String aAlias, T aValue, int aLengthWidth, org.refcodes.numerical.Endianess aEndianess, Charset aCharset) Constructs aDynamicTypeSection
with the given properties.static <T> DynamicTypeSection
dynamicTypeSection
(String aAlias, T aValue, int aLengthWidth, org.refcodes.numerical.Endianess aEndianess, Charset aCharset, String... aAttributes) Constructs aDynamicTypeSection
with the given properties.static <T> DynamicTypeSection
dynamicTypeSection
(String aAlias, T aValue, String... aAttributes) Constructs aDynamicTypeSection
with the default properties (TransmissionMetrics.DEFAULT_LENGTH_WIDTH
,TransmissionMetrics.DEFAULT_ENDIANESS
as well asTransmissionMetrics.DEFAULT_ENCODING
).static <T> DynamicTypeSection
dynamicTypeSection
(String aAlias, T aValue, Charset aCharset) Constructs aDynamicTypeSection
with the givenCharSection
, as well as with theTransmissionMetrics.DEFAULT_LENGTH_WIDTH
and theTransmissionMetrics.DEFAULT_ENDIANESS
.static <T> DynamicTypeSection
dynamicTypeSection
(String aAlias, T aValue, Charset aCharset, String... aAttributes) Constructs aDynamicTypeSection
with the givenCharSection
, as well as with theTransmissionMetrics.DEFAULT_LENGTH_WIDTH
and theTransmissionMetrics.DEFAULT_ENDIANESS
.static <T> DynamicTypeSection
dynamicTypeSection
(String aAlias, T aValue, TransmissionMetrics aTransmissionMetrics) Constructs aDynamicTypeSection
with the given properties.static <T> DynamicTypeSection
dynamicTypeSection
(String aAlias, T aValue, TransmissionMetrics aTransmissionMetrics, String... aAttributes) Constructs aDynamicTypeSection
with the given properties.static DynamicTypeSection
dynamicTypeSection
(Charset aCharset) Constructs aDynamicTypeSection
with the givenCharSection
, as well as with theTransmissionMetrics.DEFAULT_LENGTH_WIDTH
and theTransmissionMetrics.DEFAULT_ENDIANESS
.static DynamicTypeSection
dynamicTypeSection
(TransmissionMetrics aTransmissionMetrics) Constructs aDynamicTypeSection
with the given properties.static <T> DynamicTypeSection
dynamicTypeSection
(T aValue) Constructs aDynamicTypeSection
with the default properties (TransmissionMetrics.DEFAULT_LENGTH_WIDTH
,TransmissionMetrics.DEFAULT_ENDIANESS
as well asTransmissionMetrics.DEFAULT_ENCODING
).static <T> DynamicTypeSection
dynamicTypeSection
(T aValue, int aLengthWidth, org.refcodes.numerical.Endianess aEndianess) Constructs aDynamicTypeSection
with the given properties as well as with theTransmissionMetrics.DEFAULT_ENCODING
.static <T> DynamicTypeSection
dynamicTypeSection
(T aValue, int aLengthWidth, org.refcodes.numerical.Endianess aEndianess, String... aAttributes) Constructs aDynamicTypeSection
with the given properties as well as with theTransmissionMetrics.DEFAULT_ENCODING
.static <T> DynamicTypeSection
dynamicTypeSection
(T aValue, int aLengthWidth, org.refcodes.numerical.Endianess aEndianess, Charset aCharset) Constructs aDynamicTypeSection
with the given properties.static <T> DynamicTypeSection
dynamicTypeSection
(T aValue, int aLengthWidth, org.refcodes.numerical.Endianess aEndianess, Charset aCharset, String... aAttributes) Constructs aDynamicTypeSection
with the given properties.static <T> DynamicTypeSection
dynamicTypeSection
(T aValue, String... aAttributes) Constructs aDynamicTypeSection
with the default properties (TransmissionMetrics.DEFAULT_LENGTH_WIDTH
,TransmissionMetrics.DEFAULT_ENDIANESS
as well asTransmissionMetrics.DEFAULT_ENCODING
).static <T> DynamicTypeSection
dynamicTypeSection
(T aValue, Charset aCharset) Constructs aDynamicTypeSection
with the givenCharSection
, as well as with theTransmissionMetrics.DEFAULT_LENGTH_WIDTH
and theTransmissionMetrics.DEFAULT_ENDIANESS
.static <T> DynamicTypeSection
dynamicTypeSection
(T aValue, Charset aCharset, String... aAttributes) Constructs aDynamicTypeSection
with the givenCharSection
, as well as with theTransmissionMetrics.DEFAULT_LENGTH_WIDTH
and theTransmissionMetrics.DEFAULT_ENDIANESS
.static <T> DynamicTypeSection
dynamicTypeSection
(T aValue, TransmissionMetrics aTransmissionMetrics) Constructs aDynamicTypeSection
with the given properties.static <T> DynamicTypeSection
dynamicTypeSection
(T aValue, TransmissionMetrics aTransmissionMetrics, String... aAttributes) Constructs aDynamicTypeSection
with the given properties.static DynamicTypeSegment
Constructs aDynamicTypeSegment
with the default properties (TransmissionMetrics.DEFAULT_LENGTH_WIDTH
,TransmissionMetrics.DEFAULT_ENDIANESS
as well asTransmissionMetrics.DEFAULT_ENCODING
).static DynamicTypeSegment
dynamicTypeSegment
(int aLengthWidth, org.refcodes.numerical.Endianess aEndianess) Constructs aDynamicTypeSegment
with the given properties as well as with theTransmissionMetrics.DEFAULT_ENCODING
.static DynamicTypeSegment
dynamicTypeSegment
(int aLengthWidth, org.refcodes.numerical.Endianess aEndianess, Charset aCharset) Constructs aDynamicTypeSegment
with the given properties.static DynamicTypeSegment
dynamicTypeSegment
(String aAlias) Constructs aDynamicTypeSegment
with the default properties (TransmissionMetrics.DEFAULT_LENGTH_WIDTH
,TransmissionMetrics.DEFAULT_ENDIANESS
as well asTransmissionMetrics.DEFAULT_ENCODING
).static DynamicTypeSegment
dynamicTypeSegment
(String aAlias, int aLengthWidth, org.refcodes.numerical.Endianess aEndianess) Constructs aDynamicTypeSegment
with the given properties as well as with theTransmissionMetrics.DEFAULT_ENCODING
.static DynamicTypeSegment
dynamicTypeSegment
(String aAlias, int aLengthWidth, org.refcodes.numerical.Endianess aEndianess, Charset aCharset) Constructs aDynamicTypeSegment
with the given properties.static DynamicTypeSegment
dynamicTypeSegment
(String aAlias, Charset aCharset) Constructs aDynamicTypeSegment
with the givenCharSection
, as well as with theTransmissionMetrics.DEFAULT_LENGTH_WIDTH
and theTransmissionMetrics.DEFAULT_ENDIANESS
.static DynamicTypeSegment
dynamicTypeSegment
(String aAlias, TransmissionMetrics aTransmissionMetrics) Constructs aDynamicTypeSegment
with the given properties.static <T> DynamicTypeSegment
dynamicTypeSegment
(String aAlias, T aValue) Constructs aDynamicTypeSegment
with the default properties (TransmissionMetrics.DEFAULT_LENGTH_WIDTH
,TransmissionMetrics.DEFAULT_ENDIANESS
as well asTransmissionMetrics.DEFAULT_ENCODING
).static <T> DynamicTypeSegment
dynamicTypeSegment
(String aAlias, T aValue, int aLengthWidth, org.refcodes.numerical.Endianess aEndianess) Constructs aDynamicTypeSegment
with the given properties as well as with theTransmissionMetrics.DEFAULT_ENCODING
.static <T> DynamicTypeSegment
dynamicTypeSegment
(String aAlias, T aValue, int aLengthWidth, org.refcodes.numerical.Endianess aEndianess, String... aAttributes) Constructs aDynamicTypeSegment
with the given properties as well as with theTransmissionMetrics.DEFAULT_ENCODING
.static <T> DynamicTypeSegment
dynamicTypeSegment
(String aAlias, T aValue, int aLengthWidth, org.refcodes.numerical.Endianess aEndianess, Charset aCharset) Constructs aDynamicTypeSegment
with the given properties.static <T> DynamicTypeSegment
dynamicTypeSegment
(String aAlias, T aValue, int aLengthWidth, org.refcodes.numerical.Endianess aEndianess, Charset aCharset, String... aAttributes) Constructs aDynamicTypeSegment
with the given properties.static <T> DynamicTypeSegment
dynamicTypeSegment
(String aAlias, T aValue, String... aAttributes) Constructs aDynamicTypeSegment
with the default properties (TransmissionMetrics.DEFAULT_LENGTH_WIDTH
,TransmissionMetrics.DEFAULT_ENDIANESS
as well asTransmissionMetrics.DEFAULT_ENCODING
).static <T> DynamicTypeSegment
dynamicTypeSegment
(String aAlias, T aValue, Charset aCharset) Constructs aDynamicTypeSegment
with the givenCharSection
, as well as with theTransmissionMetrics.DEFAULT_LENGTH_WIDTH
and theTransmissionMetrics.DEFAULT_ENDIANESS
.static <T> DynamicTypeSegment
dynamicTypeSegment
(String aAlias, T aValue, Charset aCharset, String... aAttributes) Constructs aDynamicTypeSegment
with the givenCharSection
, as well as with theTransmissionMetrics.DEFAULT_LENGTH_WIDTH
and theTransmissionMetrics.DEFAULT_ENDIANESS
.static <T> DynamicTypeSegment
dynamicTypeSegment
(String aAlias, T aValue, TransmissionMetrics aTransmissionMetrics) Constructs aDynamicTypeSegment
with the given properties.static <T> DynamicTypeSegment
dynamicTypeSegment
(String aAlias, T aValue, TransmissionMetrics aTransmissionMetrics, String... aAttributes) Constructs aDynamicTypeSegment
with the given properties.static DynamicTypeSegment
dynamicTypeSegment
(Charset aCharset) Constructs aDynamicTypeSegment
with the givenCharSection
, as well as with theTransmissionMetrics.DEFAULT_LENGTH_WIDTH
and theTransmissionMetrics.DEFAULT_ENDIANESS
.static DynamicTypeSegment
dynamicTypeSegment
(TransmissionMetrics aTransmissionMetrics) Constructs aDynamicTypeSegment
with the given properties.static <T> DynamicTypeSegment
dynamicTypeSegment
(T aValue) Constructs aDynamicTypeSegment
with the default properties (TransmissionMetrics.DEFAULT_LENGTH_WIDTH
,TransmissionMetrics.DEFAULT_ENDIANESS
as well asTransmissionMetrics.DEFAULT_ENCODING
).static <T> DynamicTypeSegment
dynamicTypeSegment
(T aValue, int aLengthWidth, org.refcodes.numerical.Endianess aEndianess) Constructs aDynamicTypeSegment
with the given properties as well as with theTransmissionMetrics.DEFAULT_ENCODING
.static <T> DynamicTypeSegment
dynamicTypeSegment
(T aValue, int aLengthWidth, org.refcodes.numerical.Endianess aEndianess, String... aAttributes) Constructs aDynamicTypeSegment
with the given properties as well as with theTransmissionMetrics.DEFAULT_ENCODING
.static <T> DynamicTypeSegment
dynamicTypeSegment
(T aValue, int aLengthWidth, org.refcodes.numerical.Endianess aEndianess, Charset aCharset) Constructs aDynamicTypeSegment
with the given properties.static <T> DynamicTypeSegment
dynamicTypeSegment
(T aValue, int aLengthWidth, org.refcodes.numerical.Endianess aEndianess, Charset aCharset, String... aAttributes) Constructs aDynamicTypeSegment
with the given properties.static <T> DynamicTypeSegment
dynamicTypeSegment
(T aValue, String... aAttributes) Constructs aDynamicTypeSegment
with the default properties (TransmissionMetrics.DEFAULT_LENGTH_WIDTH
,TransmissionMetrics.DEFAULT_ENDIANESS
as well asTransmissionMetrics.DEFAULT_ENCODING
).static <T> DynamicTypeSegment
dynamicTypeSegment
(T aValue, Charset aCharset) Constructs aDynamicTypeSegment
with the givenCharSection
, as well as with theTransmissionMetrics.DEFAULT_LENGTH_WIDTH
and theTransmissionMetrics.DEFAULT_ENDIANESS
.static <T> DynamicTypeSegment
dynamicTypeSegment
(T aValue, Charset aCharset, String... aAttributes) Constructs aDynamicTypeSegment
with the givenCharSection
, as well as with theTransmissionMetrics.DEFAULT_LENGTH_WIDTH
and theTransmissionMetrics.DEFAULT_ENDIANESS
.static <T> DynamicTypeSegment
dynamicTypeSegment
(T aValue, TransmissionMetrics aTransmissionMetrics) Constructs aDynamicTypeSegment
with the given properties.static <T> DynamicTypeSegment
dynamicTypeSegment
(T aValue, TransmissionMetrics aTransmissionMetrics, String... aAttributes) Constructs aDynamicTypeSegment
with the given properties.static <E extends Enum<E>>
EnumSegment<E>enumSegment
(Class<E> aType) Constructs an emptyEnumSegment
with aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theEnumSegment
's value.static <E extends Enum<E>>
EnumSegment<E>enumSegment
(Class<E> aType, org.refcodes.numerical.Endianess aEndianess) Constructs an emptyEnumSegment
with the givenEndianess
.static <E extends Enum<E>>
EnumSegment<E>enumSegment
(Class<E> aType, TransmissionMetrics aTransmissionMetrics) Constructs an according instance from the given configuration.static <E extends Enum<E>>
EnumSegment<E>enumSegment
(Enum<E> aValue, org.refcodes.numerical.Endianess aEndianess) Constructs aEnumSegment
with the given enumeration value (payload) and the givenEndianess
for the representation of theEnumSegment
's value.static <E extends Enum<E>>
EnumSegment<E>enumSegment
(Enum<E> aValue, TransmissionMetrics aTransmissionMetrics) Constructs an according instance from the given configuration.static <E extends Enum<E>>
EnumSegment<E>enumSegment
(String aAlias, Class<E> aType) Constructs an emptyEnumSegment
with aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theEnumSegment
's value.static <E extends Enum<E>>
EnumSegment<E>enumSegment
(String aAlias, Class<E> aType, Enum<E> aValue, org.refcodes.numerical.Endianess aEndianess) Constructs aEnumSegment
with the given enumeration value (payload) and the givenEndianess
for the representation of theEnumSegment
's value.static <E extends Enum<E>>
EnumSegment<E>enumSegment
(String aAlias, Class<E> aType, org.refcodes.numerical.Endianess aEndianess) Constructs an emptyEnumSegment
with the givenEndianess
.static <E extends Enum<E>>
EnumSegment<E>enumSegment
(String aAlias, Class<E> aType, TransmissionMetrics aTransmissionMetrics) Constructs an according instance from the given configuration.static <E extends Enum<E>>
EnumSegment<E>enumSegment
(String aAlias, Enum<E> aValue, org.refcodes.numerical.Endianess aEndianess) Constructs aEnumSegment
with the given enumeration value (payload) and the givenEndianess
for the representation of theEnumSegment
's value.static <E extends Enum<E>>
EnumSegment<E>enumSegment
(String aAlias, Enum<E> aValue, TransmissionMetrics aTransmissionMetrics) Constructs an according instance from the given configuration.static FileSection
fileSection
(File aFile) Constructs aFileSection
.static FileSection
fileSection
(File aBasePath, Supplier<String> aFilePathSupplier) Constructs aFileSection
, the underlyingFile
is created on demand dynamically using the providedSupplier
.static FileSection
fileSection
(String aFilePath) Constructs aFileSection
.static FileSection
fileSection
(String aAlias, File aFile) Constructs aFileSection
.static FileSection
fileSection
(String aAlias, File aBasePath, Supplier<String> aFilePathSupplier) Constructs aFileSection
, the underlyingFile
is created on demand dynamically using the providedSupplier
.static FileSection
fileSection
(String aAlias, String aFilePath) Constructs aFileSection
.static FileSection
fileSection
(String aAlias, String aBasePath, Supplier<String> aFilePathSupplier) Constructs aFileSection
, the underlyingFile
is created on demand dynamically using the providedSupplier
.static FileSection
fileSection
(String aBasePath, Supplier<String> aFilePathSupplier) Constructs aFileSection
, the underlyingFile
is created on demand dynamically using the providedSupplier
.static FileSection
fileSection
(Supplier<String> aFilePathSupplier) Constructs aFileSection
, the underlyingFile
is created on demand dynamically using the providedSupplier
.static FixedLengthSequenceSegment
fixedLengthSequenceSegment
(int aSequenceSize) Constructs aFixedLengthSequenceSegment
.static FixedLengthSequenceSegment
fixedLengthSequenceSegment
(String aAlias, int aSequenceSize) Constructs aFixedLengthSequenceSegment
.static FixedLengthSequenceSegment
fixedLengthSequenceSegment
(String aAlias, Sequence aSequence) Constructs aFixedLengthSequenceSegment
.static FixedLengthSequenceSegment
fixedLengthSequenceSegment
(Sequence aSequence) Constructs aFixedLengthSequenceSegment
.static <ARRAY extends Segment>
FixedSegmentArraySection<ARRAY>fixedSegmentArraySection
(ARRAY... aSegmentArray) Constructs aFixedSegmentArraySection
with the givenSegment
elements.static <ARRAY extends Segment>
FixedSegmentArraySection<ARRAY>fixedSegmentArraySection
(Class<ARRAY> aSegmentClass) Constructs aFixedSegmentArraySection
with instances of the array being created using the providedClass
instance.static <ARRAY extends Segment>
FixedSegmentArraySection<ARRAY>fixedSegmentArraySection
(org.refcodes.factory.TypeFactory<ARRAY> aSegmentFactory) Constructs aFixedSegmentArraySection
with instances of the array being created using the providedTypeFactory
instance.static <ARRAY extends Segment>
FixedSegmentArraySection<ARRAY>fixedSegmentArraySection
(org.refcodes.factory.TypeFactory<ARRAY> aSegmentFactory, ARRAY... aSegmentArray) Constructs aFixedSegmentArraySection
with the given elements.static FloatArraySection
Constructs an emptyFloatArraySection
with aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theSection
's value.static FloatArraySection
floatArraySection
(float... aValue) Constructs aFloatArraySection
with the given float array payload and aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theFloatArraySection
's value.static FloatArraySection
floatArraySection
(Float... aValue) Constructs aFloatArraySection
with the given float array payload and aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theFloatArraySection
's value.static FloatArraySection
floatArraySection
(String aAlias) Constructs an emptyFloatArraySection
with aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theSection
's value.static FloatArraySection
floatArraySection
(String aAlias, float... aValue) Constructs aFloatArraySection
with the given float array payload and aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theFloatArraySection
's value.static FloatArraySection
floatArraySection
(String aAlias, Float... aValue) Constructs aFloatArraySection
with the given float array payload and aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theFloatArraySection
's value.static FloatArraySection
floatArraySection
(String aAlias, org.refcodes.numerical.Endianess aEndianess) Constructs an emptyFloatArraySection
with the givenEndianess
.static FloatArraySection
floatArraySection
(String aAlias, org.refcodes.numerical.Endianess aEndianess, float... aValue) Constructs aFloatArraySection
with the given float array payload and the givenEndianess
for the representation of theFloatArraySection
's value.static FloatArraySection
floatArraySection
(String aAlias, org.refcodes.numerical.Endianess aEndianess, Float... aValue) Constructs aFloatArraySection
with the given float array payload and the givenEndianess
for the representation of theFloatArraySection
's value.static FloatArraySection
floatArraySection
(String aAlias, TransmissionMetrics aTransmissionMetrics) Constructs an according instance from the given configuration.static FloatArraySection
floatArraySection
(String aAlias, TransmissionMetrics aTransmissionMetrics, float... aValue) Constructs an according instance from the given configuration.static FloatArraySection
floatArraySection
(String aAlias, TransmissionMetrics aTransmissionMetrics, Float... aValue) Constructs an according instance from the given configuration.static FloatArraySection
floatArraySection
(org.refcodes.numerical.Endianess aEndianess) Constructs an emptyFloatArraySection
with the givenEndianess
.static FloatArraySection
floatArraySection
(org.refcodes.numerical.Endianess aEndianess, float... aValue) Constructs aFloatArraySection
with the given float array payload and the givenEndianess
for the representation of theFloatArraySection
's value.static FloatArraySection
floatArraySection
(org.refcodes.numerical.Endianess aEndianess, Float... aValue) Constructs aFloatArraySection
with the given float array payload and the givenEndianess
for the representation of theFloatArraySection
's value.static FloatArraySection
floatArraySection
(TransmissionMetrics aTransmissionMetrics) Constructs an according instance from the given configuration.static FloatArraySection
floatArraySection
(TransmissionMetrics aTransmissionMetrics, float... aValue) Constructs an according instance from the given configuration.static FloatArraySection
floatArraySection
(TransmissionMetrics aTransmissionMetrics, Float... aValue) Constructs an according instance from the given configuration.static FloatSegment
Constructs an emptyFloatSegment
with aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theFloatSegment
's value.static FloatSegment
floatSegment
(Float aValue) Constructs aFloatSegment
with the given float payload and aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theFloatSegment
's value.static FloatSegment
floatSegment
(Float aValue, org.refcodes.numerical.Endianess aEndianess) Constructs aFloatSegment
with the given float payload and the givenEndianess
for the representation of theSegment
's value.static FloatSegment
floatSegment
(Float aValue, TransmissionMetrics aTransmissionMetrics) Constructs an according instance from the given configuration.static FloatSegment
floatSegment
(String aAlias) Constructs an emptyFloatSegment
with aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theFloatSegment
's value.static FloatSegment
floatSegment
(String aAlias, Float aValue) Constructs aFloatSegment
with the given float payload and aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theFloatSegment
's value.static FloatSegment
floatSegment
(String aAlias, Float aValue, org.refcodes.numerical.Endianess aEndianess) Constructs aFloatSegment
with the given float payload and the givenEndianess
for the representation of theSegment
's value.static FloatSegment
floatSegment
(String aAlias, Float aValue, TransmissionMetrics aTransmissionMetrics) Constructs an according instance from the given configuration.static FloatSegment
floatSegment
(String aAlias, org.refcodes.numerical.Endianess aEndianess) Constructs an emptyFloatSegment
with the givenEndianess
endian representation of theFloatSegment
's value.static FloatSegment
floatSegment
(String aAlias, TransmissionMetrics aTransmissionMetrics) Constructs an according instance from the given configuration.static FloatSegment
floatSegment
(org.refcodes.numerical.Endianess aEndianess) Constructs an emptyFloatSegment
with the givenEndianess
endian representation of theFloatSegment
's value.static FloatSegment
floatSegment
(TransmissionMetrics aTransmissionMetrics) Constructs an according instance from the given configuration.static IntArraySection
Constructs an emptyIntArraySection
with aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theSection
's value.static IntArraySection
intArraySection
(int... aValue) Constructs aIntArraySection
with the given int array payload and aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theIntArraySection
's value.static IntArraySection
intArraySection
(Integer... aValue) Constructs aIntArraySection
with the given int array payload and aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theIntArraySection
's value.static IntArraySection
intArraySection
(String aAlias) Constructs an emptyIntArraySection
with aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theSection
's value.static IntArraySection
intArraySection
(String aAlias, int... aValue) Constructs aIntArraySection
with the given int array payload and aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theIntArraySection
's value.static IntArraySection
intArraySection
(String aAlias, Integer... aValue) Constructs aIntArraySection
with the given int array payload and aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theIntArraySection
's value.static IntArraySection
intArraySection
(String aAlias, org.refcodes.numerical.Endianess aEndianess) Constructs an emptyIntArraySection
with the givenEndianess
.static IntArraySection
intArraySection
(String aAlias, org.refcodes.numerical.Endianess aEndianess, int... aValue) Constructs aIntArraySection
with the given int array payload and the givenEndianess
for the representation of theIntArraySection
's value.static IntArraySection
intArraySection
(String aAlias, org.refcodes.numerical.Endianess aEndianess, Integer... aValue) Constructs aIntArraySection
with the given int array payload and the givenEndianess
for the representation of theIntArraySection
's value.static IntArraySection
intArraySection
(String aAlias, TransmissionMetrics aTransmissionMetrics) Constructs an according instance from the given configuration.static IntArraySection
intArraySection
(String aAlias, TransmissionMetrics aTransmissionMetrics, int... aValue) Constructs an according instance from the given configuration.static IntArraySection
intArraySection
(String aAlias, TransmissionMetrics aTransmissionMetrics, Integer... aValue) Constructs an according instance from the given configuration.static IntArraySection
intArraySection
(org.refcodes.numerical.Endianess aEndianess) Constructs an emptyIntArraySection
with the givenEndianess
.static IntArraySection
intArraySection
(org.refcodes.numerical.Endianess aEndianess, int... aValue) Constructs aIntArraySection
with the given int array payload and the givenEndianess
for the representation of theIntArraySection
's value.static IntArraySection
intArraySection
(org.refcodes.numerical.Endianess aEndianess, Integer... aValue) Constructs aIntArraySection
with the given int array payload and the givenEndianess
for the representation of theIntArraySection
's value.static IntArraySection
intArraySection
(TransmissionMetrics aTransmissionMetrics) Constructs an according instance from the given configuration.static IntArraySection
intArraySection
(TransmissionMetrics aTransmissionMetrics, int... aValue) Constructs an according instance from the given configuration.static IntArraySection
intArraySection
(TransmissionMetrics aTransmissionMetrics, Integer... aValue) Constructs an according instance from the given configuration.static IntSegment
Constructs an emptyIntSegment
with aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theIntSegment
's value.static IntSegment
intSegment
(Integer aValue) Constructs aIntSegment
with the given int payload and aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theIntSegment
's value.static IntSegment
intSegment
(Integer aValue, org.refcodes.numerical.Endianess aEndianess) Constructs aIntSegment
with the given int payload and the givenEndianess
for the representation of theSegment
's value.static IntSegment
intSegment
(Integer aValue, TransmissionMetrics aTransmissionMetrics) Constructs an according instance from the given configuration.static IntSegment
intSegment
(String aAlias) Constructs an emptyIntSegment
with aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theIntSegment
's value.static IntSegment
intSegment
(String aAlias, Integer aValue) Constructs aIntSegment
with the given int payload and aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theIntSegment
's value.static IntSegment
intSegment
(String aAlias, Integer aValue, org.refcodes.numerical.Endianess aEndianess) Constructs aIntSegment
with the given int payload and the givenEndianess
for the representation of theSegment
's value.static IntSegment
intSegment
(String aAlias, Integer aValue, TransmissionMetrics aTransmissionMetrics) Constructs an according instance from the given configuration.static IntSegment
intSegment
(String aAlias, org.refcodes.numerical.Endianess aEndianess) Constructs an emptyIntSegment
with the givenEndianess
endian representation of theIntSegment
's value.static IntSegment
intSegment
(String aAlias, TransmissionMetrics aTransmissionMetrics) Constructs an according instance from the given configuration.static IntSegment
intSegment
(org.refcodes.numerical.Endianess aEndianess) Constructs an emptyIntSegment
with the givenEndianess
endian representation of theIntSegment
's value.static IntSegment
intSegment
(TransmissionMetrics aTransmissionMetrics) Constructs an according instance from the given configuration.static <DECORATEE extends Section>
InvertibleSectionDecorator<DECORATEE>invertibleSection
(DECORATEE aDecoratee, org.refcodes.numerical.BijectiveFunction<Byte, Byte> aBijectiveFunction, org.refcodes.numerical.InverseFunction<Byte, Byte> aInverseFunction) Constructs an invertible transmission decorator applying bijective and inverse functions upon the delegated methods.static <DECORATEE extends Section>
InvertibleSectionDecorator<DECORATEE>invertibleSection
(DECORATEE aDecoratee, org.refcodes.numerical.Invertible<Byte, Byte> aInvertible) Constructs an invertible transmission decorator applying bijective and inverse functions upon the delegated methods.static <DECORATEE extends Segment>
InvertibleSegmentDecorator<DECORATEE>invertibleSegment
(DECORATEE aDecoratee, org.refcodes.numerical.BijectiveFunction<Byte, Byte> aBijectiveFunction, org.refcodes.numerical.InverseFunction<Byte, Byte> aInverseFunction) Constructs an invertible transmission decorator applying bijective and inverse functions upon the delegated methods.static <DECORATEE extends Segment>
InvertibleSegmentDecorator<DECORATEE>invertibleSegment
(DECORATEE aDecoratee, org.refcodes.numerical.Invertible<Byte, Byte> aInvertible) Constructs an invertible transmission decorator applying bijective and inverse functions upon the delegated methods.static <DECORATEE extends Segment>
LengthSegmentDecoratorSegment<DECORATEE>lengthSegment
(DECORATEE aSegment) Constructs aLengthSegmentDecoratorSegment
with the given decoratee and a width ofTransmissionMetrics.DEFAULT_LENGTH_WIDTH
bytes used to specify the decoratee's length aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of the decoratee's length.static <DECORATEE extends Segment>
LengthSegmentDecoratorSegment<DECORATEE>lengthSegment
(DECORATEE aSegment, int aLengthWidth) Constructs aLengthSegmentDecoratorSegment
with the given decoratee and with the given number of bytes used to specify the decoratee's length and aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of the decoratee's length.static <DECORATEE extends Segment>
LengthSegmentDecoratorSegment<DECORATEE>lengthSegment
(DECORATEE aSegment, int aLengthWidth, org.refcodes.numerical.Endianess aEndianess) Constructs aLengthSegmentDecoratorSegment
with the given decoratee and with the given number of bytes used to specify the decoratee's length and the providedEndianess
representation of the decoratee's length.static <DECORATEE extends Segment>
LengthSegmentDecoratorSegment<DECORATEE>lengthSegment
(DECORATEE aSegment, org.refcodes.numerical.Endianess aEndianess) Constructs aLengthSegmentDecoratorSegment
with the given decoratee and a width ofTransmissionMetrics.DEFAULT_LENGTH_WIDTH
bytes used to specify the decoratee's length and the providedEndianess
representation of the decoratee's length.static <DECORATEE extends Segment>
LengthSegmentDecoratorSegment<DECORATEE>lengthSegment
(DECORATEE aSegment, TransmissionMetrics aTransmissionMetrics) Constructs aLengthSegmentDecoratorSegment
with the given decoratee and a width ofTransmissionMetrics.DEFAULT_LENGTH_WIDTH
bytes used to specify the decoratee's length aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of the decoratee's length.static LongArraySection
Constructs an emptyLongArraySection
with aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theSection
's value.static LongArraySection
longArraySection
(long... aValue) Constructs aLongArraySection
with the given long array payload and aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theLongArraySection
's value.static LongArraySection
longArraySection
(Long... aValue) Constructs aLongArraySection
with the given long array payload and aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theLongArraySection
's value.static LongArraySection
longArraySection
(String aAlias) Constructs an emptyLongArraySection
with aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theSection
's value.static LongArraySection
longArraySection
(String aAlias, long... aValue) Constructs aLongArraySection
with the given long array payload and aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theLongArraySection
's value.static LongArraySection
longArraySection
(String aAlias, Long... aValue) Constructs aLongArraySection
with the given long array payload and aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theLongArraySection
's value.static LongArraySection
longArraySection
(String aAlias, org.refcodes.numerical.Endianess aEndianess) Constructs an emptyLongArraySection
with the givenEndianess
.static LongArraySection
longArraySection
(String aAlias, org.refcodes.numerical.Endianess aEndianess, long... aValue) Constructs aLongArraySection
with the given long array payload and the givenEndianess
for the representation of theLongArraySection
's value.static LongArraySection
longArraySection
(String aAlias, org.refcodes.numerical.Endianess aEndianess, Long... aValue) Constructs aLongArraySection
with the given long array payload and the givenEndianess
for the representation of theLongArraySection
's value.static LongArraySection
longArraySection
(String aAlias, TransmissionMetrics aTransmissionMetrics) Constructs an according instance from the given configuration.static LongArraySection
longArraySection
(String aAlias, TransmissionMetrics aTransmissionMetrics, long... aValue) Constructs an according instance from the given configuration.static LongArraySection
longArraySection
(String aAlias, TransmissionMetrics aTransmissionMetrics, Long... aValue) Constructs an according instance from the given configuration.static LongArraySection
longArraySection
(org.refcodes.numerical.Endianess aEndianess) Constructs an emptyLongArraySection
with the givenEndianess
.static LongArraySection
longArraySection
(org.refcodes.numerical.Endianess aEndianess, long... aValue) Constructs aLongArraySection
with the given long array payload and the givenEndianess
for the representation of theLongArraySection
's value.static LongArraySection
longArraySection
(org.refcodes.numerical.Endianess aEndianess, Long... aValue) Constructs aLongArraySection
with the given long array payload and the givenEndianess
for the representation of theLongArraySection
's value.static LongArraySection
longArraySection
(TransmissionMetrics aTransmissionMetrics) Constructs an according instance from the given configuration.static LongArraySection
longArraySection
(TransmissionMetrics aTransmissionMetrics, long... aValue) Constructs an according instance from the given configuration.static LongArraySection
longArraySection
(TransmissionMetrics aTransmissionMetrics, Long... aValue) Constructs an according instance from the given configuration.static LongSegment
Constructs an emptyLongSegment
with aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theLongSegment
's value.static LongSegment
longSegment
(Long aValue) Constructs aLongSegment
with the given long payload and aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theLongSegment
's value.static LongSegment
longSegment
(Long aValue, org.refcodes.numerical.Endianess aEndianess) Constructs aLongSegment
with the given long payload and the givenEndianess
for the representation of theSegment
's value.static LongSegment
longSegment
(Long aValue, TransmissionMetrics aTransmissionMetrics) Constructs an according instance from the given configuration.static LongSegment
longSegment
(String aAlias) Constructs an emptyLongSegment
with aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theLongSegment
's value.static LongSegment
longSegment
(String aAlias, Long aValue) Constructs aLongSegment
with the given long payload and aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theLongSegment
's value.static LongSegment
longSegment
(String aAlias, Long aValue, org.refcodes.numerical.Endianess aEndianess) Constructs aLongSegment
with the given long payload and the givenEndianess
for the representation of theSegment
's value.static LongSegment
longSegment
(String aAlias, Long aValue, TransmissionMetrics aTransmissionMetrics) Constructs an according instance from the given configuration.static LongSegment
longSegment
(String aAlias, org.refcodes.numerical.Endianess aEndianess) Constructs an emptyLongSegment
with the givenEndianess
endian representation of theLongSegment
's value.static LongSegment
longSegment
(String aAlias, TransmissionMetrics aTransmissionMetrics) Constructs an according instance from the given configuration.static LongSegment
longSegment
(org.refcodes.numerical.Endianess aEndianess) Constructs an emptyLongSegment
with the givenEndianess
endian representation of theLongSegment
's value.static LongSegment
longSegment
(TransmissionMetrics aTransmissionMetrics) Constructs an according instance from the given configuration.static <DECORATEE extends Section>
MagicBytesSectionDecorator<DECORATEE>magicBytesSection
(DECORATEE aDecoratee, byte... aMagicBytes) Enriches the providedSection
with the given magic bytes being prefixed.static <DECORATEE extends Section>
MagicBytesSectionDecorator<DECORATEE>magicBytesSection
(DECORATEE aDecoratee, int aMagicBytesLength) Enriches the providedSection
with magic bytes of the given length to be prefixed.static <DECORATEE extends Section>
MagicBytesSectionDecorator<DECORATEE>magicBytesSection
(DECORATEE aDecoratee, String aMagicBytes) static <DECORATEE extends Section>
MagicBytesSectionDecorator<DECORATEE>magicBytesSection
(DECORATEE aDecoratee, String aMagicBytes, Charset aCharset) static <DECORATEE extends Section>
MagicBytesSectionDecorator<DECORATEE>magicBytesSection
(String aAlias, DECORATEE aDecoratee, byte... aMagicBytes) Enriches the providedSection
with the given magic bytes being prefixed.static <DECORATEE extends Section>
MagicBytesSectionDecorator<DECORATEE>magicBytesSection
(String aAlias, DECORATEE aDecoratee, int aMagicBytesLength) Enriches the providedSection
with magic bytes of the given length to be prefixed.static <DECORATEE extends Section>
MagicBytesSectionDecorator<DECORATEE>magicBytesSection
(String aAlias, DECORATEE aDecoratee, String aMagicBytes) static <DECORATEE extends Section>
MagicBytesSectionDecorator<DECORATEE>magicBytesSection
(String aAlias, DECORATEE aDecoratee, String aMagicBytes, Charset aCharset) static MagicBytesSectionMultiplexer
magicBytesSectionMultiplexer
(int aReadLimit, Section... aSections) Constructs aMagicBytesSectionMultiplexer
containing the providedSection
elements.static MagicBytesSectionMultiplexer
magicBytesSectionMultiplexer
(Collection<Section> aSections) Constructs aMagicBytesSectionMultiplexer
containing the providedSection
elements.static MagicBytesSectionMultiplexer
magicBytesSectionMultiplexer
(Collection<Section> aSections, int aReadLimit) Constructs aMagicBytesSectionMultiplexer
containing the providedSection
elements.static MagicBytesSectionMultiplexer
magicBytesSectionMultiplexer
(Section... aSections) Constructs aMagicBytesSectionMultiplexer
containing the providedSection
elements.static MagicBytesSegment
magicBytesSegment
(byte... aMagicBytes) Constructs anAbstractMagicBytesTransmission
with the according magic bytes.static MagicBytesSegment
magicBytesSegment
(byte[] aMagicBytes, TransmissionMetrics aTransmissionMetrics) Constructs an according instance for magic bytes of the given length.static MagicBytesSegment
magicBytesSegment
(int aMagicBytesLength) Constructs anAbstractMagicBytesTransmission
with magic bytes of the given length.static <DECORATEE extends Segment>
MagicBytesSegmentDecorator<DECORATEE>magicBytesSegment
(DECORATEE aDecoratee, byte... aMagicBytes) Enriches the providedSegment
with the given magic bytes being prefixed.static <DECORATEE extends Segment>
MagicBytesSegmentDecorator<DECORATEE>magicBytesSegment
(DECORATEE aDecoratee, int aMagicBytesLength) Enriches the providedSegment
with magic bytes of the given length to be prefixed.static <DECORATEE extends Segment>
MagicBytesSegmentDecorator<DECORATEE>magicBytesSegment
(DECORATEE aDecoratee, String aMagicBytes) static <DECORATEE extends Segment>
MagicBytesSegmentDecorator<DECORATEE>magicBytesSegment
(DECORATEE aDecoratee, String aMagicBytes, Charset aCharset) static <DECORATEE extends Segment>
MagicBytesSegmentDecorator<DECORATEE>magicBytesSegment
(DECORATEE aDecoratee, TransmissionMetrics aTransmissionMetrics) Enriches the provided decoratee with magic bytes of the given length to be prefixed.static MagicBytesSegment
magicBytesSegment
(String aMagicBytes) Constructs anAbstractMagicBytesTransmission
with the according magic bytes (retrieved from the givenString
).static MagicBytesSegment
magicBytesSegment
(String aAlias, byte... aMagicBytes) Constructs anAbstractMagicBytesTransmission
with the according magic bytes.static MagicBytesSegment
magicBytesSegment
(String aAlias, byte[] aMagicBytes, TransmissionMetrics aTransmissionMetrics) Constructs an according instance for magic bytes of the given length.static MagicBytesSegment
magicBytesSegment
(String aAlias, int aMagicBytesLength) Constructs anAbstractMagicBytesTransmission
with magic bytes of the given length.static <DECORATEE extends Segment>
MagicBytesSegmentDecorator<DECORATEE>magicBytesSegment
(String aAlias, DECORATEE aDecoratee, byte... aMagicBytes) Enriches the providedSegment
with the given magic bytes being prefixed.static <DECORATEE extends Segment>
MagicBytesSegmentDecorator<DECORATEE>magicBytesSegment
(String aAlias, DECORATEE aDecoratee, int aMagicBytesLength) Enriches the providedSegment
with magic bytes of the given length to be prefixed.static <DECORATEE extends Segment>
MagicBytesSegmentDecorator<DECORATEE>magicBytesSegment
(String aAlias, DECORATEE aDecoratee, String aMagicBytes) static <DECORATEE extends Segment>
MagicBytesSegmentDecorator<DECORATEE>magicBytesSegment
(String aAlias, DECORATEE aDecoratee, String aMagicBytes, Charset aCharset) static <DECORATEE extends Segment>
MagicBytesSegmentDecorator<DECORATEE>magicBytesSegment
(String aAlias, DECORATEE aDecoratee, TransmissionMetrics aTransmissionMetrics) Enriches the provided decoratee with magic bytes of the given length to be prefixed.static MagicBytesSegment
magicBytesSegment
(String aAlias, String aMagicBytes) Constructs anAbstractMagicBytesTransmission
with the according magic bytes (retrieved from the givenString
).static MagicBytesSegment
magicBytesSegment
(String aAlias, String aMagicBytes, Charset aCharset) Constructs anAbstractMagicBytesTransmission
with the according magic bytes (retrieved from the givenString
).static MagicBytesSegment
magicBytesSegment
(String aAlias, String aMagicBytes, TransmissionMetrics aTransmissionMetrics) Constructs an according instance for magic bytes of the given length.static MagicBytesSegment
magicBytesSegment
(String aMagicBytes, Charset aCharset) Constructs anAbstractMagicBytesTransmission
with the according magic bytes (retrieved from the givenString
).static MagicBytesSegment
magicBytesSegment
(TransmissionMetrics aTransmissionMetrics) Constructs an according instance for magic bytes of the given length.static MagicBytesSegment
magicBytesSegment
(TransmissionMetrics aTransmissionMetrics, String aMagicBytes) Constructs an according instance for magic bytes of the given length.static MagicBytesSegmentMultiplexer
magicBytesSegmentMultiplexer
(int aReadLimit, Segment... aSegments) Constructs aMagicBytesSegmentMultiplexer
containing the providedSegment
elements.static MagicBytesSegmentMultiplexer
magicBytesSegmentMultiplexer
(Collection<Segment> aSegments) Constructs aMagicBytesSegmentMultiplexer
containing the providedSegment
elements.static MagicBytesSegmentMultiplexer
magicBytesSegmentMultiplexer
(Collection<Segment> aSegments, int aReadLimit) Constructs aMagicBytesSegmentMultiplexer
containing the providedSegment
elements.static MagicBytesSegmentMultiplexer
magicBytesSegmentMultiplexer
(Segment... aSegments) Constructs aMagicBytesSegmentMultiplexer
containing the providedSegment
elements.static NullSegment
static NumberSegment
numberSegment
(int aNumberWidth) Constructs an emptyNumberSegment
with aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theNumberSegment
's value.static NumberSegment
numberSegment
(int aNumberWidth, Long aValue) Constructs aNumberSegment
with the given long payload and aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theNumberSegment
's value.static NumberSegment
numberSegment
(int aNumberWidth, Long aValue, org.refcodes.numerical.Endianess aEndianess) Constructs aNumberSegment
with the given long payload and the givenEndianess
for the representation of theNumberSegment
's value (payload).static NumberSegment
numberSegment
(int aNumberWidth, Long aValue, TransmissionMetrics aTransmissionMetrics) Constructs an according instance from the given configuration.static NumberSegment
numberSegment
(int aNumberWidth, String aAlias) Constructs an emptyNumberSegment
with aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theNumberSegment
's value.static NumberSegment
numberSegment
(int aNumberWidth, String aAlias, Long aValue) Constructs aNumberSegment
with the given long payload and aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theNumberSegment
's value.static NumberSegment
numberSegment
(int aNumberWidth, String aAlias, Long aValue, org.refcodes.numerical.Endianess aEndianess) Constructs aNumberSegment
with the given long payload and the givenEndianess
for the representation of theNumberSegment
's value (payload).static NumberSegment
numberSegment
(int aNumberWidth, String aAlias, Long aValue, TransmissionMetrics aTransmissionMetrics) Constructs an according instance from the given configuration.static NumberSegment
numberSegment
(int aNumberWidth, String aAlias, org.refcodes.numerical.Endianess aEndianess) Constructs an emptyNumberSegment
with the givenEndianess
.static NumberSegment
numberSegment
(int aNumberWidth, String aAlias, TransmissionMetrics aTransmissionMetrics) Constructs an according instance from the given configuration.static NumberSegment
numberSegment
(int aNumberWidth, org.refcodes.numerical.Endianess aEndianess) Constructs an emptyNumberSegment
with the givenEndianess
.static NumberSegment
numberSegment
(int aNumberWidth, TransmissionMetrics aTransmissionMetrics) Constructs an according instance from the given configuration.static PropertiesSection
Constructs an emptyPropertiesSection
using UTF-8 encoding for the payload.static PropertiesSection
propertiesSection
(String aAlias) Constructs an emptyPropertiesSection
using UTF-8 encoding for the payload.static PropertiesSection
propertiesSection
(String aAlias, Charset aCharset) Constructs aPropertiesSection
with a payload expected to be encoded with the givenCharset
.static PropertiesSection
propertiesSection
(String aAlias, org.refcodes.properties.Properties aPayload) Constructs aPropertiesSection
with the givenProperties
payload being UTF-8 encoded.static PropertiesSection
propertiesSection
(String aAlias, org.refcodes.properties.Properties aPayload, Charset aCharset) Constructs aPropertiesSection
with the givenProperties
payload being encoded with the givenCharset
.static PropertiesSection
propertiesSection
(String aAlias, org.refcodes.properties.Properties aPayload, TransmissionMetrics aTransmissionMetrics) Constructs aPropertiesSection
with the givenProperties
payload being encoded with the givenCharset
.static PropertiesSection
propertiesSection
(Charset aCharset) Constructs aPropertiesSection
with a payload expected to be encoded with the givenCharset
.static PropertiesSection
propertiesSection
(org.refcodes.properties.Properties aPayload) Constructs aPropertiesSection
with the givenProperties
payload being UTF-8 encoded.static PropertiesSection
propertiesSection
(org.refcodes.properties.Properties aPayload, Charset aCharset) Constructs aPropertiesSection
with the givenProperties
payload being encoded with the givenCharset
.static PropertiesSection
propertiesSection
(org.refcodes.properties.Properties aPayload, TransmissionMetrics aTransmissionMetrics) Constructs aPropertiesSection
with the givenProperties
payload being encoded with the givenCharset
.static <DECORATEE extends Section>
ReadyToReceiveSectionDecorator<DECORATEE>readyToReceiveSection
(DECORATEE aDecoratee) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
ReadyToReceiveSectionDecorator<DECORATEE>readyToReceiveSection
(DECORATEE aDecoratee, byte aReadyToReceiveMagicBytes) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
ReadyToReceiveSectionDecorator<DECORATEE>readyToReceiveSection
(DECORATEE aDecoratee, byte aReadyToReceiveMagicBytes, int aReadyToReceiveRetryNumber) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
ReadyToReceiveSectionDecorator<DECORATEE>readyToReceiveSection
(DECORATEE aDecoratee, byte aReadyToReceiveMagicBytes, int aReadyToReceiveRetryNumber, long aReadyToReceiveTimeoutInMs, SegmentPackager aReadyToReceiveSegmentPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
ReadyToReceiveSectionDecorator<DECORATEE>readyToReceiveSection
(DECORATEE aDecoratee, byte aReadyToReceiveMagicBytes, int aReadyToReceiveRetryNumber, SegmentPackager aReadyToReceiveSegmentPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
ReadyToReceiveSectionDecorator<DECORATEE>readyToReceiveSection
(DECORATEE aDecoratee, byte aReadyToReceiveMagicBytes, long aReadyToReceiveTimeoutInMs) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
ReadyToReceiveSectionDecorator<DECORATEE>readyToReceiveSection
(DECORATEE aDecoratee, byte aReadyToReceiveMagicBytes, long aReadyToReceiveTimeoutInMs, SegmentPackager aReadyToReceiveSegmentPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
ReadyToReceiveSectionDecorator<DECORATEE>readyToReceiveSection
(DECORATEE aDecoratee, byte aReadyToReceiveMagicBytes, SegmentPackager aReadyToReceiveSegmentPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
ReadyToReceiveSectionDecorator<DECORATEE>readyToReceiveSection
(DECORATEE aDecoratee, int aReadyToReceiveRetryNumber, long aReadyToReceiveTimeoutInMs) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
ReadyToReceiveSectionDecorator<DECORATEE>readyToReceiveSection
(DECORATEE aDecoratee, int aReadyToReceiveRetryNumber, long aReadyToReceiveTimeoutInMs, SegmentPackager aReadyToReceiveSegmentPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
ReadyToReceiveSectionDecorator<DECORATEE>readyToReceiveSection
(DECORATEE aDecoratee, long aReadyToReceiveTimeoutInMs) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
ReadyToReceiveSectionDecorator<DECORATEE>readyToReceiveSection
(DECORATEE aDecoratee, long aCtsTimeoutInMs, byte aReadyToReceiveMagicBytes) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
ReadyToReceiveSectionDecorator<DECORATEE>readyToReceiveSection
(DECORATEE aDecoratee, long aCtsTimeoutInMs, byte[] aReadyToReceiveMagicBytes, int aReadyToReceiveRetryNumber, long aReadyToReceiveTimeoutInMs, SegmentPackager aReadyToReceiveSegmentPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
ReadyToReceiveSectionDecorator<DECORATEE>readyToReceiveSection
(DECORATEE aDecoratee, long aCtsTimeoutInMs, byte aReadyToReceiveMagicBytes, int aReadyToReceiveRetryNumber) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
ReadyToReceiveSectionDecorator<DECORATEE>readyToReceiveSection
(DECORATEE aDecoratee, long aCtsTimeoutInMs, byte aReadyToReceiveMagicBytes, int aReadyToReceiveRetryNumber, SegmentPackager aReadyToReceiveSegmentPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
ReadyToReceiveSectionDecorator<DECORATEE>readyToReceiveSection
(DECORATEE aDecoratee, long aCtsTimeoutInMs, byte aReadyToReceiveMagicBytes, long aReadyToReceiveTimeoutInMs) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
ReadyToReceiveSectionDecorator<DECORATEE>readyToReceiveSection
(DECORATEE aDecoratee, long aCtsTimeoutInMs, byte aReadyToReceiveMagicBytes, long aReadyToReceiveTimeoutInMs, SegmentPackager aReadyToReceiveSegmentPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
ReadyToReceiveSectionDecorator<DECORATEE>readyToReceiveSection
(DECORATEE aDecoratee, long aCtsTimeoutInMs, byte aReadyToReceiveMagicBytes, SegmentPackager aReadyToReceiveSegmentPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
ReadyToReceiveSectionDecorator<DECORATEE>readyToReceiveSection
(DECORATEE aDecoratee, long aCtsTimeoutInMs, int aReadyToReceiveRetryNumber, long aReadyToReceiveTimeoutInMs) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
ReadyToReceiveSectionDecorator<DECORATEE>readyToReceiveSection
(DECORATEE aDecoratee, long aCtsTimeoutInMs, int aReadyToReceiveRetryNumber, long aReadyToReceiveTimeoutInMs, SegmentPackager aReadyToReceiveSegmentPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
ReadyToReceiveSectionDecorator<DECORATEE>readyToReceiveSection
(DECORATEE aDecoratee, long aCtsTimeoutInMs, long aReadyToReceiveTimeoutInMs) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
ReadyToReceiveSectionDecorator<DECORATEE>readyToReceiveSection
(DECORATEE aDecoratee, long aCtsTimeoutInMs, long aReadyToReceiveTimeoutInMs, SegmentPackager aReadyToReceiveSegmentPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
ReadyToReceiveSectionDecorator<DECORATEE>readyToReceiveSection
(DECORATEE aDecoratee, long aReadyToReceiveTimeoutInMs, SegmentPackager aReadyToReceiveSegmentPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
ReadyToReceiveSectionDecorator<DECORATEE>readyToReceiveSection
(DECORATEE aDecoratee, TransmissionMetrics aTransmissionMetrics) Constructs an according control-flow decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
ReadyToReceiveSegmentDecorator<DECORATEE>readyToReceiveSegment
(DECORATEE aDecoratee) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
ReadyToReceiveSegmentDecorator<DECORATEE>readyToReceiveSegment
(DECORATEE aDecoratee, byte aReadyToReceiveMagicBytes) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
ReadyToReceiveSegmentDecorator<DECORATEE>readyToReceiveSegment
(DECORATEE aDecoratee, byte aReadyToReceiveMagicBytes, int aReadyToReceiveRetryNumber) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
ReadyToReceiveSegmentDecorator<DECORATEE>readyToReceiveSegment
(DECORATEE aDecoratee, byte aReadyToReceiveMagicBytes, int aReadyToReceiveRetryNumber, long aReadyToReceiveTimeoutInMs, SegmentPackager aReadyToReceiveSegmentPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
ReadyToReceiveSegmentDecorator<DECORATEE>readyToReceiveSegment
(DECORATEE aDecoratee, byte aReadyToReceiveMagicBytes, int aReadyToReceiveRetryNumber, SegmentPackager aReadyToReceiveSegmentPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
ReadyToReceiveSegmentDecorator<DECORATEE>readyToReceiveSegment
(DECORATEE aDecoratee, byte aReadyToReceiveMagicBytes, long aReadyToReceiveTimeoutInMs) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
ReadyToReceiveSegmentDecorator<DECORATEE>readyToReceiveSegment
(DECORATEE aDecoratee, byte aReadyToReceiveMagicBytes, long aReadyToReceiveTimeoutInMs, SegmentPackager aReadyToReceiveSegmentPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
ReadyToReceiveSegmentDecorator<DECORATEE>readyToReceiveSegment
(DECORATEE aDecoratee, byte aReadyToReceiveMagicBytes, SegmentPackager aReadyToReceiveSegmentPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
ReadyToReceiveSegmentDecorator<DECORATEE>readyToReceiveSegment
(DECORATEE aDecoratee, int aReadyToReceiveRetryNumber, long aReadyToReceiveTimeoutInMs) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
ReadyToReceiveSegmentDecorator<DECORATEE>readyToReceiveSegment
(DECORATEE aDecoratee, int aReadyToReceiveRetryNumber, long aReadyToReceiveTimeoutInMs, SegmentPackager aReadyToReceiveSegmentPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
ReadyToReceiveSegmentDecorator<DECORATEE>readyToReceiveSegment
(DECORATEE aDecoratee, long aCtsTimeoutInMs) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
ReadyToReceiveSegmentDecorator<DECORATEE>readyToReceiveSegment
(DECORATEE aDecoratee, long aCtsTimeoutInMs, byte aReadyToReceiveMagicBytes) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
ReadyToReceiveSegmentDecorator<DECORATEE>readyToReceiveSegment
(DECORATEE aDecoratee, long aCtsTimeoutInMs, byte[] aReadyToReceiveMagicBytes, int aReadyToReceiveRetryNumber, long aReadyToReceiveTimeoutInMs, SegmentPackager aReadyToReceiveSegmentPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
ReadyToReceiveSegmentDecorator<DECORATEE>readyToReceiveSegment
(DECORATEE aDecoratee, long aCtsTimeoutInMs, byte aReadyToReceiveMagicBytes, int aReadyToReceiveRetryNumber) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
ReadyToReceiveSegmentDecorator<DECORATEE>readyToReceiveSegment
(DECORATEE aDecoratee, long aCtsTimeoutInMs, byte aReadyToReceiveMagicBytes, int aReadyToReceiveRetryNumber, SegmentPackager aReadyToReceiveSegmentPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
ReadyToReceiveSegmentDecorator<DECORATEE>readyToReceiveSegment
(DECORATEE aDecoratee, long aCtsTimeoutInMs, byte aReadyToReceiveMagicBytes, long aReadyToReceiveTimeoutInMs) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
ReadyToReceiveSegmentDecorator<DECORATEE>readyToReceiveSegment
(DECORATEE aDecoratee, long aCtsTimeoutInMs, byte aReadyToReceiveMagicBytes, long aReadyToReceiveTimeoutInMs, SegmentPackager aReadyToReceiveSegmentPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
ReadyToReceiveSegmentDecorator<DECORATEE>readyToReceiveSegment
(DECORATEE aDecoratee, long aCtsTimeoutInMs, byte aReadyToReceiveMagicBytes, SegmentPackager aReadyToReceiveSegmentPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
ReadyToReceiveSegmentDecorator<DECORATEE>readyToReceiveSegment
(DECORATEE aDecoratee, long aCtsTimeoutInMs, int aReadyToReceiveRetryNumber, long aReadyToReceiveTimeoutInMs) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
ReadyToReceiveSegmentDecorator<DECORATEE>readyToReceiveSegment
(DECORATEE aDecoratee, long aCtsTimeoutInMs, int aReadyToReceiveRetryNumber, long aReadyToReceiveTimeoutInMs, SegmentPackager aReadyToReceiveSegmentPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
ReadyToReceiveSegmentDecorator<DECORATEE>readyToReceiveSegment
(DECORATEE aDecoratee, long aCtsTimeoutInMs, long aReadyToReceiveTimeoutInMs) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
ReadyToReceiveSegmentDecorator<DECORATEE>readyToReceiveSegment
(DECORATEE aDecoratee, long aCtsTimeoutInMs, long aReadyToReceiveTimeoutInMs, SegmentPackager aReadyToReceiveSegmentPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
ReadyToReceiveSegmentDecorator<DECORATEE>readyToReceiveSegment
(DECORATEE aDecoratee, long aReadyToReceiveTimeoutInMs, SegmentPackager aReadyToReceiveSegmentPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
ReadyToReceiveSegmentDecorator<DECORATEE>readyToReceiveSegment
(DECORATEE aDecoratee, TransmissionMetrics aTransmissionMetrics) Constructs an according control-flow decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
ReadyToSendSectionDecorator<DECORATEE>readyToSendSection
(DECORATEE aDecoratee) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
ReadyToSendSectionDecorator<DECORATEE>readyToSendSection
(DECORATEE aDecoratee, byte[] aReadyToSendMagicBytes, byte[] aClearToSendMagicBytes) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
ReadyToSendSectionDecorator<DECORATEE>readyToSendSection
(DECORATEE aDecoratee, byte[] aReadyToSendMagicBytes, int aReadyToSendRetryNumber, byte[] aClearToSendMagicBytes) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
ReadyToSendSectionDecorator<DECORATEE>readyToSendSection
(DECORATEE aDecoratee, byte[] aReadyToSendMagicBytes, int aReadyToSendRetryNumber, long aReadyToSendTimeoutInMs, SegmentPackager aReadyToSendSectionPackager, byte[] aClearToSendMagicBytes, long aClearToSendTimeoutInMs, SegmentPackager aClearToSendSectionPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
ReadyToSendSectionDecorator<DECORATEE>readyToSendSection
(DECORATEE aDecoratee, byte[] aReadyToSendMagicBytes, int aReadyToSendRetryNumber, SegmentPackager aReadyToSendSectionPackager, byte[] aClearToSendMagicBytes, SegmentPackager aClearToSendSectionPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
ReadyToSendSectionDecorator<DECORATEE>readyToSendSection
(DECORATEE aDecoratee, byte[] aReadyToSendMagicBytes, long aReadyToSendTimeoutInMs, byte[] aClearToSendMagicBytes, long aClearToSendTimeoutInMs) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
ReadyToSendSectionDecorator<DECORATEE>readyToSendSection
(DECORATEE aDecoratee, byte[] aReadyToSendMagicBytes, long aReadyToSendTimeoutInMs, SegmentPackager aReadyToSendSectionPackager, byte[] aClearToSendMagicBytes, long aClearToSendTimeoutInMs, SegmentPackager aClearToSendSectionPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
ReadyToSendSectionDecorator<DECORATEE>readyToSendSection
(DECORATEE aDecoratee, byte[] aReadyToSendMagicBytes, SegmentPackager aReadyToSendSectionPackager, byte[] aClearToSendMagicBytes, SegmentPackager aClearToSendSectionPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
ReadyToSendSectionDecorator<DECORATEE>readyToSendSection
(DECORATEE aDecoratee, int aReadyToSendRetryNumber, long aReadyToSendTimeoutInMs, long aClearToSendTimeoutInMs) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
ReadyToSendSectionDecorator<DECORATEE>readyToSendSection
(DECORATEE aDecoratee, int aReadyToSendRetryNumber, long aReadyToSendTimeoutInMs, SegmentPackager aReadyToSendSectionPackager, long aClearToSendTimeoutInMs, SegmentPackager aClearToSendSectionPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
ReadyToSendSectionDecorator<DECORATEE>readyToSendSection
(DECORATEE aDecoratee, long aEnquiryStandbyTimeInMs) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
ReadyToSendSectionDecorator<DECORATEE>readyToSendSection
(DECORATEE aDecoratee, long aEnquiryStandbyTimeInMs, byte[] aReadyToSendMagicBytes, byte[] aClearToSendMagicBytes) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
ReadyToSendSectionDecorator<DECORATEE>readyToSendSection
(DECORATEE aDecoratee, long aEnquiryStandbyTimeInMs, byte[] aReadyToSendMagicBytes, int aReadyToSendRetryNumber, byte[] aClearToSendMagicBytes) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
ReadyToSendSectionDecorator<DECORATEE>readyToSendSection
(DECORATEE aDecoratee, long aEnquiryStandbyTimeInMs, byte[] aReadyToSendMagicBytes, int aReadyToSendRetryNumber, long aReadyToSendTimeoutInMs, SegmentPackager aReadyToSendSectionPackager, byte[] aClearToSendMagicBytes, long aClearToSendTimeoutInMs, SegmentPackager aClearToSendSectionPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
ReadyToSendSectionDecorator<DECORATEE>readyToSendSection
(DECORATEE aDecoratee, long aEnquiryStandbyTimeInMs, byte[] aReadyToSendMagicBytes, int aReadyToSendRetryNumber, SegmentPackager aReadyToSendSectionPackager, byte[] aClearToSendMagicBytes, SegmentPackager aClearToSendSectionPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
ReadyToSendSectionDecorator<DECORATEE>readyToSendSection
(DECORATEE aDecoratee, long aEnquiryStandbyTimeInMs, byte[] aReadyToSendMagicBytes, long aReadyToSendTimeoutInMs, byte[] aClearToSendMagicBytes, long aClearToSendTimeoutInMs) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
ReadyToSendSectionDecorator<DECORATEE>readyToSendSection
(DECORATEE aDecoratee, long aEnquiryStandbyTimeInMs, byte[] aReadyToSendMagicBytes, long aReadyToSendTimeoutInMs, SegmentPackager aReadyToSendSectionPackager, byte[] aClearToSendMagicBytes, long aClearToSendTimeoutInMs, SegmentPackager aClearToSendSectionPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
ReadyToSendSectionDecorator<DECORATEE>readyToSendSection
(DECORATEE aDecoratee, long aEnquiryStandbyTimeInMs, byte[] aReadyToSendMagicBytes, SegmentPackager aReadyToSendSectionPackager, byte[] aClearToSendMagicBytes, SegmentPackager aClearToSendSectionPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
ReadyToSendSectionDecorator<DECORATEE>readyToSendSection
(DECORATEE aDecoratee, long aEnquiryStandbyTimeInMs, int aReadyToSendRetryNumber, long aReadyToSendTimeoutInMs, long aClearToSendTimeoutInMs) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
ReadyToSendSectionDecorator<DECORATEE>readyToSendSection
(DECORATEE aDecoratee, long aEnquiryStandbyTimeInMs, int aReadyToSendRetryNumber, long aReadyToSendTimeoutInMs, SegmentPackager aReadyToSendSectionPackager, long aClearToSendTimeoutInMs, SegmentPackager aClearToSendSectionPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
ReadyToSendSectionDecorator<DECORATEE>readyToSendSection
(DECORATEE aDecoratee, long aEnquiryStandbyTimeInMs, long aReadyToSendTimeoutInMs, long aClearToSendTimeoutInMs) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
ReadyToSendSectionDecorator<DECORATEE>readyToSendSection
(DECORATEE aDecoratee, long aEnquiryStandbyTimeInMs, long aReadyToSendTimeoutInMs, SegmentPackager aReadyToSendSectionPackager, long aClearToSendTimeoutInMs, SegmentPackager aClearToSendSectionPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
ReadyToSendSectionDecorator<DECORATEE>readyToSendSection
(DECORATEE aDecoratee, long aReadyToSendTimeoutInMs, SegmentPackager aReadyToSendSectionPackager, long aClearToSendTimeoutInMs, SegmentPackager aClearToSendSectionPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
ReadyToSendSectionDecorator<DECORATEE>readyToSendSection
(DECORATEE aDecoratee, TransmissionMetrics aTransmissionMetrics) Constructs an according control-flow decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
ReadyToSendSectionDecorator.Builder<DECORATEE>Constructs a builder to build an accordingReadyToSendSectionDecorator
instance.static <DECORATEE extends Segment>
ReadyToSendSegmentDecorator<DECORATEE>readyToSendSegment
(DECORATEE aDecoratee) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
ReadyToSendSegmentDecorator<DECORATEE>readyToSendSegment
(DECORATEE aDecoratee, byte[] aReadyToSendMagicBytes, byte[] aClearToSendMagicBytes) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
ReadyToSendSegmentDecorator<DECORATEE>readyToSendSegment
(DECORATEE aDecoratee, byte[] aReadyToSendMagicBytes, int aReadyToSendRetryNumber, byte[] aClearToSendMagicBytes) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
ReadyToSendSegmentDecorator<DECORATEE>readyToSendSegment
(DECORATEE aDecoratee, byte[] aReadyToSendMagicBytes, int aReadyToSendRetryNumber, long aReadyToSendTimeoutInMs, SegmentPackager aReadyToSendSegmentPackager, byte[] aClearToSendMagicBytes, long aClearToSendTimeoutInMs, SegmentPackager aClearToSendSegmentPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
ReadyToSendSegmentDecorator<DECORATEE>readyToSendSegment
(DECORATEE aDecoratee, byte[] aReadyToSendMagicBytes, int aReadyToSendRetryNumber, SegmentPackager aReadyToSendSegmentPackager, byte[] aClearToSendMagicBytes, SegmentPackager aClearToSendSegmentPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
ReadyToSendSegmentDecorator<DECORATEE>readyToSendSegment
(DECORATEE aDecoratee, byte[] aReadyToSendMagicBytes, long aReadyToSendTimeoutInMs, byte[] aClearToSendMagicBytes, long aClearToSendTimeoutInMs) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
ReadyToSendSegmentDecorator<DECORATEE>readyToSendSegment
(DECORATEE aDecoratee, byte[] aReadyToSendMagicBytes, long aReadyToSendTimeoutInMs, SegmentPackager aReadyToSendSegmentPackager, byte[] aClearToSendMagicBytes, long aClearToSendTimeoutInMs, SegmentPackager aClearToSendSegmentPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
ReadyToSendSegmentDecorator<DECORATEE>readyToSendSegment
(DECORATEE aDecoratee, byte[] aReadyToSendMagicBytes, SegmentPackager aReadyToSendSegmentPackager, byte[] aClearToSendMagicBytes, SegmentPackager aClearToSendSegmentPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
ReadyToSendSegmentDecorator<DECORATEE>readyToSendSegment
(DECORATEE aDecoratee, int aReadyToSendRetryNumber, long aReadyToSendTimeoutInMs, long aClearToSendTimeoutInMs) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
ReadyToSendSegmentDecorator<DECORATEE>readyToSendSegment
(DECORATEE aDecoratee, int aReadyToSendRetryNumber, long aReadyToSendTimeoutInMs, SegmentPackager aReadyToSendSegmentPackager, long aClearToSendTimeoutInMs, SegmentPackager aClearToSendSegmentPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
ReadyToSendSegmentDecorator<DECORATEE>readyToSendSegment
(DECORATEE aDecoratee, long aEnquiryStandbyTimeInMs) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
ReadyToSendSegmentDecorator<DECORATEE>readyToSendSegment
(DECORATEE aDecoratee, long aEnquiryStandbyTimeInMs, byte[] aReadyToSendMagicBytes, byte[] aClearToSendMagicBytes) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
ReadyToSendSegmentDecorator<DECORATEE>readyToSendSegment
(DECORATEE aDecoratee, long aEnquiryStandbyTimeInMs, byte[] aReadyToSendMagicBytes, int aReadyToSendRetryNumber, byte[] aClearToSendMagicBytes) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
ReadyToSendSegmentDecorator<DECORATEE>readyToSendSegment
(DECORATEE aDecoratee, long aEnquiryStandbyTimeInMs, byte[] aReadyToSendMagicBytes, int aReadyToSendRetryNumber, long aReadyToSendTimeoutInMs, SegmentPackager aReadyToSendSegmentPackager, byte[] aClearToSendMagicBytes, long aClearToSendTimeoutInMs, SegmentPackager aClearToSendSegmentPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
ReadyToSendSegmentDecorator<DECORATEE>readyToSendSegment
(DECORATEE aDecoratee, long aEnquiryStandbyTimeInMs, byte[] aReadyToSendMagicBytes, int aReadyToSendRetryNumber, SegmentPackager aReadyToSendSegmentPackager, byte[] aClearToSendMagicBytes, SegmentPackager aClearToSendSegmentPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
ReadyToSendSegmentDecorator<DECORATEE>readyToSendSegment
(DECORATEE aDecoratee, long aEnquiryStandbyTimeInMs, byte[] aReadyToSendMagicBytes, long aReadyToSendTimeoutInMs, byte[] aClearToSendMagicBytes, long aClearToSendTimeoutInMs) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
ReadyToSendSegmentDecorator<DECORATEE>readyToSendSegment
(DECORATEE aDecoratee, long aEnquiryStandbyTimeInMs, byte[] aReadyToSendMagicBytes, long aReadyToSendTimeoutInMs, SegmentPackager aReadyToSendSegmentPackager, byte[] aClearToSendMagicBytes, long aClearToSendTimeoutInMs, SegmentPackager aClearToSendSegmentPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
ReadyToSendSegmentDecorator<DECORATEE>readyToSendSegment
(DECORATEE aDecoratee, long aEnquiryStandbyTimeInMs, byte[] aReadyToSendMagicBytes, SegmentPackager aReadyToSendSegmentPackager, byte[] aClearToSendMagicBytes, SegmentPackager aClearToSendSegmentPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
ReadyToSendSegmentDecorator<DECORATEE>readyToSendSegment
(DECORATEE aDecoratee, long aEnquiryStandbyTimeInMs, int aReadyToSendRetryNumber, long aReadyToSendTimeoutInMs, long aClearToSendTimeoutInMs) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
ReadyToSendSegmentDecorator<DECORATEE>readyToSendSegment
(DECORATEE aDecoratee, long aEnquiryStandbyTimeInMs, int aReadyToSendRetryNumber, long aReadyToSendTimeoutInMs, SegmentPackager aReadyToSendSegmentPackager, long aClearToSendTimeoutInMs, SegmentPackager aClearToSendSegmentPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
ReadyToSendSegmentDecorator<DECORATEE>readyToSendSegment
(DECORATEE aDecoratee, long aEnquiryStandbyTimeInMs, long aReadyToSendTimeoutInMs, long aClearToSendTimeoutInMs) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
ReadyToSendSegmentDecorator<DECORATEE>readyToSendSegment
(DECORATEE aDecoratee, long aEnquiryStandbyTimeInMs, long aReadyToSendTimeoutInMs, SegmentPackager aReadyToSendSegmentPackager, long aClearToSendTimeoutInMs, SegmentPackager aClearToSendSegmentPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
ReadyToSendSegmentDecorator<DECORATEE>readyToSendSegment
(DECORATEE aDecoratee, long aReadyToSendTimeoutInMs, SegmentPackager aReadyToSendSegmentPackager, long aClearToSendTimeoutInMs, SegmentPackager aClearToSendSegmentPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
ReadyToSendSegmentDecorator<DECORATEE>readyToSendSegment
(DECORATEE aDecoratee, TransmissionMetrics aTransmissionMetrics) Constructs an according control-flow decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
ReadyToSendSegmentDecorator.Builder<DECORATEE>Constructs a builder to build an accordingReadyToSendSegmentDecorator
instance.static <CHILD extends Segment>
SegmentComposite<CHILD>segmentComposite
(CHILD... aChildren) Constructs aSegmentComposite
containing the providedSegment
elements.static <CHILD extends Segment>
SegmentComposite<CHILD>segmentComposite
(Collection<CHILD> aChildren) Constructs aSegmentComposite
containing the providedSegment
elements.static <REFERENCEE extends Transmission>
LengthSegment<REFERENCEE>Constructs an empty allocation value with a width ofTransmissionMetrics.DEFAULT_LENGTH_WIDTH
bytes used to specify the referencee's length and aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of the referencee's length.static <REFERENCEE extends Transmission>
LengthSegment<REFERENCEE>segmentLength
(int aLengthWidth) Constructs an empty allocation value with the given number of bytes used to specify the referencee's length and aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of the referencee's length.static <REFERENCEE extends Transmission>
LengthSegment<REFERENCEE>segmentLength
(int aLengthWidth, org.refcodes.numerical.Endianess aEndianess) Constructs an empty allocation value with the given number of bytes used to specify the referencee's length and the providedEndianess
representation of the referencee's length.static <REFERENCEE extends Transmission>
LengthSegment<REFERENCEE>segmentLength
(org.refcodes.numerical.Endianess aEndianess) Constructs an empty allocation value with a width ofTransmissionMetrics.DEFAULT_LENGTH_WIDTH
bytes used to specify the referencee's length and the providedEndianess
representation of the referencee's length.static <REFERENCEE extends Transmission>
LengthSegment<REFERENCEE>segmentLength
(TransmissionMetrics aTransmissionMetrics) Constructs an according instance.static <REFERENCEE extends Transmission>
LengthSegment<REFERENCEE>segmentLength
(REFERENCEE aReferencee) Constructs the allocation value with the given referencee and a width ofTransmissionMetrics.DEFAULT_LENGTH_WIDTH
bytes used to specify the referencee's length aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of the referencee's length.static <REFERENCEE extends Transmission>
LengthSegment<REFERENCEE>segmentLength
(REFERENCEE aReferencee, int aLengthWidth) Constructs the allocation value with the given referencee and with the given number of bytes used to specify the referencee's length and aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of the referencee's length.static <REFERENCEE extends Transmission>
LengthSegment<REFERENCEE>segmentLength
(REFERENCEE aReferencee, int aLengthWidth, org.refcodes.numerical.Endianess aEndianess) Constructs the allocation value with the given referencee and with the given number of bytes used to specify the referencee's length and the providedEndianess
representation of the referencee's length.static <REFERENCEE extends Transmission>
LengthSegment<REFERENCEE>segmentLength
(REFERENCEE aReferencee, org.refcodes.numerical.Endianess aEndianess) Constructs the allocation value with the given referencee and a width ofTransmissionMetrics.DEFAULT_LENGTH_WIDTH
bytes used to specify the referencee's length and the providedEndianess
representation of the referencee's length.static <REFERENCEE extends Transmission>
LengthSegment<REFERENCEE>segmentLength
(REFERENCEE aReferencee, TransmissionMetrics aTransmissionMetrics) Constructs an according instance.static SequenceNumberSegment
sequenceNumberSegment
(int aSequenceNumberWidth, Long aSequenceNumberInitValue, org.refcodes.numerical.Endianess aEndianess) Constructs aSequenceNumberSegment
with the givenTransmissionMetrics
.static SequenceNumberSegment
sequenceNumberSegment
(int aSequenceNumberWidth, org.refcodes.numerical.Endianess aEndianess) Constructs aSequenceNumberSegment
with the givenTransmissionMetrics
.static SequenceNumberSegment
sequenceNumberSegment
(long aValue, TransmissionMetrics aTransmissionMetrics) Constructs an emptySequenceNumberSegment
with aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theSequenceNumberSegment
's value.static SequenceNumberSegment
sequenceNumberSegment
(String aAlias, int aSequenceNumberWidth, Long aSequenceNumberInitValue, org.refcodes.numerical.Endianess aEndianess) Constructs aSequenceNumberSegment
with the givenTransmissionMetrics
.static SequenceNumberSegment
sequenceNumberSegment
(String aAlias, int aSequenceNumberWidth, org.refcodes.numerical.Endianess aEndianess) Constructs aSequenceNumberSegment
with the givenTransmissionMetrics
.static SequenceNumberSegment
sequenceNumberSegment
(String aAlias, long aValue, TransmissionMetrics aTransmissionMetrics) Constructs an emptySequenceNumberSegment
with aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theSequenceNumberSegment
's value.static SequenceNumberSegment
sequenceNumberSegment
(String aAlias, TransmissionMetrics aTransmissionMetrics) Constructs an emptySequenceNumberSegment
with aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theSequenceNumberSegment
's value.static SequenceNumberSegment
sequenceNumberSegment
(TransmissionMetrics aTransmissionMetrics) Constructs an emptySequenceNumberSegment
with aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theSequenceNumberSegment
's value.static SequenceSection
Constructs aSequenceSection
.static SequenceSection
sequenceSection
(int aSequenceSize) Constructs aSequenceSection
.static SequenceSection
sequenceSection
(String aAlias) Constructs aSequenceSection
.static SequenceSection
sequenceSection
(String aAlias, int aSequenceSize) Constructs aSequenceSection
.static SequenceSection
sequenceSection
(String aAlias, Sequence aSequence) Constructs aSequenceSection
.static SequenceSection
sequenceSection
(Sequence aSequence) Constructs aSequenceSection
.static ShortArraySection
Constructs an emptyShortArraySection
with aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theSection
's value.static ShortArraySection
shortArraySection
(short... aValue) Constructs aShortArraySection
with the given short array payload and aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theShortArraySection
's value.static ShortArraySection
shortArraySection
(Short... aValue) Constructs aShortArraySection
with the given short array payload and aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theShortArraySection
's value.static ShortArraySection
shortArraySection
(String aAlias) Constructs an emptyShortArraySection
with aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theSection
's value.static ShortArraySection
shortArraySection
(String aAlias, short... aValue) Constructs aShortArraySection
with the given short array payload and aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theShortArraySection
's value.static ShortArraySection
shortArraySection
(String aAlias, Short... aValue) Constructs aShortArraySection
with the given short array payload and aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theShortArraySection
's value.static ShortArraySection
shortArraySection
(String aAlias, org.refcodes.numerical.Endianess aEndianess) Constructs an emptyShortArraySection
with the givenEndianess
.static ShortArraySection
shortArraySection
(String aAlias, org.refcodes.numerical.Endianess aEndianess, short... aValue) Constructs aShortArraySection
with the given short array payload and the givenEndianess
for the representation of theShortArraySection
's value.static ShortArraySection
shortArraySection
(String aAlias, org.refcodes.numerical.Endianess aEndianess, Short... aValue) Constructs aShortArraySection
with the given short array payload and the givenEndianess
for the representation of theShortArraySection
's value.static ShortArraySection
shortArraySection
(String aAlias, TransmissionMetrics aTransmissionMetrics) Constructs an according instance from the given configuration.static ShortArraySection
shortArraySection
(String aAlias, TransmissionMetrics aTransmissionMetrics, short... aValue) Constructs an according instance from the given configuration.static ShortArraySection
shortArraySection
(String aAlias, TransmissionMetrics aTransmissionMetrics, Short... aValue) Constructs an according instance from the given configuration.static ShortArraySection
shortArraySection
(org.refcodes.numerical.Endianess aEndianess) Constructs an emptyShortArraySection
with the givenEndianess
.static ShortArraySection
shortArraySection
(org.refcodes.numerical.Endianess aEndianess, short... aValue) Constructs aShortArraySection
with the given short array payload and the givenEndianess
for the representation of theShortArraySection
's value.static ShortArraySection
shortArraySection
(org.refcodes.numerical.Endianess aEndianess, Short... aValue) Constructs aShortArraySection
with the given short array payload and the givenEndianess
for the representation of theShortArraySection
's value.static ShortArraySection
shortArraySection
(TransmissionMetrics aTransmissionMetrics) Constructs an according instance from the given configuration.static ShortArraySection
shortArraySection
(TransmissionMetrics aTransmissionMetrics, short... aValue) Constructs an according instance from the given configuration.static ShortArraySection
shortArraySection
(TransmissionMetrics aTransmissionMetrics, Short... aValue) Constructs an according instance from the given configuration.static ShortSegment
Constructs an emptyShortSegment
with aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theShortSegment
's value.static ShortSegment
shortSegment
(Short aValue) Constructs aShortSegment
with the given short payload and aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theShortSegment
's value.static ShortSegment
shortSegment
(Short aValue, org.refcodes.numerical.Endianess aEndianess) Constructs aShortSegment
with the given short payload and the givenEndianess
for the representation of theSegment
's value.static ShortSegment
shortSegment
(Short aValue, TransmissionMetrics aTransmissionMetrics) Constructs an according instance from the given configuration.static ShortSegment
shortSegment
(String aAlias) Constructs an emptyShortSegment
with aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theShortSegment
's value.static ShortSegment
shortSegment
(String aAlias, Short aValue) Constructs aShortSegment
with the given short payload and aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theShortSegment
's value.static ShortSegment
shortSegment
(String aAlias, Short aValue, org.refcodes.numerical.Endianess aEndianess) Constructs aShortSegment
with the given short payload and the givenEndianess
for the representation of theSegment
's value.static ShortSegment
shortSegment
(String aAlias, Short aValue, TransmissionMetrics aTransmissionMetrics) Constructs an according instance from the given configuration.static ShortSegment
shortSegment
(String aAlias, org.refcodes.numerical.Endianess aEndianess) Constructs an emptyShortSegment
with the givenEndianess
endian representation of theShortSegment
's value.static ShortSegment
shortSegment
(String aAlias, TransmissionMetrics aTransmissionMetrics) Constructs an according instance from the given configuration.static ShortSegment
shortSegment
(org.refcodes.numerical.Endianess aEndianess) Constructs an emptyShortSegment
with the givenEndianess
endian representation of theShortSegment
's value.static ShortSegment
shortSegment
(TransmissionMetrics aTransmissionMetrics) Constructs an according instance from the given configuration.static <DECORATEE extends Section>
StopAndWaitPacketStreamSectionDecorator<DECORATEE>stopAndWaitPacketStreamSection
(DECORATEE aDecoratee, int aBlockSize, int aPacketLengthWidth, byte[] aPacketMagicBytes, byte[] aLastPacketMagicBytes, int aSequenceNumberInitValue, int aSequenceNumberWidth, org.refcodes.mixin.ConcatenateMode aSequenceNumberConcatenateMode, SegmentPackager aPacketSegmentPackager, byte[] aAcknowledgeMagicBytes, int aAckRetryNumber, long aAckTimeoutInMs, SegmentPackager aAckSegmentPackager, org.refcodes.numerical.Endianess aEndianess) Constructs an according packet-stream decorator instance wrapping the givenOutputStream
.static <DECORATEE extends Section>
StopAndWaitPacketStreamSectionDecorator<DECORATEE>stopAndWaitPacketStreamSection
(DECORATEE aDecoratee, TransmissionMetrics aTransmissionMetrics) Constructs an according packet-stream decorator instance wrapping the givenOutputStream
.static <DECORATEE extends Section>
StopAndWaitPacketStreamSectionDecorator.Builder<DECORATEE>Constructs a builder to build an accordingStopAndWaitPacketStreamSectionDecorator
instance.static <DECORATEE extends Segment>
StopAndWaitPacketStreamSegmentDecorator<DECORATEE>stopAndWaitPacketStreamSegment
(DECORATEE aDecoratee, int aBlockSize, int aPacketLengthWidth, byte[] aPacketMagicBytes, byte[] aLastPacketMagicBytes, int aSequenceNumberInitValue, int aSequenceNumberWidth, org.refcodes.mixin.ConcatenateMode aSequenceNumberConcatenateMode, SegmentPackager aPacketSegmentPackager, byte[] aAcknowledgeMagicBytes, int aAckRetryNumber, long aAckTimeoutInMs, SegmentPackager aAckSegmentPackager, org.refcodes.numerical.Endianess aEndianess) Constructs an according packet-stream decorator instance wrapping the givenOutputStream
.static <DECORATEE extends Segment>
StopAndWaitPacketStreamSegmentDecorator<DECORATEE>stopAndWaitPacketStreamSegment
(DECORATEE aDecoratee, TransmissionMetrics aTransmissionMetrics) Constructs an according packet-stream decorator instance wrapping the givenOutputStream
.static <DECORATEE extends Segment>
StopAndWaitPacketStreamSegmentDecorator.Builder<DECORATEE>Constructs a builder to build an accordingStopAndWaitPacketStreamSegmentDecorator
instance.static <DECORATEE extends Section>
StopAndWaitSectionDecorator<DECORATEE>stopAndWaitSection
(DECORATEE aDecoratee) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
StopAndWaitSectionDecorator<DECORATEE>stopAndWaitSection
(DECORATEE aDecoratee, byte[] aAcknowledgeMagicBytes, int aAckRetryNumber, long aAckTimeoutInMs, org.refcodes.mixin.ConcatenateMode aCrcChecksumConcatenateMode, org.refcodes.numerical.Endianess aEndianess) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
StopAndWaitSectionDecorator<DECORATEE>stopAndWaitSection
(DECORATEE aDecoratee, byte[] aAcknowledgeMagicBytes, int aAckRetryNumber, long aAckTimeoutInMs, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.mixin.ConcatenateMode aCrcChecksumConcatenateMode, org.refcodes.numerical.ChecksumValidationMode aChecksumValidationMode, org.refcodes.numerical.Endianess aEndianess) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
StopAndWaitSectionDecorator<DECORATEE>stopAndWaitSection
(DECORATEE aDecoratee, byte[] aAcknowledgeMagicBytes, int aAckRetryNumber, long aAckTimeoutInMs, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.mixin.ConcatenateMode aCrcChecksumConcatenateMode, org.refcodes.numerical.Endianess aEndianess) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
StopAndWaitSectionDecorator<DECORATEE>stopAndWaitSection
(DECORATEE aDecoratee, byte[] aAcknowledgeMagicBytes, int aAckRetryNumber, long aAckTimeoutInMs, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.numerical.Endianess aEndianess) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
StopAndWaitSectionDecorator<DECORATEE>stopAndWaitSection
(DECORATEE aDecoratee, byte[] aAcknowledgeMagicBytes, int aAckRetryNumber, long aAckTimeoutInMs, org.refcodes.numerical.Endianess aEndianess) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
StopAndWaitSectionDecorator<DECORATEE>stopAndWaitSection
(DECORATEE aDecoratee, byte[] aAcknowledgeMagicBytes, int aAckRetryNumber, long aAckTimeoutInMs, SegmentPackager aAckSegmentPackager, org.refcodes.numerical.Endianess aEndianess) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
StopAndWaitSectionDecorator<DECORATEE>stopAndWaitSection
(DECORATEE aDecoratee, int aSequenceNumberInitValue, int aSequenceNumberWidth, org.refcodes.mixin.ConcatenateMode aSequenceNumberConcatenateMode, byte[] aAcknowledgeMagicBytes, int aAckRetryNumber, long aAckTimeoutInMs, org.refcodes.mixin.ConcatenateMode aCrcChecksumConcatenateMode, org.refcodes.numerical.Endianess aEndianess) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
StopAndWaitSectionDecorator<DECORATEE>stopAndWaitSection
(DECORATEE aDecoratee, int aSequenceNumberInitValue, int aSequenceNumberWidth, org.refcodes.mixin.ConcatenateMode aSequenceNumberConcatenateMode, byte[] aAcknowledgeMagicBytes, int aAckRetryNumber, long aAckTimeoutInMs, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.mixin.ConcatenateMode aCrcChecksumConcatenateMode, org.refcodes.numerical.ChecksumValidationMode aChecksumValidationMode, org.refcodes.numerical.Endianess aEndianess) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
StopAndWaitSectionDecorator<DECORATEE>stopAndWaitSection
(DECORATEE aDecoratee, int aSequenceNumberInitValue, int aSequenceNumberWidth, org.refcodes.mixin.ConcatenateMode aSequenceNumberConcatenateMode, byte[] aAcknowledgeMagicBytes, int aAckRetryNumber, long aAckTimeoutInMs, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.mixin.ConcatenateMode aCrcChecksumConcatenateMode, org.refcodes.numerical.Endianess aEndianess) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
StopAndWaitSectionDecorator<DECORATEE>stopAndWaitSection
(DECORATEE aDecoratee, int aSequenceNumberInitValue, int aSequenceNumberWidth, org.refcodes.mixin.ConcatenateMode aSequenceNumberConcatenateMode, byte[] aAcknowledgeMagicBytes, int aAckRetryNumber, long aAckTimeoutInMs, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.numerical.Endianess aEndianess) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
StopAndWaitSectionDecorator<DECORATEE>stopAndWaitSection
(DECORATEE aDecoratee, int aSequenceNumberInitValue, int aSequenceNumberWidth, org.refcodes.mixin.ConcatenateMode aSequenceNumberConcatenateMode, byte[] aAcknowledgeMagicBytes, int aAckRetryNumber, long aAckTimeoutInMs, org.refcodes.numerical.Endianess aEndianess) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
StopAndWaitSectionDecorator<DECORATEE>stopAndWaitSection
(DECORATEE aDecoratee, int aSequenceNumberInitValue, int aSequenceNumberWidth, org.refcodes.mixin.ConcatenateMode aSequenceNumberConcatenateMode, byte[] aAcknowledgeMagicBytes, int aAckRetryNumber, long aAckTimeoutInMs, SegmentPackager aAckSegmentPackager, org.refcodes.numerical.Endianess aEndianess) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
StopAndWaitSectionDecorator<DECORATEE>stopAndWaitSection
(DECORATEE aDecoratee, org.refcodes.mixin.ConcatenateMode aCrcChecksumConcatenateMode) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
StopAndWaitSectionDecorator<DECORATEE>stopAndWaitSection
(DECORATEE aDecoratee, org.refcodes.mixin.ConcatenateMode aSequenceNumberConcatenateMode, byte[] aAcknowledgeMagicBytes, int aAckRetryNumber, long aAckTimeoutInMs, org.refcodes.mixin.ConcatenateMode aCrcChecksumConcatenateMode, org.refcodes.numerical.Endianess aEndianess) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
StopAndWaitSectionDecorator<DECORATEE>stopAndWaitSection
(DECORATEE aDecoratee, org.refcodes.mixin.ConcatenateMode aSequenceNumberConcatenateMode, byte[] aAcknowledgeMagicBytes, int aAckRetryNumber, long aAckTimeoutInMs, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.mixin.ConcatenateMode aCrcChecksumConcatenateMode, org.refcodes.numerical.ChecksumValidationMode aChecksumValidationMode, org.refcodes.numerical.Endianess aEndianess) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
StopAndWaitSectionDecorator<DECORATEE>stopAndWaitSection
(DECORATEE aDecoratee, org.refcodes.mixin.ConcatenateMode aSequenceNumberConcatenateMode, byte[] aAcknowledgeMagicBytes, int aAckRetryNumber, long aAckTimeoutInMs, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.mixin.ConcatenateMode aCrcChecksumConcatenateMode, org.refcodes.numerical.Endianess aEndianess) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
StopAndWaitSectionDecorator<DECORATEE>stopAndWaitSection
(DECORATEE aDecoratee, org.refcodes.mixin.ConcatenateMode aSequenceNumberConcatenateMode, byte[] aAcknowledgeMagicBytes, int aAckRetryNumber, long aAckTimeoutInMs, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.numerical.Endianess aEndianess) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
StopAndWaitSectionDecorator<DECORATEE>stopAndWaitSection
(DECORATEE aDecoratee, org.refcodes.mixin.ConcatenateMode aSequenceNumberConcatenateMode, byte[] aAcknowledgeMagicBytes, int aAckRetryNumber, long aAckTimeoutInMs, org.refcodes.numerical.Endianess aEndianess) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
StopAndWaitSectionDecorator<DECORATEE>stopAndWaitSection
(DECORATEE aDecoratee, org.refcodes.mixin.ConcatenateMode aSequenceNumberConcatenateMode, byte[] aAcknowledgeMagicBytes, int aAckRetryNumber, long aAckTimeoutInMs, SegmentPackager aAckSegmentPackager, org.refcodes.numerical.Endianess aEndianess) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
StopAndWaitSectionDecorator<DECORATEE>stopAndWaitSection
(DECORATEE aDecoratee, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
StopAndWaitSectionDecorator<DECORATEE>stopAndWaitSection
(DECORATEE aDecoratee, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.mixin.ConcatenateMode aCrcChecksumConcatenateMode) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
StopAndWaitSectionDecorator<DECORATEE>stopAndWaitSection
(DECORATEE aDecoratee, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.mixin.ConcatenateMode aCrcChecksumConcatenateMode, org.refcodes.numerical.ChecksumValidationMode aChecksumValidationMode) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
StopAndWaitSectionDecorator<DECORATEE>stopAndWaitSection
(DECORATEE aDecoratee, SegmentPackager aAckSegmentPackager) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
StopAndWaitSectionDecorator<DECORATEE>stopAndWaitSection
(DECORATEE aDecoratee, TransmissionMetrics aTransmissionMetrics) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
StopAndWaitSectionDecorator.Builder<DECORATEE>Constructs a builder to build an accordingStopAndWaitSectionDecorator
instance.static <DECORATEE extends Segment>
StopAndWaitSegmentDecorator<DECORATEE>stopAndWaitSegment
(DECORATEE aDecoratee) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
StopAndWaitSegmentDecorator<DECORATEE>stopAndWaitSegment
(DECORATEE aDecoratee, byte[] aAcknowledgeMagicBytes, int aAckRetryNumber, long aAckTimeoutInMs, org.refcodes.mixin.ConcatenateMode aCrcChecksumConcatenateMode, org.refcodes.numerical.Endianess aEndianess) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
StopAndWaitSegmentDecorator<DECORATEE>stopAndWaitSegment
(DECORATEE aDecoratee, byte[] aAcknowledgeMagicBytes, int aAckRetryNumber, long aAckTimeoutInMs, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.mixin.ConcatenateMode aCrcChecksumConcatenateMode, org.refcodes.numerical.ChecksumValidationMode aChecksumValidationMode, org.refcodes.numerical.Endianess aEndianess) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
StopAndWaitSegmentDecorator<DECORATEE>stopAndWaitSegment
(DECORATEE aDecoratee, byte[] aAcknowledgeMagicBytes, int aAckRetryNumber, long aAckTimeoutInMs, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.mixin.ConcatenateMode aCrcChecksumConcatenateMode, org.refcodes.numerical.Endianess aEndianess) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
StopAndWaitSegmentDecorator<DECORATEE>stopAndWaitSegment
(DECORATEE aDecoratee, byte[] aAcknowledgeMagicBytes, int aAckRetryNumber, long aAckTimeoutInMs, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.numerical.Endianess aEndianess) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
StopAndWaitSegmentDecorator<DECORATEE>stopAndWaitSegment
(DECORATEE aDecoratee, byte[] aAcknowledgeMagicBytes, int aAckRetryNumber, long aAckTimeoutInMs, org.refcodes.numerical.Endianess aEndianess) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
StopAndWaitSegmentDecorator<DECORATEE>stopAndWaitSegment
(DECORATEE aDecoratee, byte[] aAcknowledgeMagicBytes, int aAckRetryNumber, long aAckTimeoutInMs, SegmentPackager aAckSegmentPackager, org.refcodes.numerical.Endianess aEndianess) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
StopAndWaitSegmentDecorator<DECORATEE>stopAndWaitSegment
(DECORATEE aDecoratee, int aSequenceNumberInitValue, int aSequenceNumberWidth, org.refcodes.mixin.ConcatenateMode aSequenceNumberConcatenateMode, byte[] aAcknowledgeMagicBytes, int aAckRetryNumber, long aAckTimeoutInMs, org.refcodes.mixin.ConcatenateMode aCrcChecksumConcatenateMode, org.refcodes.numerical.Endianess aEndianess) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
StopAndWaitSegmentDecorator<DECORATEE>stopAndWaitSegment
(DECORATEE aDecoratee, int aSequenceNumberInitValue, int aSequenceNumberWidth, org.refcodes.mixin.ConcatenateMode aSequenceNumberConcatenateMode, byte[] aAcknowledgeMagicBytes, int aAckRetryNumber, long aAckTimeoutInMs, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.mixin.ConcatenateMode aCrcChecksumConcatenateMode, org.refcodes.numerical.ChecksumValidationMode aChecksumValidationMode, org.refcodes.numerical.Endianess aEndianess) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
StopAndWaitSegmentDecorator<DECORATEE>stopAndWaitSegment
(DECORATEE aDecoratee, int aSequenceNumberInitValue, int aSequenceNumberWidth, org.refcodes.mixin.ConcatenateMode aSequenceNumberConcatenateMode, byte[] aAcknowledgeMagicBytes, int aAckRetryNumber, long aAckTimeoutInMs, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.mixin.ConcatenateMode aCrcChecksumConcatenateMode, org.refcodes.numerical.Endianess aEndianess) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
StopAndWaitSegmentDecorator<DECORATEE>stopAndWaitSegment
(DECORATEE aDecoratee, int aSequenceNumberInitValue, int aSequenceNumberWidth, org.refcodes.mixin.ConcatenateMode aSequenceNumberConcatenateMode, byte[] aAcknowledgeMagicBytes, int aAckRetryNumber, long aAckTimeoutInMs, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.numerical.Endianess aEndianess) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
StopAndWaitSegmentDecorator<DECORATEE>stopAndWaitSegment
(DECORATEE aDecoratee, int aSequenceNumberInitValue, int aSequenceNumberWidth, org.refcodes.mixin.ConcatenateMode aSequenceNumberConcatenateMode, byte[] aAcknowledgeMagicBytes, int aAckRetryNumber, long aAckTimeoutInMs, org.refcodes.numerical.Endianess aEndianess) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
StopAndWaitSegmentDecorator<DECORATEE>stopAndWaitSegment
(DECORATEE aDecoratee, int aSequenceNumberInitValue, int aSequenceNumberWidth, org.refcodes.mixin.ConcatenateMode aSequenceNumberConcatenateMode, byte[] aAcknowledgeMagicBytes, int aAckRetryNumber, long aAckTimeoutInMs, SegmentPackager aAckSegmentPackager, org.refcodes.numerical.Endianess aEndianess) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
StopAndWaitSegmentDecorator<DECORATEE>stopAndWaitSegment
(DECORATEE aDecoratee, org.refcodes.mixin.ConcatenateMode aCrcChecksumConcatenateMode) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
StopAndWaitSegmentDecorator<DECORATEE>stopAndWaitSegment
(DECORATEE aDecoratee, org.refcodes.mixin.ConcatenateMode aSequenceNumberConcatenateMode, byte[] aAcknowledgeMagicBytes, int aAckRetryNumber, long aAckTimeoutInMs, org.refcodes.mixin.ConcatenateMode aCrcChecksumConcatenateMode, org.refcodes.numerical.Endianess aEndianess) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
StopAndWaitSegmentDecorator<DECORATEE>stopAndWaitSegment
(DECORATEE aDecoratee, org.refcodes.mixin.ConcatenateMode aSequenceNumberConcatenateMode, byte[] aAcknowledgeMagicBytes, int aAckRetryNumber, long aAckTimeoutInMs, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.mixin.ConcatenateMode aCrcChecksumConcatenateMode, org.refcodes.numerical.ChecksumValidationMode aChecksumValidationMode, org.refcodes.numerical.Endianess aEndianess) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
StopAndWaitSegmentDecorator<DECORATEE>stopAndWaitSegment
(DECORATEE aDecoratee, org.refcodes.mixin.ConcatenateMode aSequenceNumberConcatenateMode, byte[] aAcknowledgeMagicBytes, int aAckRetryNumber, long aAckTimeoutInMs, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.mixin.ConcatenateMode aCrcChecksumConcatenateMode, org.refcodes.numerical.Endianess aEndianess) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
StopAndWaitSegmentDecorator<DECORATEE>stopAndWaitSegment
(DECORATEE aDecoratee, org.refcodes.mixin.ConcatenateMode aSequenceNumberConcatenateMode, byte[] aAcknowledgeMagicBytes, int aAckRetryNumber, long aAckTimeoutInMs, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.numerical.Endianess aEndianess) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
StopAndWaitSegmentDecorator<DECORATEE>stopAndWaitSegment
(DECORATEE aDecoratee, org.refcodes.mixin.ConcatenateMode aSequenceNumberConcatenateMode, byte[] aAcknowledgeMagicBytes, int aAckRetryNumber, long aAckTimeoutInMs, org.refcodes.numerical.Endianess aEndianess) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
StopAndWaitSegmentDecorator<DECORATEE>stopAndWaitSegment
(DECORATEE aDecoratee, org.refcodes.mixin.ConcatenateMode aSequenceNumberConcatenateMode, byte[] aAcknowledgeMagicBytes, int aAckRetryNumber, long aAckTimeoutInMs, SegmentPackager aAckSegmentPackager, org.refcodes.numerical.Endianess aEndianess) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
StopAndWaitSegmentDecorator<DECORATEE>stopAndWaitSegment
(DECORATEE aDecoratee, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
StopAndWaitSegmentDecorator<DECORATEE>stopAndWaitSegment
(DECORATEE aDecoratee, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.mixin.ConcatenateMode aCrcChecksumConcatenateMode) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
StopAndWaitSegmentDecorator<DECORATEE>stopAndWaitSegment
(DECORATEE aDecoratee, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.mixin.ConcatenateMode aCrcChecksumConcatenateMode, org.refcodes.numerical.ChecksumValidationMode aChecksumValidationMode) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
StopAndWaitSegmentDecorator<DECORATEE>stopAndWaitSegment
(DECORATEE aDecoratee, SegmentPackager aAckSegmentPackager) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
StopAndWaitSegmentDecorator<DECORATEE>stopAndWaitSegment
(DECORATEE aDecoratee, TransmissionMetrics aTransmissionMetrics) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
StopAndWaitSegmentDecorator.Builder<DECORATEE>Constructs a builder to build an accordingStopAndWaitSegmentDecorator
instance.static StringArraySection
Constructs an emptyStringArraySection
using theTransmissionMetrics.DEFAULT_LENGTH_WIDTH
, theTransmissionMetrics.DEFAULT_ENDIANESS
as well as theTransmissionMetrics.DEFAULT_ENCODING
.static StringArraySection
stringArraySection
(int aLengthWidth, org.refcodes.numerical.Endianess aEndianess, Charset aCharset, String... aValue) Constructs aStringArraySection
using containing the providedStringSection
elements and using the providedSegment
class for creatingSegment
instances.static StringArraySection
stringArraySection
(String aAlias) Constructs an emptyStringArraySection
using theTransmissionMetrics.DEFAULT_LENGTH_WIDTH
, theTransmissionMetrics.DEFAULT_ENDIANESS
as well as theTransmissionMetrics.DEFAULT_ENCODING
.static StringArraySection
stringArraySection
(String... aValue) Constructs aStringArraySection
containing the provided payload and using theTransmissionMetrics.DEFAULT_LENGTH_WIDTH
, theTransmissionMetrics.DEFAULT_ENDIANESS
as well as theTransmissionMetrics.DEFAULT_ENCODING
.static StringArraySection
stringArraySection
(String aAlias, int aLengthWidth, org.refcodes.numerical.Endianess aEndianess, Charset aCharset, String... aValue) Constructs aStringArraySection
using containing the providedStringSection
elements and using the providedSegment
class for creatingSegment
instances.static StringArraySection
stringArraySection
(String aAlias, String[] aValue) Constructs aStringArraySection
containing the provided payload and using theTransmissionMetrics.DEFAULT_LENGTH_WIDTH
, theTransmissionMetrics.DEFAULT_ENDIANESS
as well as theTransmissionMetrics.DEFAULT_ENCODING
.static StringArraySection
stringArraySection
(String aAlias, Charset aCharset, String... aValue) Constructs aStringArraySection
containing the provided payload and using theTransmissionMetrics.DEFAULT_LENGTH_WIDTH
, as well as theTransmissionMetrics.DEFAULT_ENDIANESS
.static StringArraySection
stringArraySection
(String aAlias, TransmissionMetrics aTransmissionMetrics) Constructs an according instance from the given configuration.static StringArraySection
stringArraySection
(String aAlias, TransmissionMetrics aTransmissionMetrics, String... aValue) Constructs an according instance from the given configuration.static StringArraySection
stringArraySection
(Charset aCharset, String... aValue) Constructs aStringArraySection
containing the provided payload and using theTransmissionMetrics.DEFAULT_LENGTH_WIDTH
, as well as theTransmissionMetrics.DEFAULT_ENDIANESS
.static StringArraySection
stringArraySection
(TransmissionMetrics aTransmissionMetrics) Constructs an according instance from the given configuration.static StringArraySection
stringArraySection
(TransmissionMetrics aTransmissionMetrics, String... aValue) Constructs an according instance from the given configuration.static StringSection
Constructs an emptyStringSection
using theTransmissionMetrics.DEFAULT_ENCODING
encoding for the payload.static StringSection
stringSection
(String aValue) Constructs aStringSection
with the givenString
payload being encoded with theTransmissionMetrics.DEFAULT_ENCODING
.static StringSection
stringSection
(String aAlias, String aValue) Constructs aStringSection
with the givenString
payload being encoded with theTransmissionMetrics.DEFAULT_ENCODING
.static StringSection
stringSection
(String aAlias, String aValue, Charset aCharset) static StringSection
stringSection
(String aAlias, String aValue, TransmissionMetrics aTransmissionMetrics) Constructs an according instance from the given configuration.static StringSection
stringSection
(String aValue, Charset aCharset) static StringSection
stringSection
(String aValue, TransmissionMetrics aTransmissionMetrics) Constructs an according instance from the given configuration.static StringSection
stringSection
(Charset aCharset) Constructs aStringSection
with a payload expected to be encoded with the givenCharset
.static StringSection
stringSection
(TransmissionMetrics aTransmissionMetrics) Constructs an according instance from the given configuration.static StringSegment
Constructs aStringSegment
.static StringSegment
stringSegment
(int aLengthWidth) Constructs an empty allocation value with the given number of bytes used to specify the decoratee's length and aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of the decoratee's length.static StringSegment
stringSegment
(int aLengthWidth, org.refcodes.numerical.Endianess aEndianess) Constructs an empty allocation value with the given number of bytes used to specify the decoratee's length and the providedEndianess
representation of the decoratee's length.static StringSegment
stringSegment
(String aValue) Constructs aStringSegment
with the givenString
payload being encoded with theTransmissionMetrics.DEFAULT_ENCODING
.static StringSegment
stringSegment
(String aValue, int aLengthWidth) Constructs aStringSegment
with the givenString
payload* being encoded with theTransmissionMetrics.DEFAULT_ENCODING
.static StringSegment
stringSegment
(String aValue, int aLengthWidth, org.refcodes.numerical.Endianess aEndianess) Constructs aStringSegment
with the givenString
payload being encoded with theTransmissionMetrics.DEFAULT_ENCODING
.static StringSegment
stringSegment
(String aAlias, String aValue) Constructs aStringSegment
with the givenString
payload being encoded with theTransmissionMetrics.DEFAULT_ENCODING
.static StringSegment
stringSegment
(String aAlias, String aValue, int aLengthWidth) Constructs aStringSegment
with the givenString
payload being encoded with theTransmissionMetrics.DEFAULT_ENCODING
.static StringSegment
stringSegment
(String aAlias, String aValue, int aLengthWidth, org.refcodes.numerical.Endianess aEndianess) Constructs aStringSegment
with the givenString
payload being encoded with theTransmissionMetrics.DEFAULT_ENCODING
.static StringSegment
stringSegment
(String aAlias, String aValue, Charset aEncoding) static StringSegment
stringSegment
(String aAlias, String aValue, Charset aEncoding, int aLengthWidth) static StringSegment
stringSegment
(String aAlias, String aValue, Charset aEncoding, int aLengthWidth, org.refcodes.numerical.Endianess aEndianess) static StringSegment
stringSegment
(String aAlias, String aValue, Charset aEncoding, org.refcodes.numerical.Endianess aEndianess) static StringSegment
stringSegment
(String aAlias, String aValue, org.refcodes.numerical.Endianess aEndianess) Constructs aStringSegment
with the givenString
payload being encoded with theTransmissionMetrics.DEFAULT_ENCODING
.static StringSegment
stringSegment
(String aAlias, String aValue, TransmissionMetrics aTransmissionMetrics) Constructs an according instance from the given configuration.static StringSegment
stringSegment
(String aValue, Charset aEncoding) static StringSegment
stringSegment
(String aValue, Charset aEncoding, int aLengthWidth) static StringSegment
stringSegment
(String aValue, Charset aEncoding, int aLengthWidth, org.refcodes.numerical.Endianess aEndianess) static StringSegment
stringSegment
(String aValue, Charset aEncoding, org.refcodes.numerical.Endianess aEndianess) static StringSegment
stringSegment
(String aValue, org.refcodes.numerical.Endianess aEndianess) Constructs aStringSegment
with the givenString
payload being encoded with theTransmissionMetrics.DEFAULT_ENCODING
.static StringSegment
stringSegment
(String aValue, TransmissionMetrics aTransmissionMetrics) Constructs an according instance from the given configuration.static StringSegment
stringSegment
(Charset aEncoding) Constructs aStringSegment
with a payload expected to be encoded with the givenCharset
.static StringSegment
stringSegment
(Charset aEncoding, int aLengthWidth) Constructs aStringSegment
with a payload expected to be encoded with the givenCharset
.static StringSegment
stringSegment
(Charset aEncoding, int aLengthWidth, org.refcodes.numerical.Endianess aEndianess) Constructs aStringSegment
with a payload expected to be encoded with the givenCharset
.static StringSegment
stringSegment
(Charset aEncoding, org.refcodes.numerical.Endianess aEndianess) Constructs aStringSegment
with a payload expected to be encoded with the givenCharset
.static StringSegment
stringSegment
(org.refcodes.numerical.Endianess aEndianess) Constructs an empty allocation value with a width ofTransmissionMetrics.DEFAULT_LENGTH_WIDTH
bytes used to specify the decoratee's length and the providedEndianess
representation of the decoratee's length.static StringSegment
stringSegment
(TransmissionMetrics aTransmissionMetrics) Constructs an according instance from the given configuration.static StringSegment.Builder
Constructs a builder to build an accordingStringSegment
instance.
-
Constructor Details
-
SerialSugar
protected SerialSugar()Instantiates a new serial sugar.
-
-
Method Details
-
nullSegment
- Returns:
- The accordingly created
NullSegment
.
-
enumSegment
public static <E extends Enum<E>> EnumSegment<E> enumSegment(Class<E> aType, TransmissionMetrics aTransmissionMetrics) Constructs an according instance from the given configuration. The configuration attributes are taken from theTransmissionMetrics
configuration object, though only those attributes are supported which are also supported by the other constructors!- Type Parameters:
E
- The type of the enumeration.- Parameters:
aType
- the enumeratrion's typeaTransmissionMetrics
- TheTransmissionMetrics
to be used for configuring this instance.- Returns:
- The accordingly created
EnumSegment
.
-
enumSegment
public static <E extends Enum<E>> EnumSegment<E> enumSegment(Enum<E> aValue, TransmissionMetrics aTransmissionMetrics) Constructs an according instance from the given configuration. The configuration attributes are taken from theTransmissionMetrics
configuration object, though only those attributes are supported which are also supported by the other constructors!- Type Parameters:
E
- The type of the enumeration.- Parameters:
aValue
- The payload to be contained by theDoubleArraySection
.aTransmissionMetrics
- TheTransmissionMetrics
to be used for configuring this instance.- Returns:
- The accordingly created
EnumSegment
.
-
enumSegment
public static <E extends Enum<E>> EnumSegment<E> enumSegment(String aAlias, Class<E> aType, TransmissionMetrics aTransmissionMetrics) Constructs an according instance from the given configuration. The configuration attributes are taken from theTransmissionMetrics
configuration object, though only those attributes are supported which are also supported by the other constructors!- Type Parameters:
E
- The type of the enumeration.- Parameters:
aAlias
- The alias which identifies the content of this instance.aType
- the enumeratrion's typeaTransmissionMetrics
- TheTransmissionMetrics
to be used for configuring this instance.- Returns:
- The accordingly created
EnumSegment
.
-
enumSegment
public static <E extends Enum<E>> EnumSegment<E> enumSegment(String aAlias, Enum<E> aValue, TransmissionMetrics aTransmissionMetrics) Constructs an according instance from the given configuration. The configuration attributes are taken from theTransmissionMetrics
configuration object, though only those attributes are supported which are also supported by the other constructors!- Type Parameters:
E
- The type of the enumeration.- Parameters:
aAlias
- The alias which identifies the content of this instance.aValue
- The payload to be contained by theDoubleArraySection
.aTransmissionMetrics
- TheTransmissionMetrics
to be used for configuring this instance.- Returns:
- The accordingly created
EnumSegment
.
-
enumSegment
Constructs an emptyEnumSegment
with aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theEnumSegment
's value.- Type Parameters:
E
- The type of the enumeration.- Parameters:
aType
- the enumeratrion's type- Returns:
- The accordingly created
EnumSegment
.
-
enumSegment
public static <E extends Enum<E>> EnumSegment<E> enumSegment(Class<E> aType, org.refcodes.numerical.Endianess aEndianess) Constructs an emptyEnumSegment
with the givenEndianess
.- Type Parameters:
E
- The type of the enumeration.- Parameters:
aType
- the enumeratrion's typeaEndianess
- TheEndianess
to be used for payload values.- Returns:
- The accordingly created
EnumSegment
.
-
enumSegment
public static <E extends Enum<E>> EnumSegment<E> enumSegment(Enum<E> aValue, org.refcodes.numerical.Endianess aEndianess) Constructs aEnumSegment
with the given enumeration value (payload) and the givenEndianess
for the representation of theEnumSegment
's value.- Type Parameters:
E
- The type of the enumeration.- Parameters:
aValue
- The value (payload) to be contained by theEnumSegment
.aEndianess
- TheEndianess
to be used for payload values.- Returns:
- The accordingly created
EnumSegment
.
-
enumSegment
Constructs an emptyEnumSegment
with aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theEnumSegment
's value.- Type Parameters:
E
- The type of the enumeration.- Parameters:
aAlias
- The alias which identifies the content of this segment.aType
- the enumeratrion's type- Returns:
- The accordingly created
EnumSegment
.
-
enumSegment
public static <E extends Enum<E>> EnumSegment<E> enumSegment(String aAlias, Class<E> aType, org.refcodes.numerical.Endianess aEndianess) Constructs an emptyEnumSegment
with the givenEndianess
.- Type Parameters:
E
- The type of the enumeration.- Parameters:
aAlias
- The alias which identifies the content of this segment.aType
- the enumeratrion's typeaEndianess
- TheEndianess
to be used for payload values.- Returns:
- The accordingly created
EnumSegment
.
-
enumSegment
public static <E extends Enum<E>> EnumSegment<E> enumSegment(String aAlias, Enum<E> aValue, org.refcodes.numerical.Endianess aEndianess) Constructs aEnumSegment
with the given enumeration value (payload) and the givenEndianess
for the representation of theEnumSegment
's value.- Type Parameters:
E
- The type of the enumeration.- Parameters:
aAlias
- The alias which identifies the content of this segment.aValue
- The value (payload) to be contained by theEnumSegment
.aEndianess
- TheEndianess
to be used for payload values.- Returns:
- The accordingly created
EnumSegment
.
-
enumSegment
public static <E extends Enum<E>> EnumSegment<E> enumSegment(String aAlias, Class<E> aType, Enum<E> aValue, org.refcodes.numerical.Endianess aEndianess) Constructs aEnumSegment
with the given enumeration value (payload) and the givenEndianess
for the representation of theEnumSegment
's value.- Type Parameters:
E
- The type of the enumeration.- Parameters:
aAlias
- The alias which identifies the content of this segment.aType
- the enumeration's typeaValue
- The value (payload) to be contained by theEnumSegment
.aEndianess
- TheEndianess
to be used for payload values.- Returns:
- The accordingly created
EnumSegment
.
-
allocSegment
public static <DECORATEE extends Section> AllocSectionDecoratorSegment<DECORATEE> allocSegment(DECORATEE aDecoratee) Constructs aAllocSectionDecoratorSegment
with the given decoratee and a width ofTransmissionMetrics.DEFAULT_LENGTH_WIDTH
bytes used to specify the decoratee's length aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of the decoratee's length.- Type Parameters:
DECORATEE
- TheSection
type describing theSection
subclass decoratee.- Parameters:
aDecoratee
- The decoratee used for this decorator.- Returns:
- The accordingly created
AllocSectionDecoratorSegment
.
-
allocSegment
public static <DECORATEE extends Section> AllocSectionDecoratorSegment<DECORATEE> allocSegment(DECORATEE aDecoratee, org.refcodes.numerical.Endianess aEndianess) Constructs aAllocSectionDecoratorSegment
with the given decoratee and a width ofTransmissionMetrics.DEFAULT_LENGTH_WIDTH
bytes used to specify the decoratee's length and the providedEndianess
representation of the decoratee's length.- Type Parameters:
DECORATEE
- TheSection
type describing theSection
subclass decoratee.- Parameters:
aDecoratee
- The decoratee used for this decorator.aEndianess
- TheEndianess
to be used for length values.- Returns:
- The accordingly created
AllocSectionDecoratorSegment
.
-
allocSegment
public static <DECORATEE extends Section> AllocSectionDecoratorSegment<DECORATEE> allocSegment(DECORATEE aDecoratee, int aLengthWidth) Constructs aAllocSectionDecoratorSegment
with the given decoratee and with the given number of bytes used to specify the decoratee's length and aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of the decoratee's length.- Type Parameters:
DECORATEE
- TheSection
type describing theSection
subclass decoratee.- Parameters:
aDecoratee
- The decoratee used for this decorator.aLengthWidth
- The width (in bytes) to be used for length values.- Returns:
- The accordingly created
AllocSectionDecoratorSegment
.
-
allocSegment
public static <DECORATEE extends Section> AllocSectionDecoratorSegment<DECORATEE> allocSegment(DECORATEE aDecoratee, int aLengthWidth, org.refcodes.numerical.Endianess aEndianess) Constructs aAllocSectionDecoratorSegment
with the given decoratee and with the given number of bytes used to specify the decoratee's length and the providedEndianess
representation of the decoratee's length.- Type Parameters:
DECORATEE
- TheSection
type describing theSection
subclass decoratee.- Parameters:
aDecoratee
- The decoratee used for this decorator.aLengthWidth
- The width (in bytes) to be used for length values.aEndianess
- TheEndianess
to be used for length values.- Returns:
- The accordingly created
AllocSectionDecoratorSegment
.
-
allocSegment
public static <DECORATEE extends Section> AllocSectionDecoratorSegment<DECORATEE> allocSegment(DECORATEE aDecoratee, TransmissionMetrics aTransmissionMetrics) Constructs an accordingAllocSectionDecoratorSegment
instance. The configuration attributes are taken from theTransmissionMetrics
configuration object, though only those attributes are supported which are also supported by the other constructors!- Type Parameters:
DECORATEE
- TheSection
type describing theSection
subclass decoratee.- Parameters:
aDecoratee
- The decoratee used for this decorator.aTransmissionMetrics
- TheTransmissionMetrics
to be used for configuring this instance.- Returns:
- The accordingly created
AllocSectionDecoratorSegment
.
-
allocSegmentBody
public static <DECORATEE extends Section> AllocSegmentBody<DECORATEE> allocSegmentBody(DECORATEE aDecoratee) Constructs the decorator with the given decoratee and a width ofTransmissionMetrics.DEFAULT_LENGTH_WIDTH
bytes used to specify the decoratee's length aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of the decoratee's length.- Type Parameters:
DECORATEE
- The type of theSection
decoratee.- Parameters:
aDecoratee
- The decoratee used for this decorator.- Returns:
- The accordingly created
AllocSegmentBody
.
-
allocSegmentHead
Constructs an empty head with a width ofTransmissionMetrics.DEFAULT_LENGTH_WIDTH
bytes used to specify the body's length and aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of the body's length.- Returns:
- The accordingly created
AllocSegmentHead
.
-
allocSegmentHead
Constructs the head with the given body and a width ofTransmissionMetrics.DEFAULT_LENGTH_WIDTH
bytes used to specify the body's length aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of the body's length.- Parameters:
aBody
- The body referenced by this head.- Returns:
- The accordingly created
AllocSegmentHead
.
-
allocSegmentHead
public static AllocSegmentHead allocSegmentHead(AllocSegmentBody<?> aBody, org.refcodes.numerical.Endianess aEndianess) Constructs the head with the given body and a width ofTransmissionMetrics.DEFAULT_LENGTH_WIDTH
bytes used to specify the body's length and the providedEndianess
representation of the body's length.- Parameters:
aBody
- The body referenced by this head.aEndianess
- TheEndianess
to be used for length values.- Returns:
- The accordingly created
AllocSegmentHead
.
-
allocSegmentHead
Constructs the head with the given body and with the given number of bytes used to specify the body's length and aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of the body's length.- Parameters:
aBody
- The body referenced by this head.aLengthWidth
- The width (in bytes) to be used for length values.- Returns:
- The accordingly created
AllocSegmentHead
.
-
allocSegmentHead
public static AllocSegmentHead allocSegmentHead(AllocSegmentBody<?> aBody, int aLengthWidth, org.refcodes.numerical.Endianess aEndianess) Constructs the head with the given body and with the given number of bytes used to specify the body's length and the providedEndianess
representation of the body's length.- Parameters:
aBody
- The body referenced by this head.aLengthWidth
- The width (in bytes) to be used for length values.aEndianess
- TheEndianess
to be used for length values.- Returns:
- The accordingly created
AllocSegmentHead
.
-
allocSegmentHead
public static AllocSegmentHead allocSegmentHead(AllocSegmentBody<?> aBody, TransmissionMetrics aTransmissionMetrics) Constructs the head with the given body. The configuration attributes are taken from theTransmissionMetrics
configuration object, though only those attributes are supported which are also supported by the other constructors!- Parameters:
aBody
- The body referenced by this head.aTransmissionMetrics
- TheTransmissionMetrics
to be used for configuring this instance.- Returns:
- The accordingly created
AllocSegmentHead
.
-
allocSegmentHead
Constructs an empty head with a width ofTransmissionMetrics.DEFAULT_LENGTH_WIDTH
bytes used to specify the body's length and the providedEndianess
representation of the body's length.- Parameters:
aEndianess
- TheEndianess
to be used for length values.- Returns:
- The accordingly created
AllocSegmentHead
.
-
allocSegmentHead
Constructs an empty head with the given number of bytes used to specify the body's length and aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of the body's length.- Parameters:
aLengthWidth
- The width (in bytes) to be used for length values.- Returns:
- The accordingly created
AllocSegmentHead
.
-
allocSegmentHead
public static AllocSegmentHead allocSegmentHead(int aLengthWidth, org.refcodes.numerical.Endianess aEndianess) Constructs an empty head with a width ofTransmissionMetrics.DEFAULT_LENGTH_WIDTH
bytes used to specify the body's length and the providedEndianess
representation of the body's length.- Parameters:
aLengthWidth
- The width (in bytes) to be used for length values.aEndianess
- TheEndianess
to be used for length values.- Returns:
- The accordingly created
AllocSegmentHead
.
-
arraySection
public static <ARRAY extends Segment> SegmentArraySection<ARRAY> arraySection(ARRAY... aSegmentArray) Constructs aSegmentArraySection
with the givenSegment
elements.Segment
instances for the array are created using the provided array's component type.- Type Parameters:
ARRAY
- The type of theSegment
elements to be contained in thisSegmentArraySection
.- Parameters:
aSegmentArray
- The array containing the accordingSegment
elements.- Returns:
- The accordingly created
Segment
.
-
arraySection
public static <ARRAY extends Segment> SegmentArraySection<ARRAY> arraySection(Class<ARRAY> aSegmentClass) Constructs aSegmentArraySection
with instances of the array being created using the providedClass
instance.- Type Parameters:
ARRAY
- The type of theSegment
elements to be contained in thisSegmentArraySection
.- Parameters:
aSegmentClass
- The class from which to produce the the fixed lengthSegment
elements.- Returns:
- The accordingly created
Segment
.
-
arraySection
public static <ARRAY extends Segment> SegmentArraySection<ARRAY> arraySection(org.refcodes.factory.TypeFactory<ARRAY> aSegmentFactory) Constructs aSegmentArraySection
with instances of the array being created using the providedTypeFactory
instance.- Type Parameters:
ARRAY
- The type of theSegment
elements to be contained in thisSegmentArraySection
.- Parameters:
aSegmentFactory
- The factory producing the the fixed lengthSegment
elements.- Returns:
- The accordingly created
Segment
.
-
arraySection
public static <ARRAY extends Segment> SegmentArraySection<ARRAY> arraySection(org.refcodes.factory.TypeFactory<ARRAY> aSegmentFactory, ARRAY... aSegmentArray) Constructs aSegmentArraySection
with the given elements.Segment
instances for the array are created using the providedTypeFactory
instance.- Type Parameters:
ARRAY
- The type of theSegment
elements to be contained in thisSegmentArraySection
.- Parameters:
aSegmentFactory
- The factory producing the the fixed lengthSegment
elements.aSegmentArray
- The array containing the accordingSegment
elements.- Returns:
- The accordingly created
Segment
.
-
asciizArraySegment
public static AsciizArraySegment asciizArraySegment(byte aEndOfStringByte, int aLengthWidth, org.refcodes.numerical.Endianess aEndianess, String... aPayload) Constructs anAsciizArraySegment
using the providedString
elements and using the providedSegment
class for creatingSegment
instances.- Parameters:
aEndOfStringByte
- The alternate value instead of 0 "zero" identifying the end of the string.aLengthWidth
- The width (in bytes) to be used for size values (number of elements in the payload array). * @param aEndianess TheEndianess
to be used for size values.aEndianess
- the endianessaPayload
- TheString
elements being contained in this instance.- Returns:
- The accordingly created
AsciizArraySegment
.
-
asciizArraySegment
Constructs anAsciizArraySegment
containing the provided payload and using theTransmissionMetrics.DEFAULT_LENGTH_WIDTH
as well as theTransmissionMetrics.DEFAULT_ENDIANESS
.- Parameters:
aEndOfStringByte
- The alternate value instead of 0 "zero" identifying the end of the string.aPayload
- TheString
elements being contained in this instance.- Returns:
- The accordingly created
AsciizArraySegment
.
-
asciizArraySegment
public static AsciizArraySegment asciizArraySegment(int aLengthWidth, org.refcodes.numerical.Endianess aEndianess, String... aPayload) Constructs anAsciizArraySegment
using the providedString
elements and using the providedSegment
class for creatingSegment
instances.- Parameters:
aLengthWidth
- The width (in bytes) to be used for size values (number of elements in the payload array). * @param aEndianess TheEndianess
to be used for size values.aEndianess
- the endianessaPayload
- TheString
elements being contained in this instance.- Returns:
- The accordingly created
AsciizArraySegment
.
-
asciizArraySegment
Constructs anAsciizArraySegment
containing the provided payload and using theTransmissionMetrics.DEFAULT_LENGTH_WIDTH
as well as theTransmissionMetrics.DEFAULT_ENDIANESS
.- Parameters:
aPayload
- TheString
elements being contained in this instance.- Returns:
- The accordingly created
AsciizArraySegment
.
-
asciizArraySegment
public static AsciizArraySegment asciizArraySegment(String aAlias, byte aEndOfStringByte, int aLengthWidth, org.refcodes.numerical.Endianess aEndianess, String... aPayload) Constructs anAsciizArraySegment
using the provided arguments.- Parameters:
aAlias
- The alias which identifies the content of this segment.aEndOfStringByte
- The alternate value instead of 0 "zero" identifying the end of the string.aLengthWidth
- The width (in bytes) to be used for size values (number of elements in the payload array).aEndianess
- TheEndianess
to be used for size values.aPayload
- TheString
elements being contained in this instance.- Returns:
- The accordingly created
AsciizArraySegment
.
-
asciizArraySegment
public static AsciizArraySegment asciizArraySegment(String aAlias, int aLengthWidth, org.refcodes.numerical.Endianess aEndianess, String... aPayload) Constructs anAsciizArraySegment
using the provided arguments.- Parameters:
aAlias
- The alias which identifies the content of this segment.aLengthWidth
- The width (in bytes) to be used for size values (number of elements in the payload array).aEndianess
- TheEndianess
to be used for size values.aPayload
- TheString
elements being contained in this instance.- Returns:
- The accordingly created
AsciizArraySegment
.
-
asciizArraySegment
public static AsciizArraySegment asciizArraySegment(String aAlias, TransmissionMetrics aTransmissionMetrics) Constructs anAsciizArraySegment
from the given configuration. The configuration attributes are taken from theTransmissionMetrics
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
- TheTransmissionMetrics
to be used for configuring this instance.- Returns:
- The accordingly created
AsciizArraySegment
.
-
asciizArraySegment
public static AsciizArraySegment asciizArraySegment(String aAlias, TransmissionMetrics aTransmissionMetrics, byte aEndOfStringByte) Constructs anAsciizArraySegment
from the given configuration. The configuration attributes are taken from theTransmissionMetrics
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
- TheTransmissionMetrics
to be used for configuring this instance.aEndOfStringByte
- The alternate value instead of 0 "zero" identifying the end of the string.- Returns:
- The accordingly created
AsciizArraySegment
.
-
asciizArraySegment
public static AsciizArraySegment asciizArraySegment(String aAlias, TransmissionMetrics aTransmissionMetrics, String... aValue) Constructs anAsciizArraySegment
from the given configuration. The configuration attributes are taken from theTransmissionMetrics
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
- TheTransmissionMetrics
to be used for configuring this instance.aValue
- The payload to be contained by theAsciizArraySegment
.- Returns:
- The accordingly created
AsciizArraySegment
.
-
asciizArraySegment
Constructs anAsciizArraySegment
from the given configuration. The configuration attributes are taken from theTransmissionMetrics
configuration object, though only those attributes are supported which are also supported by the other constructors!- Parameters:
aTransmissionMetrics
- TheTransmissionMetrics
to be used for configuring this instance.- Returns:
- The accordingly created
AsciizArraySegment
.
-
asciizArraySegment
public static AsciizArraySegment asciizArraySegment(TransmissionMetrics aTransmissionMetrics, String... aValue) Constructs anAsciizArraySegment
from the given configuration. The configuration attributes are taken from theTransmissionMetrics
configuration object, though only those attributes are supported which are also supported by the other constructors!- Parameters:
aTransmissionMetrics
- TheTransmissionMetrics
to be used for configuring this instance.aValue
- The payload to be contained by theAsciizArraySegment
.- Returns:
- The accordingly created
AsciizArraySegment
.
-
asciizSegment
Constructs an emptyAsciizSegment
. The serialized content (as ofAsciizSegment.toSequence()
orTransmission.transmitTo(java.io.OutputStream)
) of anAsciizSegment
represents an an ASCIIZString
(also known as CString).- Returns:
- The accordingly created
AsciizSegment
.
-
asciizSegment
Constructs an emptyAsciizSegment
. The serialized content (as ofAsciizSegment.toSequence()
orTransmission.transmitTo(java.io.OutputStream)
) of anAsciizSegment
represents an an ASCIIZString
(also known as CString).- Parameters:
aEndOfStringByte
- The alternate value instead of 0 "zero" identifying the end of the string.- Returns:
- The accordingly created
AsciizSegment
.
-
asciizSegment
Constructs anAsciizSegment
with the given (ASCII encoded) bytes payload. The serialized content (as ofAsciizSegment.toSequence()
orTransmission.transmitTo(java.io.OutputStream)
) of anAsciizSegment
represents an an ASCIIZString
(also known as CString). It is in the responsibility of the programmer to make sure that the bytes do not contain any 0 ("zero") values as a value of 0 unintendedly terminates the resultingString
.- Parameters:
aValue
- The payload to be contained by thisAsciizSegment
.- Returns:
- The accordingly created
AsciizSegment
.
-
asciizSegment
Constructs anAsciizSegment
with the given (ASCII encoded) bytes payload. The serialized content (as ofAsciizSegment.toSequence()
orTransmission.transmitTo(java.io.OutputStream)
) of anAsciizSegment
represents an an ASCIIZString
(also known as CString). It is in the responsibility of the programmer to make sure that the bytes do not contain any 0 ("zero") values as a value of 0 unintendedly terminates the resultingString
.- Parameters:
aValue
- The payload to be contained by thisAsciizSegment
.aEndOfStringByte
- The alternate value instead of 0 "zero" identifying the end of the string.- Returns:
- The accordingly created
AsciizSegment
.
-
asciizSegment
Constructs anAsciizSegment
with the givenString
payload. The serialized content (as ofAsciizSegment.toSequence()
orTransmission.transmitTo(java.io.OutputStream)
) of anAsciizSegment
represents an an ASCIIZString
(also known as CString). It is in the responsibility of the programmer to make sure that theString
does not contain any 0 ("zero") values as a value of 0 unintendedly terminates the resultingString
.- Parameters:
aValue
- The payload to be contained by thisAsciizSegment
.- Returns:
- The accordingly created
AsciizSegment
.
-
asciizSegment
Constructs anAsciizSegment
with the givenString
payload. The serialized content (as ofAsciizSegment.toSequence()
orTransmission.transmitTo(java.io.OutputStream)
) of anAsciizSegment
represents an an ASCIIZString
(also known as CString). It is in the responsibility of the programmer to make sure that theString
does not contain any 0 ("zero") values as a value of 0 unintendedly terminates the resultingString
.- Parameters:
aValue
- The payload to be contained by thisAsciizSegment
.aEndOfStringByte
- The alternate value instead of 0 "zero" identifying the end of the string.- Returns:
- The accordingly created
AsciizSegment
.
-
asciizSegment
Constructs anAsciizSegment
with the given (ASCII encoded) bytes payload. The serialized content (as ofAsciizSegment.toSequence()
orTransmission.transmitTo(java.io.OutputStream)
) of anAsciizSegment
represents an an ASCIIZString
(also known as CString). It is in the responsibility of the programmer to make sure that the bytes do not contain any 0 ("zero") values as a value of 0 unintendedly terminates the resultingString
.- Parameters:
aAlias
- The alias which identifies the content of this segment.aValue
- The payload to be contained by thisAsciizSegment
.- Returns:
- The accordingly created
AsciizSegment
.
-
asciizSegment
Constructs anAsciizSegment
with the given (ASCII encoded) bytes payload. The serialized content (as ofAsciizSegment.toSequence()
orTransmission.transmitTo(java.io.OutputStream)
) of anAsciizSegment
represents an an ASCIIZString
(also known as CString). It is in the responsibility of the programmer to make sure that the bytes do not contain any 0 ("zero") values as a value of 0 unintendedly terminates the resultingString
.- Parameters:
aAlias
- The alias which identifies the content of this segment.aValue
- The payload to be contained by thisAsciizSegment
.aEndOfStringByte
- The alternate value instead of 0 "zero" identifying the end of the string.- Returns:
- The accordingly created
AsciizSegment
.
-
asciizSegment
Constructs anAsciizSegment
with the givenString
payload. The serialized content (as ofAsciizSegment.toSequence()
orTransmission.transmitTo(java.io.OutputStream)
) of anAsciizSegment
represents an an ASCIIZString
(also known as CString). It is in the responsibility of the programmer to make sure that theString
does not contain any 0 ("zero") values as a value of 0 unintendedly terminates the resultingString
.- Parameters:
aAlias
- The alias which identifies the content of this segment.aValue
- The payload to be contained by thisAsciizSegment
.- Returns:
- The accordingly created
AsciizSegment
.
-
asciizSegment
Constructs anAsciizSegment
with the givenString
payload. The serialized content (as ofAsciizSegment.toSequence()
orTransmission.transmitTo(java.io.OutputStream)
) of anAsciizSegment
represents an an ASCIIZString
(also known as CString). It is in the responsibility of the programmer to make sure that theString
does not contain any 0 ("zero") values as a value of 0 unintendedly terminates the resultingString
.- Parameters:
aAlias
- The alias which identifies the content of this segment.aValue
- The payload to be contained by thisAsciizSegment
.aEndOfStringByte
- The alternate value instead of 0 "zero" identifying the end of the string.- Returns:
- The accordingly created
AsciizSegment
.
-
asciizSegment
public static AsciizSegment asciizSegment(String aAlias, TransmissionMetrics aTransmissionMetrics, byte[] aValue) Constructs anAsciizSegment
with the given (ASCII encoded) bytes payload. The serialized content (as ofAsciizSegment.toSequence()
orTransmission.transmitTo(java.io.OutputStream)
) of anAsciizSegment
represents an an ASCIIZString
(also known as CString). It is in the responsibility of the programmer to make sure that the bytes do not contain any 0 ("zero") values as a value of 0 unintendedly terminates the resultingString
.- Parameters:
aAlias
- The alias which identifies the content of this segment.aTransmissionMetrics
- TheTransmissionMetrics
to be used for configuring this instance.aValue
- The payload to be contained by thisAsciizSegment
.- Returns:
- The accordingly created
AsciizSegment
.
-
asciizSegment
public static AsciizSegment asciizSegment(String aAlias, TransmissionMetrics aTransmissionMetrics, String aValue) Constructs anAsciizSegment
with the givenString
payload. The serialized content (as ofAsciizSegment.toSequence()
orTransmission.transmitTo(java.io.OutputStream)
) of anAsciizSegment
represents an an ASCIIZString
(also known as CString). It is in the responsibility of the programmer to make sure that theString
does not contain any 0 ("zero") values as a value of 0 unintendedly terminates the resultingString
.- Parameters:
aAlias
- The alias which identifies the content of this segment.aTransmissionMetrics
- TheTransmissionMetrics
to be used for configuring this instance.aValue
- The payload to be contained by thisAsciizSegment
.- Returns:
- The accordingly created
AsciizSegment
.
-
asciizSegment
Constructs an emptyAsciizSegment
. The serialized content (as ofAsciizSegment.toSequence()
orTransmission.transmitTo(java.io.OutputStream)
) of anAsciizSegment
represents an an ASCIIZString
(also known as CString).- Parameters:
aTransmissionMetrics
- TheTransmissionMetrics
to be used for configuring this instance.- Returns:
- The accordingly created
AsciizSegment
.
-
asciizSegment
Constructs anAsciizSegment
with the given (ASCII encoded) bytes payload. The serialized content (as ofAsciizSegment.toSequence()
orTransmission.transmitTo(java.io.OutputStream)
) of anAsciizSegment
represents an an ASCIIZString
(also known as CString). It is in the responsibility of the programmer to make sure that the bytes do not contain any 0 ("zero") values as a value of 0 unintendedly terminates the resultingString
.- Parameters:
aTransmissionMetrics
- TheTransmissionMetrics
to be used for configuring this instance.aValue
- The payload to be contained by thisAsciizSegment
.- Returns:
- The accordingly created
AsciizSegment
.
-
asciizSegment
Constructs anAsciizSegment
with the givenString
payload. The serialized content (as ofAsciizSegment.toSequence()
orTransmission.transmitTo(java.io.OutputStream)
) of anAsciizSegment
represents an an ASCIIZString
(also known as CString). It is in the responsibility of the programmer to make sure that theString
does not contain any 0 ("zero") values as a value of 0 unintendedly terminates the resultingString
.- Parameters:
aTransmissionMetrics
- TheTransmissionMetrics
to be used for configuring this instance.aValue
- The payload to be contained by thisAsciizSegment
.- Returns:
- The accordingly created
AsciizSegment
.
-
assertMagicBytesSection
public static <DECORATEE extends Section> AssertMagicBytesSectionDecorator<DECORATEE> assertMagicBytesSection(DECORATEE aDecoratee, byte... aMagicBytes) Enriches the providedSection
with the given magic bytes being prefixed. Enforces the configured magic bytes to match the received magic bytes (as ofAssertMagicBytesSectionDecorator.fromTransmission(Sequence, int, int)
andAssertMagicBytesSectionDecorator.receiveFrom(java.io.InputStream, int, java.io.OutputStream)
or the like). In case the assertion of the configured magic bytes fails during receiving, then aBadMagicBytesException
orBadMagicBytesSequenceException
is thrown.- Type Parameters:
DECORATEE
- TheSection
type describing theSegment
subclass decoratee.- Parameters:
aDecoratee
- TheSection
which is to be prefixed with magic bytes.aMagicBytes
- The magic bytes to be prefixed.- Returns:
- The accordingly created
AssertMagicBytesSectionDecorator
.
-
assertMagicBytesSection
public static <DECORATEE extends Section> AssertMagicBytesSectionDecorator<DECORATEE> assertMagicBytesSection(DECORATEE aDecoratee, String aMagicBytes) Enriches the providedSection
with magic bytes being prefixed (retrieved from the givenString
). Enforces the configured magic bytes to match the received magic bytes (as ofAssertMagicBytesSectionDecorator.fromTransmission(Sequence, int, int)
andAssertMagicBytesSectionDecorator.receiveFrom(java.io.InputStream, int, java.io.OutputStream)
or the like). In case the assertion of the configured magic bytes fails during receiving, then aBadMagicBytesException
orBadMagicBytesSequenceException
is thrown.- Type Parameters:
DECORATEE
- TheSection
type describing theSegment
subclass decoratee.- Parameters:
aDecoratee
- TheSection
which is to be prefixed with magic bytes.aMagicBytes
- TheString
to be stored by this instance as magic bytes (uses theTransmissionMetrics.DEFAULT_ENCODING
) for byte conversion).- Returns:
- The accordingly created
AssertMagicBytesSectionDecorator
.
-
assertMagicBytesSection
public static <DECORATEE extends Section> AssertMagicBytesSectionDecorator<DECORATEE> assertMagicBytesSection(DECORATEE aDecoratee, String aMagicBytes, Charset aCharset) Enriches the providedSection
with magic bytes being prefixed (retrieved from the givenString
). Enforces the configured magic bytes to match the received magic bytes (as ofAssertMagicBytesSectionDecorator.fromTransmission(Sequence, int, int)
andAssertMagicBytesSectionDecorator.receiveFrom(java.io.InputStream, int, java.io.OutputStream)
or the like). In case the assertion of the configured magic bytes fails during receiving, then aBadMagicBytesException
orBadMagicBytesSequenceException
is thrown.- Type Parameters:
DECORATEE
- TheSection
type describing theSegment
subclass decoratee.- Parameters:
aDecoratee
- TheSection
which is to be prefixed with magic bytes.aMagicBytes
- TheString
to be stored by this instance as magic bytes.aCharset
- TheCharset
to use when converting theString
to a byte array.- Returns:
- The accordingly created
AssertMagicBytesSectionDecorator
.
-
assertMagicBytesSection
public static <DECORATEE extends Section> AssertMagicBytesSectionDecorator<DECORATEE> assertMagicBytesSection(String aAlias, DECORATEE aDecoratee, byte... aMagicBytes) Enriches the providedSection
with the given magic bytes being prefixed. Enforces the configured magic bytes to match the received magic bytes (as ofAssertMagicBytesSectionDecorator.fromTransmission(Sequence, int, int)
andAssertMagicBytesSectionDecorator.receiveFrom(java.io.InputStream, int, java.io.OutputStream)
or the like). In case the assertion of the configured magic bytes fails during receiving, then aBadMagicBytesException
orBadMagicBytesSequenceException
is thrown.- Type Parameters:
DECORATEE
- TheSection
type describing theSegment
subclass decoratee.- Parameters:
aAlias
- The alias which identifies the content of this segment.aDecoratee
- TheSection
which is to be prefixed with magic bytes.aMagicBytes
- The magic bytes to be prefixed.- Returns:
- The accordingly created
AssertMagicBytesSectionDecorator
.
-
assertMagicBytesSection
public static <DECORATEE extends Section> AssertMagicBytesSectionDecorator<DECORATEE> assertMagicBytesSection(String aAlias, DECORATEE aDecoratee, String aMagicBytes) Enriches the providedSection
with magic bytes being prefixed (retrieved from the givenString
). Enforces the configured magic bytes to match the received magic bytes (as ofAssertMagicBytesSectionDecorator.fromTransmission(Sequence, int, int)
andAssertMagicBytesSectionDecorator.receiveFrom(java.io.InputStream, int, java.io.OutputStream)
or the like). In case the assertion of the configured magic bytes fails during receiving, then aBadMagicBytesException
orBadMagicBytesSequenceException
is thrown.- Type Parameters:
DECORATEE
- TheSection
type describing theSegment
subclass decoratee.- Parameters:
aAlias
- The alias which identifies the content of this segment.aDecoratee
- TheSection
which is to be prefixed with magic bytes.aMagicBytes
- TheString
to be stored by this instance as magic bytes (uses theTransmissionMetrics.DEFAULT_ENCODING
) for byte conversion).- Returns:
- The accordingly created
AssertMagicBytesSectionDecorator
.
-
assertMagicBytesSection
public static <DECORATEE extends Section> AssertMagicBytesSectionDecorator<DECORATEE> assertMagicBytesSection(String aAlias, DECORATEE aDecoratee, String aMagicBytes, Charset aCharset) Enriches the providedSection
with magic bytes being prefixed (retrieved from the givenString
). Enforces the configured magic bytes to match the received magic bytes (as ofAssertMagicBytesSectionDecorator.fromTransmission(Sequence, int, int)
andAssertMagicBytesSectionDecorator.receiveFrom(java.io.InputStream, int, java.io.OutputStream)
or the like). In case the assertion of the configured magic bytes fails during receiving, then aBadMagicBytesException
orBadMagicBytesSequenceException
is thrown.- Type Parameters:
DECORATEE
- TheSection
type describing theSegment
subclass decoratee.- Parameters:
aAlias
- The alias which identifies the content of this segment.aDecoratee
- TheSection
which is to be prefixed with magic bytes.aMagicBytes
- TheString
to be stored by this instance as magic bytes.aCharset
- TheCharset
to use when converting theString
to a byte array.- Returns:
- The accordingly created
AssertMagicBytesSectionDecorator
.
-
assertMagicBytesSegment
Constructs anAbstractMagicBytesTransmission
with the according magic bytes. Enforces the configured magic bytes to match the received magic bytes (as ofSegment.fromTransmission(Sequence)
andSegment.SegmentMixin.receiveFrom(java.io.InputStream, java.io.OutputStream)
or the like). In case the assertion of the configured magic bytes fails during receiving, then aBadMagicBytesException
orBadMagicBytesSequenceException
is thrown.- Parameters:
aMagicBytes
- The magic bytes to be stored by this instance.- Returns:
- The accordingly created
AssertMagicBytesSegment
.
-
assertMagicBytesSegment
public static AssertMagicBytesSegment assertMagicBytesSegment(byte[] aMagicBytes, TransmissionMetrics aTransmissionMetrics) Constructs anAbstractMagicBytesTransmission
with the according magic bytes. Enforces the configured magic bytes to match the received magic bytes (as ofSegment.fromTransmission(Sequence)
andSegment.SegmentMixin.receiveFrom(java.io.InputStream, java.io.OutputStream)
or the like). In case the assertion of the configured magic bytes fails during receiving, then aBadMagicBytesException
orBadMagicBytesSequenceException
is thrown.- Parameters:
aMagicBytes
- The bytes to be stored by this instance as magic bytes.aTransmissionMetrics
- TheTransmissionMetrics
to be used for configuring this instance.- Returns:
- The accordingly created
AssertMagicBytesSegment
.
-
assertMagicBytesSegment
public static <DECORATEE extends Segment> AssertMagicBytesSegmentDecorator<DECORATEE> assertMagicBytesSegment(DECORATEE aDecoratee, byte... aMagicBytes) Enriches the providedSegment
with the given magic bytes being prefixed. Enforces the configured magic bytes to match the received magic bytes (as ofSegment.fromTransmission(Sequence)
andSegment.SegmentMixin.receiveFrom(java.io.InputStream, java.io.OutputStream)
or the like). In case the assertion of the configured magic bytes fails during receiving, then aBadMagicBytesException
orBadMagicBytesSequenceException
is thrown.- Type Parameters:
DECORATEE
- TheSegment
type describing theSegment
subclass decoratee.- Parameters:
aDecoratee
- TheSegment
which is to be prefixed with magic bytes.aMagicBytes
- The magic bytes to be prefixed.- Returns:
- The accordingly created
AssertMagicBytesSegmentDecorator
.
-
assertMagicBytesSegment
public static <DECORATEE extends Segment> AssertMagicBytesSegmentDecorator<DECORATEE> assertMagicBytesSegment(DECORATEE aDecoratee, String aMagicBytes) Enriches the providedSegment
with magic bytes being prefixed (retrieved from the givenString
). Enforces the configured magic bytes to match the received magic bytes (as ofSegment.fromTransmission(Sequence)
andAssertMagicBytesSegmentDecorator.receiveFrom(java.io.InputStream, java.io.OutputStream)
or the like). In case the assertion of the configured magic bytes fails during receiving, then aBadMagicBytesException
orBadMagicBytesSequenceException
is thrown.- Type Parameters:
DECORATEE
- TheSegment
type describing theSegment
subclass decoratee.- Parameters:
aDecoratee
- TheSegment
which is to be prefixed with magic bytes.aMagicBytes
- TheString
to be stored by this instance as magic bytes (uses theTransmissionMetrics.DEFAULT_ENCODING
) for byte conversion).- Returns:
- The accordingly created
AssertMagicBytesSegmentDecorator
.
-
assertMagicBytesSegment
public static <DECORATEE extends Segment> AssertMagicBytesSegmentDecorator<DECORATEE> assertMagicBytesSegment(DECORATEE aDecoratee, String aMagicBytes, Charset aCharset) Enriches the providedSegment
with magic bytes being prefixed (retrieved from the givenString
). Enforces the configured magic bytes to match the received magic bytes (as ofSegment.fromTransmission(Sequence)
andAssertMagicBytesSegmentDecorator.receiveFrom(java.io.InputStream, java.io.OutputStream)
or the like). In case the assertion of the configured magic bytes fails during receiving, then aBadMagicBytesException
orBadMagicBytesSequenceException
is thrown.- Type Parameters:
DECORATEE
- TheSegment
type describing theSegment
subclass decoratee.- Parameters:
aDecoratee
- TheSegment
which is to be prefixed with magic bytes.aMagicBytes
- TheString
to be stored by this instance as magic bytes.aCharset
- TheCharset
to use when converting theString
to a byte array.- Returns:
- The accordingly created
AssertMagicBytesSegmentDecorator
.
-
assertMagicBytesSegment
Constructs anAssertMagicBytesSegment
with the according magic bytes (retrieved from the givenString
). Enforces the configured magic bytes to match the received magic bytes (as ofSegment.fromTransmission(Sequence)
andSegment.SegmentMixin.receiveFrom(java.io.InputStream, java.io.OutputStream)
or the like). In case the assertion of the configured magic bytes fails during receiving, then aBadMagicBytesException
orBadMagicBytesSequenceException
is thrown.- Parameters:
aMagicBytes
- TheString
to be stored by this instance as magic bytes (uses theTransmissionMetrics.DEFAULT_ENCODING
) for byte conversion).- Returns:
- The accordingly created
AssertMagicBytesSegment
.
-
assertMagicBytesSegment
Constructs anAssertMagicBytesSegment
with the according magic bytes. Enforces the configured magic bytes to match the received magic bytes (as ofSegment.fromTransmission(Sequence)
andSegment.SegmentMixin.receiveFrom(java.io.InputStream, java.io.OutputStream)
or the like). In case the assertion of the configured magic bytes fails during receiving, then aBadMagicBytesException
orBadMagicBytesSequenceException
is thrown.- Parameters:
aAlias
- The alias which identifies the content of this segment.aMagicBytes
- The magic bytes to be stored by this instance.- Returns:
- The accordingly created
AssertMagicBytesSegment
.
-
assertMagicBytesSegment
public static AssertMagicBytesSegment assertMagicBytesSegment(String aAlias, byte[] aMagicBytes, TransmissionMetrics aTransmissionMetrics) Constructs anAssertMagicBytesSegment
with the according magic bytes. Enforces the configured magic bytes to match the received magic bytes (as ofSegment.fromTransmission(Sequence)
andSegment.SegmentMixin.receiveFrom(java.io.InputStream, java.io.OutputStream)
or the like). In case the assertion of the configured magic bytes fails during receiving, then aBadMagicBytesException
orBadMagicBytesSequenceException
is thrown.- Parameters:
aAlias
- The alias which identifies the content of this segment.aMagicBytes
- The bytes to be stored by this instance as magic bytes.aTransmissionMetrics
- TheTransmissionMetrics
to be used for configuring this instance.- Returns:
- The accordingly created
AssertMagicBytesSegment
.
-
assertMagicBytesSegment
Constructs anAbstractMagicBytesTransmission
with the according magic bytes (retrieved from the givenString
). Enforces the configured magic bytes to match the received magic bytes (as ofSegment.fromTransmission(Sequence)
andSegment.SegmentMixin.receiveFrom(java.io.InputStream, java.io.OutputStream)
or the like). In case the assertion of the configured magic bytes fails during receiving, then aBadMagicBytesException
orBadMagicBytesSequenceException
is thrown.- Parameters:
aMagicBytes
- TheString
to be stored by this instance as magic bytes.aCharset
- TheCharset
to use when converting theString
to a byte array.- Returns:
- The accordingly created
AssertMagicBytesSegment
.
-
assertMagicBytesSegment
public static <DECORATEE extends Segment> AssertMagicBytesSegmentDecorator<DECORATEE> assertMagicBytesSegment(String aAlias, DECORATEE aDecoratee, byte... aMagicBytes) Enriches the providedSegment
with the given magic bytes being prefixed.- Type Parameters:
DECORATEE
- TheSegment
type describing theSegment
subclass decoratee. Enforces the configured magic bytes to match the received magic bytes (as ofSegment.fromTransmission(Sequence)
andAssertMagicBytesSegmentDecorator.receiveFrom(java.io.InputStream, java.io.OutputStream)
or the like). In case the assertion of the configured magic bytes fails during receiving, then aBadMagicBytesException
orBadMagicBytesSequenceException
is thrown.- Parameters:
aAlias
- The alias which identifies the content of this segment.aDecoratee
- TheSegment
which is to be prefixed with magic bytes.aMagicBytes
- The magic bytes to be prefixed.- Returns:
- The accordingly created
AssertMagicBytesSegmentDecorator
.
-
assertMagicBytesSegment
public static <DECORATEE extends Segment> AssertMagicBytesSegmentDecorator<DECORATEE> assertMagicBytesSegment(String aAlias, DECORATEE aDecoratee, String aMagicBytes) Enriches the providedSegment
with magic bytes being prefixed (retrieved from the givenString
). Enforces the configured magic bytes to match the received magic bytes (as ofSegment.fromTransmission(Sequence)
andAssertMagicBytesSegmentDecorator.receiveFrom(java.io.InputStream, java.io.OutputStream)
or the like). In case the assertion of the configured magic bytes fails during receiving, then aBadMagicBytesException
orBadMagicBytesSequenceException
is thrown.- Type Parameters:
DECORATEE
- TheSegment
type describing theSegment
subclass decoratee.- Parameters:
aAlias
- The alias which identifies the content of this segment.aDecoratee
- TheSegment
which is to be prefixed with magic bytes.aMagicBytes
- TheString
to be stored by this instance as magic bytes (uses theTransmissionMetrics.DEFAULT_ENCODING
) for byte conversion).- Returns:
- The accordingly created
AssertMagicBytesSegmentDecorator
.
-
assertMagicBytesSegment
public static <DECORATEE extends Segment> AssertMagicBytesSegmentDecorator<DECORATEE> assertMagicBytesSegment(String aAlias, DECORATEE aDecoratee, String aMagicBytes, Charset aCharset) Enriches the providedSegment
with magic bytes being prefixed (retrieved from the givenString
). Enforces the configured magic bytes to match the received magic bytes (as ofSegment.fromTransmission(Sequence)
andAssertMagicBytesSegmentDecorator.receiveFrom(java.io.InputStream, java.io.OutputStream)
or the like). In case the assertion of the configured magic bytes fails during receiving, then aBadMagicBytesException
orBadMagicBytesSequenceException
is thrown.- Type Parameters:
DECORATEE
- TheSegment
type describing theSegment
subclass decoratee.- Parameters:
aAlias
- The alias which identifies the content of this segment.aDecoratee
- TheSegment
which is to be prefixed with magic bytes.aMagicBytes
- TheString
to be stored by this instance as magic bytes.aCharset
- TheCharset
to use when converting theString
to a byte array.- Returns:
- The accordingly created
AssertMagicBytesSegmentDecorator
.
-
assertMagicBytesSegment
Constructs anAbstractMagicBytesTransmission
with the according magic bytes (retrieved from the givenString
). Enforces the configured magic bytes to match the received magic bytes (as ofSegment.fromTransmission(Sequence)
andSegment.SegmentMixin.receiveFrom(java.io.InputStream, java.io.OutputStream)
or the like). In case the assertion of the configured magic bytes fails during receiving, then aBadMagicBytesException
orBadMagicBytesSequenceException
is thrown.- Parameters:
aAlias
- The alias which identifies the content of this segment.aMagicBytes
- TheString
to be stored by this instance as magic bytes (uses theTransmissionMetrics.DEFAULT_ENCODING
) for byte conversion).- Returns:
- The accordingly created
AssertMagicBytesSegment
.
-
assertMagicBytesSegment
public static AssertMagicBytesSegment assertMagicBytesSegment(String aAlias, String aMagicBytes, Charset aCharset) Constructs anAbstractMagicBytesTransmission
with the according magic bytes (retrieved from the givenString
). Enforces the configured magic bytes to match the received magic bytes (as ofSegment.fromTransmission(Sequence)
andSegment.SegmentMixin.receiveFrom(java.io.InputStream, java.io.OutputStream)
or the like). In case the assertion of the configured magic bytes fails during receiving, then aBadMagicBytesException
orBadMagicBytesSequenceException
is thrown.- Parameters:
aAlias
- The alias which identifies the content of this segment.aMagicBytes
- TheString
to be stored by this instance as magic bytes.aCharset
- TheCharset
to use when converting theString
to a byte array.- Returns:
- The accordingly created
AssertMagicBytesSegment
.
-
assertMagicBytesSegment
public static AssertMagicBytesSegment assertMagicBytesSegment(String aAlias, String aMagicBytes, TransmissionMetrics aTransmissionMetrics) Constructs anAbstractMagicBytesTransmission
with the according magic bytes (retrieved from the givenString
). Enforces the configured magic bytes to match the received magic bytes (as ofSegment.fromTransmission(Sequence)
andSegment.SegmentMixin.receiveFrom(java.io.InputStream, java.io.OutputStream)
or the like). In case the assertion of the configured magic bytes fails during receiving, then aBadMagicBytesException
orBadMagicBytesSequenceException
is thrown.- Parameters:
aAlias
- The alias which identifies the content of this segment.aMagicBytes
- TheString
to be stored by this instance as magic bytes.aTransmissionMetrics
- TheTransmissionMetrics
to be used for configuring this instance.- Returns:
- The accordingly created
AssertMagicBytesSegment
.
-
assertMagicBytesSegment
public static AssertMagicBytesSegment assertMagicBytesSegment(TransmissionMetrics aTransmissionMetrics) Constructs anAbstractMagicBytesTransmission
with the according magic bytes (retrieved from the givenString
). Enforces the configured magic bytes to match the received magic bytes (as ofSegment.fromTransmission(Sequence)
andSegment.SegmentMixin.receiveFrom(java.io.InputStream, java.io.OutputStream)
or the like). In case the assertion of the configured magic bytes fails during receiving, then aBadMagicBytesException
orBadMagicBytesSequenceException
is thrown.- Parameters:
aTransmissionMetrics
- TheTransmissionMetrics
to be used for configuring this instance.- Returns:
- The accordingly created
AssertMagicBytesSegment
.
-
assertMagicBytesSegment
public static AssertMagicBytesSegment assertMagicBytesSegment(String aMagicBytes, TransmissionMetrics aTransmissionMetrics) Constructs anAbstractMagicBytesTransmission
with the according magic bytes (retrieved from the givenString
). Enforces the configured magic bytes to match the received magic bytes (as ofSegment.fromTransmission(Sequence)
andSegment.SegmentMixin.receiveFrom(java.io.InputStream, java.io.OutputStream)
or the like). In case the assertion of the configured magic bytes fails during receiving, then aBadMagicBytesException
orBadMagicBytesSequenceException
is thrown.- Parameters:
aMagicBytes
- TheString
to be stored by this instance as magic bytes.aTransmissionMetrics
- TheTransmissionMetrics
to be used for configuring this instance.- Returns:
- The accordingly created
AssertMagicBytesSegment
.
-
booleanArraySection
Constructs an emptyBooleanArraySection
.- Returns:
- The empty
BooleanArraySection
.
-
booleanArraySection
Constructs aBooleanArraySection
with the given boolean array payload.- Parameters:
aValue
- The array (payload) to be contained by theBooleanArraySection
.- Returns:
- The accordingly created
BooleanArraySection
.
-
booleanArraySection
Constructs aBooleanArraySection
with the given boolean array payload.- Parameters:
aValue
- The array (payload) to be contained by theBooleanArraySection
.- Returns:
- The accordingly created
BooleanArraySection
.
-
booleanArraySection
Constructs an emptyBooleanArraySection
.- Parameters:
aAlias
- The alias which identifies the content of this segment.- Returns:
- The empty
BooleanArraySection
.
-
booleanArraySection
Constructs aBooleanArraySection
with the given boolean array payload.- Parameters:
aAlias
- The alias which identifies the content of this segment.aValue
- The array (payload) to be contained by theBooleanArraySection
.- Returns:
- The accordingly created
BooleanArraySection
.
-
booleanArraySection
Constructs aBooleanArraySection
with the given boolean array payload.- Parameters:
aAlias
- The alias which identifies the content of this segment.aValue
- The array (payload) to be contained by theBooleanArraySection
.- Returns:
- The accordingly created
BooleanArraySection
.
-
booleanSegment
Constructs an emptyBooleanSegment
.- Returns:
- The accordingly created
BooleanSegment
.
-
booleanSegment
Constructs aBooleanSegment
with the given boolean payload.- Parameters:
aValue
- The value (payload) to be contained by theBooleanSegment
.- Returns:
- The accordingly created
BooleanSegment
.
-
booleanSegment
Constructs an emptyBooleanSegment
.- Parameters:
aAlias
- The alias which identifies the content of this segment.- Returns:
- The accordingly created
BooleanSegment
.
-
booleanSegment
Constructs aBooleanSegment
with the given boolean payload.- Parameters:
aAlias
- The alias which identifies the content of this segment.aValue
- The value (payload) to be contained by theBooleanSegment
.- Returns:
- The accordingly created
BooleanSegment
.
-
breakerSection
public static <DECORATEE extends Section> BreakerSectionDecorator<DECORATEE> breakerSection(DECORATEE aDecoratee, int aBreakNumber) Constructs aBreakerSectionDecorator
instance with the given decoratee breaking deserialization of the decorated segments by the given number of times. After the total number of breaking the decoratee has been reached, the decorator behaves transparent (it just delegates without breaking the decoratee any more). This is good to see if a retry mechanism works when using some kind of error correction segment.- Type Parameters:
DECORATEE
- TheSection
type describing theSection
subclass decoratee.- Parameters:
aDecoratee
- The decoratee to be contained by this facade.aBreakNumber
- The number of times to break deserialization.- Returns:
- The accordingly created
BreakerSectionDecorator
.
-
breakerSegment
public static <DECORATEE extends Segment> BreakerSegmentDecorator<DECORATEE> breakerSegment(DECORATEE aDecoratee, int aBreakNumber) Constructs aBreakerSegmentDecorator
instance with the given decoratee breaking deserialization of the decorated segments by the given number of times. After the total number of breaking the decoratee has been reached, the decorator behaves transparent (it just delegates without breaking the decoratee any more). This is good to see if a retry mechanism works when using some kind of error correction segment.- Type Parameters:
DECORATEE
- TheSegment
type describing theSegment
subclass decoratee.- Parameters:
aDecoratee
- The decoratee to be contained by this facade.aBreakNumber
- The number of times to break deserialization.- Returns:
- The accordingly created
BreakerSegmentDecorator
.
-
byteArraySection
Constructs an emptyByteArraySection
.- Returns:
- The empty
ByteArraySection
.
-
byteArraySection
Constructs aByteArraySection
with the given byte array payload.- Parameters:
aArray
- The array (payload) to be contained by theByteArraySection
.- Returns:
- The accordingly created
ByteArraySection
.
-
byteArraySection
Constructs aByteArraySection
with the given byte array payload.- Parameters:
aArray
- The array (payload) to be contained by theByteArraySection
.- Returns:
- The accordingly created
ByteArraySection
.
-
byteArraySection
Constructs an emptyByteArraySection
.- Parameters:
aAlias
- The alias which identifies the content of this segment.- Returns:
- The empty
ByteArraySection
.
-
byteArraySection
Constructs aByteArraySection
with the given byte array payload.- Parameters:
aAlias
- The alias which identifies the content of this segment.aArray
- The array (payload) to be contained by theByteArraySection
.- Returns:
- The accordingly created
ByteArraySection
.
-
byteArraySection
Constructs aByteArraySection
with the given byte array payload.- Parameters:
aAlias
- The alias which identifies the content of this segment.aArray
- The array (payload) to be contained by theByteArraySection
.- Returns:
- The accordingly created
ByteArraySection
.
-
byteSegment
Constructs an emptyByteSegment
.- Returns:
- The accordingly created
ByteSegment
.
-
byteSegment
Constructs aByteSegment
with the given byte payload.- Parameters:
aValue
- The value (payload) to be contained by theByteSegment
.- Returns:
- The accordingly created
ByteSegment
.
-
byteSegment
Constructs an emptyByteSegment
.- Parameters:
aAlias
- The alias which identifies the content of this segment.- Returns:
- The accordingly created
ByteSegment
.
-
byteSegment
Constructs aByteSegment
with the given byte payload.- Parameters:
aAlias
- The alias which identifies the content of this segment.aValue
- The value (payload) to be contained by theByteSegment
.- Returns:
- The accordingly created
ByteSegment
.
-
charArraySection
Constructs an emptyCharArraySection
. Uses UTF-16 by default for encoding.- Returns:
- The accordingly created
CharArraySection
.
-
charArraySection
Constructs aCharArraySection
with the given char array payload. UsesTransmissionMetrics.DEFAULT_ENCODING
by default for encoding.- Parameters:
aPayload
- The payload to be contained by theSection
.- Returns:
- The accordingly created
CharArraySection
.
-
charArraySection
Constructs aCharArraySection
with the given char array payload. UsesTransmissionMetrics.DEFAULT_ENCODING
by default for encoding.- Parameters:
aPayload
- The payload to be contained by theSection
.- Returns:
- The accordingly created
CharArraySection
.
-
charArraySection
Constructs an emptyCharArraySection
.- Parameters:
aCharset
- The charset to be used for encoding.- Returns:
- The accordingly created
CharArraySection
.
-
charArraySection
Constructs aCharArraySection
with the given char array payload. UsesTransmissionMetrics.DEFAULT_ENCODING
by default for encoding.- Parameters:
aCharset
- The charset to be used for encoding.aPayload
- The payload to be contained by theSection
.- Returns:
- The accordingly created
CharArraySection
.
-
charArraySection
Constructs aCharArraySection
with the given char array payload. UsesTransmissionMetrics.DEFAULT_ENCODING
by default for encoding.- Parameters:
aCharset
- The charset to be used for encoding.aPayload
- The payload to be contained by theSection
.- Returns:
- The accordingly created
CharArraySection
.
-
charArraySection
Constructs an emptyCharArraySection
. Uses UTF-16 by default for encoding.- Parameters:
aAlias
- The alias which identifies the content of this segment.- Returns:
- The accordingly created
CharArraySection
.
-
charArraySection
Constructs aCharArraySection
with the given char array payload. UsesTransmissionMetrics.DEFAULT_ENCODING
by default for encoding.- Parameters:
aAlias
- The alias which identifies the content of this segment.aPayload
- The payload to be contained by theSection
.- Returns:
- The accordingly created
CharArraySection
.
-
charArraySection
Constructs aCharArraySection
with the given char array payload. UsesTransmissionMetrics.DEFAULT_ENCODING
by default for encoding.- Parameters:
aAlias
- The alias which identifies the content of this segment.aPayload
- The payload to be contained by theSection
.- Returns:
- The accordingly created
CharArraySection
.
-
charArraySection
Constructs an emptyCharArraySection
.- Parameters:
aAlias
- The alias which identifies the content of this segment.aCharset
- The charset to be used for encoding.- Returns:
- The accordingly created
CharArraySection
.
-
charArraySection
Constructs aCharArraySection
with the given char array payload. UsesTransmissionMetrics.DEFAULT_ENCODING
by default for encoding.- Parameters:
aAlias
- The alias which identifies the content of this segment.aCharset
- The charset to be used for encoding.aPayload
- The payload to be contained by theSection
.- Returns:
- The accordingly created
CharArraySection
.
-
charArraySection
public static CharArraySection charArraySection(String aAlias, Charset aCharset, Character... aPayload) Constructs aCharArraySection
with the given char array payload. UsesTransmissionMetrics.DEFAULT_ENCODING
by default for encoding.- Parameters:
aAlias
- The alias which identifies the content of this segment.aCharset
- The charset to be used for encoding.aPayload
- The payload to be contained by theSection
.- Returns:
- The accordingly created
CharArraySection
.
-
charArraySection
public static CharArraySection charArraySection(String aAlias, TransmissionMetrics aTransmissionMetrics) Constructs an according instance from the given configuration. The configuration attributes are taken from theTransmissionMetrics
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
- TheTransmissionMetrics
to be used for configuring this instance.- Returns:
- The accordingly created
CharArraySection
.
-
charArraySection
public static CharArraySection charArraySection(String aAlias, TransmissionMetrics aTransmissionMetrics, char... aValue) Constructs an according instance from the given configuration. The configuration attributes are taken from theTransmissionMetrics
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
- TheTransmissionMetrics
to be used for configuring this instance.aValue
- The payload to be contained by theCharArraySection
.- Returns:
- The accordingly created
CharArraySection
.
-
charArraySection
public static CharArraySection charArraySection(String aAlias, TransmissionMetrics aTransmissionMetrics, Character... aValue) Constructs an according instance from the given configuration. The configuration attributes are taken from theTransmissionMetrics
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
- TheTransmissionMetrics
to be used for configuring this instance.aValue
- The payload to be contained by theCharArraySection
.- Returns:
- The accordingly created
CharArraySection
.
-
charArraySection
Constructs an according instance from the given configuration. The configuration attributes are taken from theTransmissionMetrics
configuration object, though only those attributes are supported which are also supported by the other constructors!- Parameters:
aTransmissionMetrics
- TheTransmissionMetrics
to be used for configuring this instance.- Returns:
- The accordingly created
CharArraySection
.
-
charArraySection
public static CharArraySection charArraySection(TransmissionMetrics aTransmissionMetrics, char... aValue) Constructs an according instance from the given configuration. The configuration attributes are taken from theTransmissionMetrics
configuration object, though only those attributes are supported which are also supported by the other constructors!- Parameters:
aTransmissionMetrics
- TheTransmissionMetrics
to be used for configuring this instance.aValue
- The payload to be contained by theCharArraySection
.- Returns:
- The accordingly created
CharArraySection
.
-
charArraySection
public static CharArraySection charArraySection(TransmissionMetrics aTransmissionMetrics, Character... aValue) Constructs an according instance from the given configuration. The configuration attributes are taken from theTransmissionMetrics
configuration object, though only those attributes are supported which are also supported by the other constructors!- Parameters:
aTransmissionMetrics
- TheTransmissionMetrics
to be used for configuring this instance.aValue
- The payload to be contained by theCharArraySection
.- Returns:
- The accordingly created
CharArraySection
.
-
charSection
Constructs an emptyCharSection
.- Returns:
- The accordingly created
CharSection
.
-
charSection
Constructs an according instance from the given configuration. The configuration attributes are taken from theTransmissionMetrics
configuration object, though only those attributes are supported which are also supported by the other constructors!- Parameters:
aValue
- The payload to be contained by theCharSection
.aTransmissionMetrics
- TheTransmissionMetrics
to be used for configuring this instance.- Returns:
- The accordingly created
CharSection
.
-
charSection
Constructs aCharSection
with the given char payload.- Parameters:
aPayload
- The payload to be contained by theSection
.- Returns:
- The accordingly created
CharSection
.
-
charSection
Constructs aCharSection
with the given char payload and the givenCharset
.- Parameters:
aPayload
- The payload to be contained by theSection
.aCharset
- The charset to be used for encoding.- Returns:
- The accordingly created
CharSection
.
-
charSection
Constructs an according instance from the given configuration. The configuration attributes are taken from theTransmissionMetrics
configuration object, though only those attributes are supported which are also supported by the other constructors!- Parameters:
aValue
- The payload to be contained by theCharSection
.aTransmissionMetrics
- TheTransmissionMetrics
to be used for configuring this instance.- Returns:
- The accordingly created
CharSection
.
-
charSection
Constructs an emptyCharSection
with the givenCharset
.- Parameters:
aCharset
- The charset to be used for encoding.- Returns:
- The accordingly created
CharSection
.
-
charSection
Constructs an emptyCharSection
.- Parameters:
aAlias
- The alias which identifies the content of this segment.- Returns:
- The accordingly created
CharSection
.
-
charSection
public static CharSection charSection(String aAlias, char aValue, TransmissionMetrics aTransmissionMetrics) Constructs an according instance from the given configuration. The configuration attributes are taken from theTransmissionMetrics
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 theCharSection
.aTransmissionMetrics
- TheTransmissionMetrics
to be used for configuring this instance.- Returns:
- The accordingly created
CharSection
.
-
charSection
Constructs aCharSection
with the given char payload.- Parameters:
aAlias
- The alias which identifies the content of this segment.aPayload
- The payload to be contained by theSection
.- Returns:
- The accordingly created
CharSection
.
-
charSection
Constructs aCharSection
with the given char payload and the givenCharset
.- Parameters:
aAlias
- The alias which identifies the content of this segment.aPayload
- The payload to be contained by theSection
.aCharset
- The charset to be used for encoding.- Returns:
- The accordingly created
CharSection
.
-
charSection
public static CharSection charSection(String aAlias, Character aValue, TransmissionMetrics aTransmissionMetrics) Constructs an according instance from the given configuration. The configuration attributes are taken from theTransmissionMetrics
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 theCharSection
.aTransmissionMetrics
- TheTransmissionMetrics
to be used for configuring this instance.- Returns:
- The accordingly created
CharSection
.
-
charSection
Constructs an emptyCharSection
with the givenCharset
.- Parameters:
aAlias
- The alias which identifies the content of this segment.aCharset
- The charset to be used for encoding.- Returns:
- The accordingly created
CharSection
.
-
charSection
Constructs an according instance from the given configuration. The configuration attributes are taken from theTransmissionMetrics
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
- TheTransmissionMetrics
to be used for configuring this instance.- Returns:
- The accordingly created
CharSection
.
-
charSection
Constructs an according instance from the given configuration. The configuration attributes are taken from theTransmissionMetrics
configuration object, though only those attributes are supported which are also supported by the other constructors!- Parameters:
aTransmissionMetrics
- TheTransmissionMetrics
to be used for configuring this instance.- Returns:
- The accordingly created
CharSection
.
-
cipherSection
public static <DECORATEE extends Section> CipherSectionDecorator<DECORATEE> cipherSection(DECORATEE aDecoratee, Cipher aCipher) Constructs aCipher
transmission decorator applying bijective and inverse functions upon the delegated methods.- Type Parameters:
DECORATEE
- TheSection
type describing theSection
subclass decoratee.- Parameters:
aDecoratee
- The decorator having applied theCipher
'sBijectiveFunction
to encode and theCipher
'sInverseFunction
to decode any data being delegated.aCipher
- TheCipher
providing theBijectiveFunction
to encode and theCipher
'sInverseFunction
to decode any data being delegated.- Returns:
- The accordingly created
CipherSectionDecorator
.
-
cipherSegment
public static <DECORATEE extends Segment> CipherSegmentDecorator<DECORATEE> cipherSegment(DECORATEE aDecoratee, Cipher aCipher) Constructs aCipher
transmission decorator applying bijective and inverse functions upon the delegated methods.- Type Parameters:
DECORATEE
- TheSegment
type describing theSegment
subclass decoratee.- Parameters:
aDecoratee
- The decorator having applied theCipher
'sBijectiveFunction
to encode and theCipher
'sInverseFunction
to decode any data being delegated.aCipher
- TheCipher
providing theBijectiveFunction
to encode and theCipher
'sInverseFunction
to decode any data being delegated.- Returns:
- The accordingly created
CipherSegmentDecorator
.
-
complexTypeSegment
Constructs aComplexTypeSegment
from the givenClass
for the according type T. The attributes of the given data structure are processed all and in alphabetical order. For specifying a predefined set of attributes and their order, please invokecomplexTypeSegment(Class, String[])
instead!- Type Parameters:
T
- The type of the data structure representing the body.- Parameters:
aType
- The data structure's type.- Returns:
- The accordingly created
ComplexTypeSegment
.
-
complexTypeSegment
public static <T> ComplexTypeSegment<T> complexTypeSegment(Class<T> aType, int aLengthWidth, org.refcodes.numerical.Endianess aEndianess, Charset aCharset) Constructs aComplexTypeSegment
from the givenClass
for the according type T. The attributes of the given data structure are processed all and in alphabetical order. For specifying a predefined set of attributes and their order, please invokecomplexTypeSegment(Class, String[])
instead!- Type Parameters:
T
- The type of the data structure representing the body.- Parameters:
aType
- The data structure's type.aLengthWidth
- The width (in bytes) to be used for length values.aEndianess
- TheEndianess
to be used for (length) values.aCharset
- TheCharset
to be used for encoding and decodingString
instances.- Returns:
- The accordingly created
ComplexTypeSegment
.
-
complexTypeSegment
public static <T> ComplexTypeSegment<T> complexTypeSegment(Class<T> aType, int aLengthWidth, org.refcodes.numerical.Endianess aEndianess, Charset aCharset, String... aAttributes) Constructs aComplexTypeSegment
from the givenClass
for the according type T. The attributes of the given data structure are processed using the predefined set of attributes in their according order- Type Parameters:
T
- The type of the data structure representing the body.- Parameters:
aType
- The data structure's type.aLengthWidth
- The width (in bytes) to be used for length values.aEndianess
- TheEndianess
to be used for (length) values.aCharset
- TheCharset
to be used for encoding and decodingString
instances.aAttributes
- The attributes or null if all attributes are to be processed in alphabetical order.- Returns:
- The accordingly created
ComplexTypeSegment
.
-
complexTypeSegment
Constructs aComplexTypeSegment
from the givenClass
for the according type T. The attributes of the given data structure are processed using the predefined set of attributes in their according order- Type Parameters:
T
- The type of the data structure representing the body.- Parameters:
aType
- The data structure's type.aAttributes
- The attributes or null if all attributes are to be processed in alphabetical order.- Returns:
- The accordingly created
ComplexTypeSegment
.
-
complexTypeSegment
public static <T> ComplexTypeSegment<T> complexTypeSegment(Class<T> aType, TransmissionMetrics aTransmissionMetrics) Constructs aComplexTypeSegment
from the givenClass
for the according type T. The attributes of the given data structure are processed all and in alphabetical order. For specifying a predefined set of attributes and their order, please invokecomplexTypeSegment(Class, TransmissionMetrics, String[])
instead! The configuration attributes are taken from theTransmissionMetrics
configuration object, though only those attributes are supported which are also supported by the other constructors!- Type Parameters:
T
- The type of the data structure representing the body.- Parameters:
aType
- The data structure's type.aTransmissionMetrics
- TheTransmissionMetrics
to be used for configuring this instance.- Returns:
- The accordingly created
ComplexTypeSegment
.
-
complexTypeSegment
public static <T> ComplexTypeSegment<T> complexTypeSegment(Class<T> aType, TransmissionMetrics aTransmissionMetrics, String... aAttributes) Constructs aComplexTypeSegment
from the givenClass
for the according type T. The attributes of the given data structure are processed using the predefined set of attributes in their according order The configuration attributes are taken from theTransmissionMetrics
configuration object, though only those attributes are supported which are also supported by the other constructors!- Type Parameters:
T
- The type of the data structure representing the body.- Parameters:
aType
- The data structure's type.aTransmissionMetrics
- TheTransmissionMetrics
to be used for configuring this instance.aAttributes
- The attributes or null if all attributes are to be processed in alphabetical order.- Returns:
- The accordingly created
ComplexTypeSegment
.
-
complexTypeSegment
Constructs aComplexTypeSegment
from the givenClass
for the according type T. The attributes of the given data structure are processed all and in alphabetical order. For specifying a predefined set of attributes and their order, please invokecomplexTypeSegment(Class, String[])
instead!- Type Parameters:
T
- The type of the data structure representing the body.- Parameters:
aAlias
- The alias which identifies the content of this segment.aType
- The data structure's type.- Returns:
- The accordingly created
ComplexTypeSegment
.
-
complexTypeSegment
public static <T> ComplexTypeSegment<T> complexTypeSegment(String aAlias, Class<T> aType, int aLengthWidth, org.refcodes.numerical.Endianess aEndianess, Charset aCharset) Constructs aComplexTypeSegment
from the givenClass
for the according type T. The attributes of the given data structure are processed all and in alphabetical order. For specifying a predefined set of attributes and their order, please invokecomplexTypeSegment(Class, String[])
instead!- Type Parameters:
T
- The type of the data structure representing the body.- Parameters:
aAlias
- The alias which identifies the content of this segment.aType
- The data structure's type.aLengthWidth
- The width (in bytes) to be used for length values.aEndianess
- TheEndianess
to be used for (length) values.aCharset
- TheCharset
to be used for encoding and decodingString
instances.- Returns:
- The accordingly created
ComplexTypeSegment
.
-
complexTypeSegment
public static <T> ComplexTypeSegment<T> complexTypeSegment(String aAlias, Class<T> aType, int aLengthWidth, org.refcodes.numerical.Endianess aEndianess, Charset aCharset, String... aAttributes) Constructs aComplexTypeSegment
from the givenClass
for the according type T. The attributes of the given data structure are processed using the predefined set of attributes in their according order- Type Parameters:
T
- The type of the data structure representing the body.- Parameters:
aAlias
- The alias which identifies the content of this segment.aType
- The data structure's type.aLengthWidth
- The width (in bytes) to be used for length values.aEndianess
- TheEndianess
to be used for (length) values.aCharset
- TheCharset
to be used for encoding and decodingString
instances.aAttributes
- The attributes or null if all attributes are to be processed in alphabetical order.- Returns:
- The accordingly created
ComplexTypeSegment
.
-
complexTypeSegment
public static <T> ComplexTypeSegment<T> complexTypeSegment(String aAlias, Class<T> aType, String... aAttributes) Constructs aComplexTypeSegment
from the givenClass
for the according type T. The attributes of the given data structure are processed using the predefined set of attributes in their according order- Type Parameters:
T
- The type of the data structure representing the body.- Parameters:
aAlias
- The alias which identifies the content of this segment.aType
- The data structure's type.aAttributes
- The attributes or null if all attributes are to be processed in alphabetical order.- Returns:
- The accordingly created
ComplexTypeSegment
.
-
complexTypeSegment
Constructs aComplexTypeSegment
from the given data structure instance. The attributes of the given data structure are processed all and in alphabetical order. For specifying a predefined set of attributes and their order, please invokecomplexTypeSegment(Class, String[])
instead!- Type Parameters:
T
- The type of the data structure representing the body.- Parameters:
aAlias
- The alias which identifies the content of this segment.aValue
- The data structure instance.- Returns:
- The accordingly created
ComplexTypeSegment
.
-
complexTypeSegment
public static <T> ComplexTypeSegment<T> complexTypeSegment(String aAlias, T aValue, int aLengthWidth, org.refcodes.numerical.Endianess aEndianess, Charset aCharset) Constructs aComplexTypeSegment
from the given data structure instance. The attributes of the given data structure are processed all and in alphabetical order. For specifying a predefined set of attributes and their order, please invokecomplexTypeSegment(Class, String[])
instead!- Type Parameters:
T
- The type of the data structure representing the body.- Parameters:
aAlias
- The alias which identifies the content of this segment.aValue
- The data structure instance.aLengthWidth
- The width (in bytes) to be used for length values.aEndianess
- TheEndianess
to be used for (length) values.aCharset
- TheCharset
to be used for encoding and decodingString
instances.- Returns:
- The accordingly created
ComplexTypeSegment
.
-
complexTypeSegment
public static <T> ComplexTypeSegment<T> complexTypeSegment(String aAlias, T aValue, int aLengthWidth, org.refcodes.numerical.Endianess aEndianess, Charset aCharset, String... aAttributes) Constructs aComplexTypeSegment
from the given data structure instance.. The attributes of the given data structure are processed using the predefined set of attributes in their according order- Type Parameters:
T
- The type of the data structure representing the body.- Parameters:
aAlias
- The alias which identifies the content of this segment.aValue
- The value from which to construct the complex type..aLengthWidth
- The width (in bytes) to be used for length values.aEndianess
- TheEndianess
to be used for (length) values.aCharset
- TheCharset
to be used for encoding and decodingString
instances.aAttributes
- The attributes or null if all attributes are to be processed in alphabetical order.- Returns:
- The accordingly created
ComplexTypeSegment
.
-
complexTypeSegment
public static <T> ComplexTypeSegment<T> complexTypeSegment(String aAlias, T aValue, String... aAttributes) Constructs aComplexTypeSegment
from the given data structure instance.. The attributes of the given data structure are processed using the predefined set of attributes in their according order- Type Parameters:
T
- The type of the data structure representing the body.- Parameters:
aAlias
- The alias which identifies the content of this segment.aValue
- The value from which to construct the complex type..aAttributes
- The attributes or null if all attributes are to be processed in alphabetical order.- Returns:
- The accordingly created
ComplexTypeSegment
.
-
complexTypeSegment
Constructs aComplexTypeSegment
from the given data structure instance. The attributes of the given data structure are processed all and in alphabetical order. For specifying a predefined set of attributes and their order, please invokecomplexTypeSegment(Class, String[])
instead!- Type Parameters:
T
- The type of the data structure representing the body.- Parameters:
aValue
- The data structure instance.- Returns:
- The accordingly created
ComplexTypeSegment
.
-
complexTypeSegment
public static <T> ComplexTypeSegment<T> complexTypeSegment(T aValue, int aLengthWidth, org.refcodes.numerical.Endianess aEndianess, Charset aCharset) Constructs aComplexTypeSegment
from the given data structure instance. The attributes of the given data structure are processed all and in alphabetical order. For specifying a predefined set of attributes and their order, please invokecomplexTypeSegment(Class, String[])
instead!- Type Parameters:
T
- The type of the data structure representing the body.- Parameters:
aValue
- The data structure instance.aLengthWidth
- The width (in bytes) to be used for length values.aEndianess
- TheEndianess
to be used for (length) values.aCharset
- TheCharset
to be used for encoding and decodingString
instances.- Returns:
- The accordingly created
ComplexTypeSegment
.
-
complexTypeSegment
public static <T> ComplexTypeSegment<T> complexTypeSegment(T aValue, int aLengthWidth, org.refcodes.numerical.Endianess aEndianess, Charset aCharset, String... aAttributes) Constructs aComplexTypeSegment
from the given data structure instance.. The attributes of the given data structure are processed using the predefined set of attributes in their according order- Type Parameters:
T
- The type of the data structure representing the body.- Parameters:
aValue
- The value from which to construct the complex type..aLengthWidth
- The width (in bytes) to be used for length values.aEndianess
- TheEndianess
to be used for (length) values.aCharset
- TheCharset
to be used for encoding and decodingString
instances.aAttributes
- The attributes or null if all attributes are to be processed in alphabetical order.- Returns:
- The accordingly created
ComplexTypeSegment
.
-
complexTypeSegment
Constructs aComplexTypeSegment
from the given data structure instance.. The attributes of the given data structure are processed using the predefined set of attributes in their according order- Type Parameters:
T
- The type of the data structure representing the body.- Parameters:
aValue
- The value from which to construct the complex type..aAttributes
- The attributes or null if all attributes are to be processed in alphabetical order.- Returns:
- The accordingly created
ComplexTypeSegment
.
-
complexTypeSegment
public static <T> ComplexTypeSegment<T> complexTypeSegment(T aValue, TransmissionMetrics aTransmissionMetrics) Constructs aComplexTypeSegment
from the given data structure instance. The attributes of the given data structure are processed all and in alphabetical order. For specifying a predefined set of attributes and their order, please invokecomplexTypeSegment(Class, TransmissionMetrics, String[])
instead! The configuration attributes are taken from theTransmissionMetrics
configuration object, though only those attributes are supported which are also supported by the other constructors!- Type Parameters:
T
- The type of the data structure representing the body.- Parameters:
aValue
- The data structure instance.aTransmissionMetrics
- TheTransmissionMetrics
to be used for configuring this instance.- Returns:
- The accordingly created
ComplexTypeSegment
.
-
complexTypeSegment
public static <T> ComplexTypeSegment<T> complexTypeSegment(T aValue, TransmissionMetrics aTransmissionMetrics, String... aAttributes) Constructs aComplexTypeSegment
from the given data structure instance.. The attributes of the given data structure are processed using the predefined set of attributes in their according order. The configuration attributes are taken from theTransmissionMetrics
configuration object, though only those attributes are supported which are also supported by the other constructors!- Type Parameters:
T
- The type of the data structure representing the body.- Parameters:
aValue
- The value from which to construct the complex type..aTransmissionMetrics
- TheTransmissionMetrics
to be used for configuring this instance.aAttributes
- The attributes or null if all attributes are to be processed in alphabetical order.- Returns:
- The accordingly created
ComplexTypeSegment
.
-
crcPrefixSection
public static <DECORATEE extends Section> CrcSectionDecorator<DECORATEE> crcPrefixSection(DECORATEE aDecoratee, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm) Constructs aCrcSectionDecorator
wrapping the givenSection
(usingTransmissionMetrics.DEFAULT_ENDIANESS
by default).- Type Parameters:
DECORATEE
- TheSection
type describing theSection
subclass decoratee.- Parameters:
aDecoratee
- TheSection
to be wrapped.aCrcAlgorithm
- TheCrcAlgorithm
to be used for CRC checksum calculation.- Returns:
- The accordingly created
CrcSectionDecorator
.
-
crcPrefixSection
public static <DECORATEE extends Section> CrcSectionDecorator<DECORATEE> crcPrefixSection(DECORATEE aDecoratee, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.numerical.ChecksumValidationMode aChecksumValidationMode) Constructs aCrcSectionDecorator
wrapping the givenSection
(usingTransmissionMetrics.DEFAULT_ENDIANESS
by default).- Type Parameters:
DECORATEE
- TheSection
type describing theSection
subclass decoratee.- Parameters:
aDecoratee
- TheSection
to be wrapped.aCrcAlgorithm
- TheCrcAlgorithm
to be used for CRC checksum calculation.aChecksumValidationMode
- The mode of operation when validating provided CRC checksums against calculated ones.- Returns:
- The accordingly created
CrcSectionDecorator
.
-
crcPrefixSection
public static <DECORATEE extends Section> CrcSectionDecorator<DECORATEE> crcPrefixSection(DECORATEE aDecoratee, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.numerical.ChecksumValidationMode aChecksumValidationMode, org.refcodes.numerical.Endianess aEndianess) Constructs aCrcSectionDecorator
wrapping the givenSection
.- Type Parameters:
DECORATEE
- TheSection
type describing theSection
subclass decoratee.- Parameters:
aDecoratee
- TheSection
to be wrapped.aCrcAlgorithm
- TheCrcAlgorithm
to be used for CRC checksum calculation.aChecksumValidationMode
- The mode of operation when validating provided CRC checksums against calculated ones.aEndianess
- TheEndianess
to use when calculating the CRC checksum.- Returns:
- The accordingly created
CrcSectionDecorator
.
-
crcPrefixSection
public static <DECORATEE extends Section> CrcSectionDecorator<DECORATEE> crcPrefixSection(DECORATEE aDecoratee, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.numerical.Endianess aEndianess) Constructs aCrcSectionDecorator
wrapping the givenSection
.- Type Parameters:
DECORATEE
- TheSection
type describing theSection
subclass decoratee.- Parameters:
aDecoratee
- TheSection
to be wrapped.aCrcAlgorithm
- TheCrcAlgorithm
to be used for CRC checksum calculation.aEndianess
- TheEndianess
to use when calculating the CRC checksum.- Returns:
- The accordingly created
CrcSectionDecorator
.
-
crcPrefixSegment
public static <DECORATEE extends Segment> CrcSegmentDecorator<DECORATEE> crcPrefixSegment(DECORATEE aDecoratee, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm) Constructs aCrcSegmentDecorator
wrapping the givenSegment
(usingTransmissionMetrics.DEFAULT_ENDIANESS
by default).- Type Parameters:
DECORATEE
- TheSegment
type describing theSegment
subclass decoratee.- Parameters:
aDecoratee
- TheSegment
to be wrapped.aCrcAlgorithm
- TheCrcAlgorithm
to be used for CRC checksum calculation.- Returns:
- The accordingly created
CrcSegmentDecorator
.
-
crcPrefixSegment
public static <DECORATEE extends Segment> CrcSegmentDecorator<DECORATEE> crcPrefixSegment(DECORATEE aDecoratee, TransmissionMetrics aTransmissionMetrics) Constructs aCrcSegmentDecorator
wrapping the givenSegment
(usingTransmissionMetrics.DEFAULT_ENDIANESS
by default).- Type Parameters:
DECORATEE
- TheSegment
type describing theSegment
subclass decoratee.- Parameters:
aDecoratee
- TheSegment
to be wrapped.aTransmissionMetrics
- TheTransmissionMetrics
to be used for configuring this instance.- Returns:
- The accordingly created
CrcSegmentDecorator
.
-
crcPrefixSegment
public static <DECORATEE extends Segment> CrcSegmentDecorator<DECORATEE> crcPrefixSegment(DECORATEE aDecoratee, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.numerical.ChecksumValidationMode aChecksumValidationMode) Constructs aCrcSegmentDecorator
wrapping the givenSegment
(usingTransmissionMetrics.DEFAULT_ENDIANESS
by default).- Type Parameters:
DECORATEE
- TheSegment
type describing theSegment
subclass decoratee.- Parameters:
aDecoratee
- TheSegment
to be wrapped.aCrcAlgorithm
- TheCrcAlgorithm
to be used for CRC checksum calculation.aChecksumValidationMode
- The mode of operation when validating provided CRC checksums against calculated ones.- Returns:
- The accordingly created
CrcSegmentDecorator
.
-
crcPrefixSegment
public static <DECORATEE extends Segment> CrcSegmentDecorator<DECORATEE> crcPrefixSegment(DECORATEE aDecoratee, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.numerical.ChecksumValidationMode aChecksumValidationMode, org.refcodes.numerical.Endianess aEndianess) Constructs aCrcSegmentDecorator
wrapping the givenSegment
.- Type Parameters:
DECORATEE
- TheSegment
type describing theSegment
subclass decoratee.- Parameters:
aDecoratee
- TheSegment
to be wrapped.aCrcAlgorithm
- TheCrcAlgorithm
to be used for CRC checksum calculation.aChecksumValidationMode
- The mode of operation when validating provided CRC checksums against calculated ones.aEndianess
- TheEndianess
to use when calculating the CRC checksum.- Returns:
- The accordingly created
CrcSegmentDecorator
.
-
crcPrefixSegment
public static <DECORATEE extends Segment> CrcSegmentDecorator<DECORATEE> crcPrefixSegment(DECORATEE aDecoratee, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.numerical.Endianess aEndianess) Constructs aCrcSegmentDecorator
wrapping the givenSegment
.- Type Parameters:
DECORATEE
- TheSegment
type describing theSegment
subclass decoratee.- Parameters:
aDecoratee
- TheSegment
to be wrapped.aCrcAlgorithm
- TheCrcAlgorithm
to be used for CRC checksum calculation.aEndianess
- TheEndianess
to use when calculating the CRC checksum.- Returns:
- The accordingly created
CrcSegmentDecorator
.
-
crcSection
public static <DECORATEE extends Section> CrcSectionDecorator<DECORATEE> crcSection(DECORATEE aDecoratee, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.mixin.ConcatenateMode aCrcChecksumConcatenateMode) Constructs aCrcSectionDecorator
wrapping the givenSection
(usingTransmissionMetrics.DEFAULT_ENDIANESS
by default).- Type Parameters:
DECORATEE
- TheSection
type describing theSection
subclass decoratee.- Parameters:
aDecoratee
- TheSection
to be wrapped.aCrcAlgorithm
- TheCrcAlgorithm
to be used for CRC checksum calculation.aCrcChecksumConcatenateMode
- The mode of concatenation to use when concatenating the CRC checksum with the transmission'sSequence
.- Returns:
- The accordingly created
CrcSectionDecorator
.
-
crcSection
public static <DECORATEE extends Section> CrcSectionDecorator<DECORATEE> crcSection(DECORATEE aDecoratee, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.mixin.ConcatenateMode aCrcChecksumConcatenateMode, org.refcodes.numerical.ChecksumValidationMode aChecksumValidationMode) Constructs aCrcSectionDecorator
wrapping the givenSection
(usingTransmissionMetrics.DEFAULT_ENDIANESS
by default).- Type Parameters:
DECORATEE
- TheSection
type describing theSection
subclass decoratee.- Parameters:
aDecoratee
- TheSection
to be wrapped.aCrcAlgorithm
- TheCrcAlgorithm
to be used for CRC checksum calculation.aCrcChecksumConcatenateMode
- The mode of concatenation to use when concatenating the CRC checksum with the transmission'sSequence
.aChecksumValidationMode
- The mode of operation when validating provided CRC checksums against calculated ones.- Returns:
- The accordingly created
CrcSectionDecorator
.
-
crcSection
public static <DECORATEE extends Section> CrcSectionDecorator<DECORATEE> crcSection(DECORATEE aDecoratee, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.mixin.ConcatenateMode aCrcChecksumConcatenateMode, org.refcodes.numerical.ChecksumValidationMode aChecksumValidationMode, org.refcodes.numerical.Endianess aEndianess) Constructs aCrcSectionDecorator
wrapping the givenSection
.- Type Parameters:
DECORATEE
- TheSection
type describing theSection
subclass decoratee.- Parameters:
aDecoratee
- TheSection
to be wrapped.aCrcAlgorithm
- TheCrcAlgorithm
to be used for CRC checksum calculation.aCrcChecksumConcatenateMode
- The mode of concatenation to use when concatenating the CRC checksum with the transmission'sSequence
.aChecksumValidationMode
- The mode of operation when validating provided CRC checksums against calculated ones.aEndianess
- TheEndianess
to use when calculating the CRC checksum.- Returns:
- The accordingly created
CrcSectionDecorator
.
-
crcSection
public static <DECORATEE extends Section> CrcSectionDecorator<DECORATEE> crcSection(DECORATEE aDecoratee, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.mixin.ConcatenateMode aCrcChecksumConcatenateMode, org.refcodes.numerical.Endianess aEndianess) Constructs aCrcSectionDecorator
wrapping the givenSection
.- Type Parameters:
DECORATEE
- TheSection
type describing theSection
subclass decoratee.- Parameters:
aDecoratee
- TheSection
to be wrapped.aCrcAlgorithm
- TheCrcAlgorithm
to be used for CRC checksum calculation.aCrcChecksumConcatenateMode
- The mode of concatenation to use when concatenating the CRC checksum with the transmission'sSequence
.aEndianess
- TheEndianess
to use when calculating the CRC checksum.- Returns:
- The accordingly created
CrcSectionDecorator
.
-
crcSection
public static <DECORATEE extends Section> CrcSectionDecorator<DECORATEE> crcSection(DECORATEE aDecoratee, TransmissionMetrics aTransmissionMetrics) Constructs aCrcSectionDecorator
wrapping the givenSection
.- Type Parameters:
DECORATEE
- TheSection
type describing theSection
subclass decoratee.- Parameters:
aDecoratee
- TheSection
to be wrapped.aTransmissionMetrics
- TheTransmissionMetrics
to be used for configuring this instance.- Returns:
- The accordingly created
CrcSectionDecorator
.
-
crcSegment
public static <DECORATEE extends Segment> CrcSegmentDecorator<DECORATEE> crcSegment(DECORATEE aDecoratee, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.mixin.ConcatenateMode aCrcChecksumConcatenateMode) Constructs aCrcSegmentDecorator
wrapping the givenSegment
(usingTransmissionMetrics.DEFAULT_ENDIANESS
by default).- Type Parameters:
DECORATEE
- TheSegment
type describing theSegment
subclass decoratee.- Parameters:
aDecoratee
- TheSegment
to be wrapped.aCrcAlgorithm
- TheCrcAlgorithm
to be used for CRC checksum calculation.aCrcChecksumConcatenateMode
- The mode of concatenation to use when concatenating the CRC checksum with the transmission'sSequence
.- Returns:
- The accordingly created
CrcSegmentDecorator
.
-
crcSegment
public static <DECORATEE extends Segment> CrcSegmentDecorator<DECORATEE> crcSegment(DECORATEE aDecoratee, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.mixin.ConcatenateMode aCrcChecksumConcatenateMode, org.refcodes.numerical.ChecksumValidationMode aChecksumValidationMode) Constructs aCrcSegmentDecorator
wrapping the givenSegment
(usingTransmissionMetrics.DEFAULT_ENDIANESS
by default).- Type Parameters:
DECORATEE
- TheSegment
type describing theSegment
subclass decoratee.- Parameters:
aDecoratee
- TheSegment
to be wrapped.aCrcAlgorithm
- TheCrcAlgorithm
to be used for CRC checksum calculation.aCrcChecksumConcatenateMode
- The mode of concatenation to use when concatenating the CRC checksum with the transmission'sSequence
.aChecksumValidationMode
- The mode of operation when validating provided CRC checksums against calculated ones.- Returns:
- The accordingly created
CrcSegmentDecorator
.
-
crcSegment
public static <DECORATEE extends Segment> CrcSegmentDecorator<DECORATEE> crcSegment(DECORATEE aDecoratee, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.mixin.ConcatenateMode aCrcChecksumConcatenateMode, org.refcodes.numerical.ChecksumValidationMode aChecksumValidationMode, org.refcodes.numerical.Endianess aEndianess) Constructs aCrcSegmentDecorator
wrapping the givenSegment
.- Type Parameters:
DECORATEE
- TheSegment
type describing theSegment
subclass decoratee.- Parameters:
aDecoratee
- TheSegment
to be wrapped.aCrcAlgorithm
- TheCrcAlgorithm
to be used for CRC checksum calculation.aCrcChecksumConcatenateMode
- The mode of concatenation to use when concatenating the CRC checksum with the transmission'sSequence
.aChecksumValidationMode
- The mode of operation when validating provided CRC checksums against calculated ones.aEndianess
- TheEndianess
to use when calculating the CRC checksum.- Returns:
- The accordingly created
CrcSegmentDecorator
.
-
crcSegment
public static <DECORATEE extends Segment> CrcSegmentDecorator<DECORATEE> crcSegment(DECORATEE aDecoratee, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.mixin.ConcatenateMode aCrcChecksumConcatenateMode, org.refcodes.numerical.Endianess aEndianess) Constructs aCrcSegmentDecorator
wrapping the givenSegment
.- Type Parameters:
DECORATEE
- TheSegment
type describing theSegment
subclass decoratee.- Parameters:
aDecoratee
- TheSegment
to be wrapped.aCrcAlgorithm
- TheCrcAlgorithm
to be used for CRC checksum calculation.aCrcChecksumConcatenateMode
- The mode of concatenation to use when concatenating the CRC checksum with the transmission'sSequence
.aEndianess
- TheEndianess
to use when calculating the CRC checksum.- Returns:
- The accordingly created
CrcSegmentDecorator
.
-
crcSegment
public static <DECORATEE extends Segment> CrcSegmentDecorator<DECORATEE> crcSegment(DECORATEE aDecoratee, TransmissionMetrics aTransmissionMetrics) Constructs aCrcSegmentDecorator
wrapping the givenSegment
. The configuration attributes are taken from theTransmissionMetrics
configuration object, though only those attributes are supported which are also supported by the other constructors!- Type Parameters:
DECORATEE
- TheSegment
type describing theSegment
subclass decoratee.- Parameters:
aDecoratee
- TheSegment
to be wrapped.aTransmissionMetrics
- TheTransmissionMetrics
to be used for configuring this instance.- Returns:
- The accordingly created
CrcSegmentDecorator
.
-
crcSegmentPackager
public static CrcSegmentPackager crcSegmentPackager(org.refcodes.mixin.ConcatenateMode aCrcChecksumConcatenateMode) Constructs an accordingCrcSegmentPackager
for packaging and extracting of packets with a CRC checksum (usingTransmissionMetrics.DEFAULT_ENDIANESS
by default).- Parameters:
aCrcChecksumConcatenateMode
- The mode of concatenation to use when concatenating the CRC checksum with the transmission'sSequence
..- Returns:
- The accordingly created
CrcSegmentPackager
.
-
crcSegmentPackager
public static CrcSegmentPackager crcSegmentPackager(org.refcodes.mixin.ConcatenateMode aCrcChecksumConcatenateMode, org.refcodes.numerical.Endianess aEndianess) Constructs an accordingCrcSegmentPackager
for packaging and extracting of packets with a CRC checksum.- Parameters:
aCrcChecksumConcatenateMode
- The mode of concatenation to use when concatenating the CRC checksum with the transmission'sSequence
.aEndianess
- TheEndianess
to use when calculating the CRC checksum.- Returns:
- The accordingly created
CrcSegmentPackager
.
-
crcSegmentPackager
public static CrcSegmentPackager crcSegmentPackager(org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm) Constructs an accordingCrcSegmentPackager
for packaging and extracting of packets with a CRC checksum (usingTransmissionMetrics.DEFAULT_ENDIANESS
by default).- Parameters:
aCrcAlgorithm
- TheCrcAlgorithm
to be used for CRC checksum calculation.- Returns:
- The accordingly created
CrcSegmentPackager
.
-
crcSegmentPackager
public static CrcSegmentPackager crcSegmentPackager(org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.numerical.ChecksumValidationMode aChecksumValidationMode) Constructs an accordingCrcSegmentPackager
for packaging and extracting of packets with a CRC checksum (usingTransmissionMetrics.DEFAULT_ENDIANESS
by default).- Parameters:
aCrcAlgorithm
- TheCrcAlgorithm
to be used for CRC checksum calculation.aChecksumValidationMode
- The mode of operation when validating provided CRC checksums against calculated ones.- Returns:
- The accordingly created
CrcSegmentPackager
.
-
crcSegmentPackager
public static CrcSegmentPackager crcSegmentPackager(org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.numerical.ChecksumValidationMode aChecksumValidationMode, org.refcodes.numerical.Endianess aEndianess) Constructs an accordingCrcSegmentPackager
for packaging and extracting of packets with a CRC checksum.- Parameters:
aCrcAlgorithm
- TheCrcAlgorithm
to be used for CRC checksum calculation.aChecksumValidationMode
- The mode of operation when validating provided CRC checksums against calculated ones.aEndianess
- TheEndianess
to use when calculating the CRC checksum.- Returns:
- The accordingly created
CrcSegmentPackager
.
-
crcSegmentPackager
public static CrcSegmentPackager crcSegmentPackager(org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.mixin.ConcatenateMode aCrcChecksumConcatenateMode) Constructs an accordingCrcSegmentPackager
for packaging and extracting of packets with a CRC checksum (usingTransmissionMetrics.DEFAULT_ENDIANESS
by default).- Parameters:
aCrcAlgorithm
- TheCrcAlgorithm
to be used for CRC checksum calculation.aCrcChecksumConcatenateMode
- The mode of concatenation to use when concatenating the CRC checksum with the transmission'sSequence
..- Returns:
- The accordingly created
CrcSegmentPackager
.
-
crcSegmentPackager
public static CrcSegmentPackager crcSegmentPackager(org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.mixin.ConcatenateMode aCrcChecksumConcatenateMode, org.refcodes.numerical.ChecksumValidationMode aChecksumValidationMode) Constructs an accordingCrcSegmentPackager
for packaging and extracting of packets with a CRC checksum (usingTransmissionMetrics.DEFAULT_ENDIANESS
by default).- Parameters:
aCrcAlgorithm
- TheCrcAlgorithm
to be used for CRC checksum calculation.aCrcChecksumConcatenateMode
- The mode of concatenation to use when concatenating the CRC checksum with the transmission'sSequence
..aChecksumValidationMode
- The mode of operation when validating provided CRC checksums against calculated ones.- Returns:
- The accordingly created
CrcSegmentPackager
.
-
crcSegmentPackager
public static CrcSegmentPackager crcSegmentPackager(org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.mixin.ConcatenateMode aCrcChecksumConcatenateMode, org.refcodes.numerical.ChecksumValidationMode aChecksumValidationMode, org.refcodes.numerical.Endianess aEndianess) Constructs an accordingCrcSegmentPackager
for packaging and extracting of packets with a CRC checksum.- Parameters:
aCrcAlgorithm
- TheCrcAlgorithm
to be used for CRC checksum calculation.aCrcChecksumConcatenateMode
- The mode of concatenation to use when concatenating the CRC checksum with the transmission'sSequence
..aChecksumValidationMode
- The mode of operation when validating provided CRC checksums against calculated ones.aEndianess
- TheEndianess
to use when calculating the CRC checksum.- Returns:
- The accordingly created
CrcSegmentPackager
.
-
crcSegmentPackager
public static CrcSegmentPackager crcSegmentPackager(org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.mixin.ConcatenateMode aCrcChecksumConcatenateMode, org.refcodes.numerical.Endianess aEndianess) Constructs an accordingCrcSegmentPackager
for packaging and extracting of packets with a CRC checksum.- Parameters:
aCrcAlgorithm
- TheCrcAlgorithm
to be used for CRC checksum calculation.aCrcChecksumConcatenateMode
- The mode of concatenation to use when concatenating the CRC checksum with the transmission'sSequence
.aEndianess
- TheEndianess
to use when calculating the CRC checksum.- Returns:
- The accordingly created
CrcSegmentPackager
.
-
crcSegmentPackager
public static CrcSegmentPackager crcSegmentPackager(org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.numerical.Endianess aEndianess) Constructs an accordingCrcSegmentPackager
for packaging and extracting of packets with a CRC checksum.- Parameters:
aCrcAlgorithm
- TheCrcAlgorithm
to be used for CRC checksum calculation.aEndianess
- TheEndianess
to use when calculating the CRC checksum.- Returns:
- The accordingly created
CrcSegmentPackager
.
-
crcSegmentPackager
Constructs an accordingCrcSegmentPackager
for packaging and extracting of packets with a CRC checksum. The configuration attributes are taken from theTransmissionMetrics
configuration object, though only those attributes are supported which are also supported by the other constructors!- Parameters:
aTransmissionMetrics
- TheTransmissionMetrics
to be used for configuring this instance.- Returns:
- The accordingly created
CrcSegmentPackager
.
-
crcSuffixSection
public static <DECORATEE extends Section> CrcSectionDecorator<DECORATEE> crcSuffixSection(DECORATEE aDecoratee, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm) Constructs aCrcSectionDecorator
wrapping the givenSection
(usingTransmissionMetrics.DEFAULT_ENDIANESS
by default).- Type Parameters:
DECORATEE
- TheSection
type describing theSection
subclass decoratee.- Parameters:
aDecoratee
- TheSection
to be wrapped.aCrcAlgorithm
- TheCrcAlgorithm
to be used for CRC checksum calculation.- Returns:
- The accordingly created
CrcSectionDecorator
.
-
crcSuffixSection
public static <DECORATEE extends Section> CrcSectionDecorator<DECORATEE> crcSuffixSection(DECORATEE aDecoratee, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.numerical.ChecksumValidationMode aChecksumValidationMode) Constructs aCrcSectionDecorator
wrapping the givenSection
(usingTransmissionMetrics.DEFAULT_ENDIANESS
by default).- Type Parameters:
DECORATEE
- TheSection
type describing theSection
subclass decoratee.- Parameters:
aDecoratee
- TheSection
to be wrapped.aCrcAlgorithm
- TheCrcAlgorithm
to be used for CRC checksum calculation.aChecksumValidationMode
- The mode of operation when validating provided CRC checksums against calculated ones.- Returns:
- The accordingly created
CrcSectionDecorator
.
-
crcSuffixSection
public static <DECORATEE extends Section> CrcSectionDecorator<DECORATEE> crcSuffixSection(DECORATEE aDecoratee, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.numerical.ChecksumValidationMode aChecksumValidationMode, org.refcodes.numerical.Endianess aEndianess) Constructs aCrcSectionDecorator
wrapping the givenSection
.- Type Parameters:
DECORATEE
- TheSection
type describing theSection
subclass decoratee.- Parameters:
aDecoratee
- TheSection
to be wrapped.aCrcAlgorithm
- TheCrcAlgorithm
to be used for CRC checksum calculation.aChecksumValidationMode
- The mode of operation when validating provided CRC checksums against calculated ones.aEndianess
- TheEndianess
to use when calculating the CRC checksum.- Returns:
- The accordingly created
CrcSectionDecorator
.
-
crcSuffixSection
public static <DECORATEE extends Section> CrcSectionDecorator<DECORATEE> crcSuffixSection(DECORATEE aDecoratee, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.numerical.Endianess aEndianess) Constructs aCrcSectionDecorator
wrapping the givenSection
.- Type Parameters:
DECORATEE
- TheSection
type describing theSection
subclass decoratee.- Parameters:
aDecoratee
- TheSection
to be wrapped.aCrcAlgorithm
- TheCrcAlgorithm
to be used for CRC checksum calculation.aEndianess
- TheEndianess
to use when calculating the CRC checksum.- Returns:
- The accordingly created
CrcSectionDecorator
.
-
crcSuffixSegment
public static <DECORATEE extends Segment> CrcSegmentDecorator<DECORATEE> crcSuffixSegment(DECORATEE aDecoratee, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm) Constructs aCrcSegmentDecorator
wrapping the givenSegment
(usingTransmissionMetrics.DEFAULT_ENDIANESS
by default).- Type Parameters:
DECORATEE
- TheSegment
type describing theSegment
subclass decoratee.- Parameters:
aDecoratee
- TheSegment
to be wrapped.aCrcAlgorithm
- TheCrcAlgorithm
to be used for CRC checksum calculation.- Returns:
- The accordingly created
CrcSegmentDecorator
.
-
crcSuffixSegment
public static <DECORATEE extends Segment> CrcSegmentDecorator<DECORATEE> crcSuffixSegment(DECORATEE aDecoratee, TransmissionMetrics aTransmissionMetrics) Constructs aCrcSegmentDecorator
wrapping the givenSegment
(usingTransmissionMetrics.DEFAULT_ENDIANESS
by default).- Type Parameters:
DECORATEE
- TheSegment
type describing theSegment
subclass decoratee.- Parameters:
aDecoratee
- TheSegment
to be wrapped.aTransmissionMetrics
- TheTransmissionMetrics
to be used for configuring this instance.- Returns:
- The accordingly created
CrcSegmentDecorator
.
-
crcSuffixSegment
public static <DECORATEE extends Segment> CrcSegmentDecorator<DECORATEE> crcSuffixSegment(DECORATEE aDecoratee, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.numerical.ChecksumValidationMode aChecksumValidationMode) Constructs aCrcSegmentDecorator
wrapping the givenSegment
(usingTransmissionMetrics.DEFAULT_ENDIANESS
by default).- Type Parameters:
DECORATEE
- TheSegment
type describing theSegment
subclass decoratee.- Parameters:
aDecoratee
- TheSegment
to be wrapped.aCrcAlgorithm
- TheCrcAlgorithm
to be used for CRC checksum calculation.aChecksumValidationMode
- The mode of operation when validating provided CRC checksums against calculated ones.- Returns:
- The accordingly created
CrcSegmentDecorator
.
-
crcSuffixSegment
public static <DECORATEE extends Segment> CrcSegmentDecorator<DECORATEE> crcSuffixSegment(DECORATEE aDecoratee, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.numerical.ChecksumValidationMode aChecksumValidationMode, org.refcodes.numerical.Endianess aEndianess) Constructs aCrcSegmentDecorator
wrapping the givenSegment
.- Type Parameters:
DECORATEE
- TheSegment
type describing theSegment
subclass decoratee.- Parameters:
aDecoratee
- TheSegment
to be wrapped.aCrcAlgorithm
- TheCrcAlgorithm
to be used for CRC checksum calculation.aChecksumValidationMode
- The mode of operation when validating provided CRC checksums against calculated ones.aEndianess
- TheEndianess
to use when calculating the CRC checksum.- Returns:
- The accordingly created
CrcSegmentDecorator
.
-
crcSuffixSegment
public static <DECORATEE extends Segment> CrcSegmentDecorator<DECORATEE> crcSuffixSegment(DECORATEE aDecoratee, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.numerical.Endianess aEndianess) Constructs aCrcSegmentDecorator
wrapping the givenSegment
.- Type Parameters:
DECORATEE
- TheSegment
type describing theSegment
subclass decoratee.- Parameters:
aDecoratee
- TheSegment
to be wrapped.aCrcAlgorithm
- TheCrcAlgorithm
to be used for CRC checksum calculation.aEndianess
- TheEndianess
to use when calculating the CRC checksum.- Returns:
- The accordingly created
CrcSegmentDecorator
.
-
doubleArraySection
Constructs an emptyDoubleArraySection
with aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theSection
's value.- Returns:
- The accordingly created
DoubleArraySection
.
-
doubleArraySection
Constructs aDoubleArraySection
with the given double array payload and aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theDoubleArraySection
's value.- Parameters:
aValue
- The payload to be contained by theDoubleArraySection
.- Returns:
- The accordingly created
DoubleArraySection
.
-
doubleArraySection
Constructs aDoubleArraySection
with the given double array payload and aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theDoubleArraySection
's value.- Parameters:
aValue
- The payload to be contained by theDoubleArraySection
.- Returns:
- The accordingly created
DoubleArraySection
.
-
doubleArraySection
Constructs an emptyDoubleArraySection
with the givenEndianess
.- Parameters:
aEndianess
- TheEndianess
to be used for payload values.- Returns:
- The accordingly created
DoubleArraySection
.
-
doubleArraySection
public static DoubleArraySection doubleArraySection(org.refcodes.numerical.Endianess aEndianess, double... aValue) Constructs aDoubleArraySection
with the given double array payload and the givenEndianess
for the representation of theDoubleArraySection
's value.- Parameters:
aEndianess
- TheEndianess
to be used for payload values.aValue
- The payload to be contained by theDoubleArraySection
.- Returns:
- The accordingly created
DoubleArraySection
.
-
doubleArraySection
public static DoubleArraySection doubleArraySection(org.refcodes.numerical.Endianess aEndianess, Double... aValue) Constructs aDoubleArraySection
with the given double array payload and the givenEndianess
for the representation of theDoubleArraySection
's value.- Parameters:
aEndianess
- TheEndianess
to be used for payload values.aValue
- The payload to be contained by theDoubleArraySection
.- Returns:
- The accordingly created
DoubleArraySection
.
-
doubleArraySection
Constructs an emptyDoubleArraySection
with aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theSection
's value.- Parameters:
aAlias
- The alias which identifies the content of this segment.- Returns:
- The accordingly created
DoubleArraySection
.
-
doubleArraySection
Constructs aDoubleArraySection
with the given double array payload and aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theDoubleArraySection
's value.- Parameters:
aAlias
- The alias which identifies the content of this segment.aValue
- The payload to be contained by theDoubleArraySection
.- Returns:
- The accordingly created
DoubleArraySection
.
-
doubleArraySection
Constructs aDoubleArraySection
with the given double array payload and aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theDoubleArraySection
's value.- Parameters:
aAlias
- The alias which identifies the content of this segment.aValue
- The payload to be contained by theDoubleArraySection
.- Returns:
- The accordingly created
DoubleArraySection
.
-
doubleArraySection
public static DoubleArraySection doubleArraySection(String aAlias, org.refcodes.numerical.Endianess aEndianess) Constructs an emptyDoubleArraySection
with the givenEndianess
.- Parameters:
aAlias
- The alias which identifies the content of this segment.aEndianess
- TheEndianess
to be used for payload values.- Returns:
- The accordingly created
DoubleArraySection
.
-
doubleArraySection
public static DoubleArraySection doubleArraySection(String aAlias, org.refcodes.numerical.Endianess aEndianess, double... aValue) Constructs aDoubleArraySection
with the given double array payload and the givenEndianess
for the representation of theDoubleArraySection
's value.- Parameters:
aAlias
- The alias which identifies the content of this segment.aEndianess
- TheEndianess
to be used for payload values.aValue
- The payload to be contained by theDoubleArraySection
.- Returns:
- The accordingly created
DoubleArraySection
.
-
doubleArraySection
public static DoubleArraySection doubleArraySection(String aAlias, org.refcodes.numerical.Endianess aEndianess, Double... aValue) Constructs aDoubleArraySection
with the given double array payload and the givenEndianess
for the representation of theDoubleArraySection
's value.- Parameters:
aAlias
- The alias which identifies the content of this segment.aEndianess
- TheEndianess
to be used for payload values.aValue
- The payload to be contained by theDoubleArraySection
.- Returns:
- The accordingly created
DoubleArraySection
.
-
doubleArraySection
public static DoubleArraySection doubleArraySection(String aAlias, TransmissionMetrics aTransmissionMetrics) Constructs an according instance from the given configuration. The configuration attributes are taken from theTransmissionMetrics
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
- TheTransmissionMetrics
to be used for configuring this instance.- Returns:
- The accordingly created
DoubleArraySection
.
-
doubleArraySection
public static DoubleArraySection doubleArraySection(String aAlias, TransmissionMetrics aTransmissionMetrics, double... aValue) Constructs an according instance from the given configuration. The configuration attributes are taken from theTransmissionMetrics
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
- TheTransmissionMetrics
to be used for configuring this instance.aValue
- The payload to be contained by theDoubleArraySection
.- Returns:
- The accordingly created
DoubleArraySection
.
-
doubleArraySection
public static DoubleArraySection doubleArraySection(String aAlias, TransmissionMetrics aTransmissionMetrics, Double... aValue) Constructs an according instance from the given configuration. The configuration attributes are taken from theTransmissionMetrics
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
- TheTransmissionMetrics
to be used for configuring this instance.aValue
- The payload to be contained by theDoubleArraySection
.- Returns:
- The accordingly created
DoubleArraySection
.
-
doubleArraySection
Constructs an according instance from the given configuration. The configuration attributes are taken from theTransmissionMetrics
configuration object, though only those attributes are supported which are also supported by the other constructors!- Parameters:
aTransmissionMetrics
- TheTransmissionMetrics
to be used for configuring this instance.- Returns:
- The accordingly created
DoubleArraySection
.
-
doubleArraySection
public static DoubleArraySection doubleArraySection(TransmissionMetrics aTransmissionMetrics, double... aValue) Constructs an according instance from the given configuration. The configuration attributes are taken from theTransmissionMetrics
configuration object, though only those attributes are supported which are also supported by the other constructors!- Parameters:
aTransmissionMetrics
- TheTransmissionMetrics
to be used for configuring this instance.aValue
- The payload to be contained by theDoubleArraySection
.- Returns:
- The accordingly created
DoubleArraySection
.
-
doubleArraySection
public static DoubleArraySection doubleArraySection(TransmissionMetrics aTransmissionMetrics, Double... aValue) Constructs an according instance from the given configuration. The configuration attributes are taken from theTransmissionMetrics
configuration object, though only those attributes are supported which are also supported by the other constructors!- Parameters:
aTransmissionMetrics
- TheTransmissionMetrics
to be used for configuring this instance.aValue
- The payload to be contained by theDoubleArraySection
.- Returns:
- The accordingly created
DoubleArraySection
.
-
doubleSegment
Constructs an emptyDoubleSegment
with aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theDoubleSegment
's value.- Returns:
- The accordingly created
DoubleSegment
.
-
doubleSegment
Constructs aDoubleSegment
with the given double payload and aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theDoubleSegment
's value.- Parameters:
aValue
- The value (payload) to be contained by theDoubleSegment
.- Returns:
- The accordingly created
DoubleSegment
.
-
doubleSegment
public static DoubleSegment doubleSegment(Double aValue, org.refcodes.numerical.Endianess aEndianess) Constructs aDoubleSegment
with the given double payload and the givenEndianess
for the representation of theSegment
's value.- Parameters:
aValue
- The value (payload) to be contained by theDoubleSegment
.aEndianess
- TheEndianess
to be used for the payload values.- Returns:
- The accordingly created
DoubleSegment
.
-
doubleSegment
Constructs an according instance from the given configuration. The configuration attributes are taken from theTransmissionMetrics
configuration object, though only those attributes are supported which are also supported by the other constructors!- Parameters:
aValue
- The payload to be contained by theDoubleArraySection
.aTransmissionMetrics
- TheTransmissionMetrics
to be used for configuring this instance.- Returns:
- The accordingly created
DoubleSegment
.
-
doubleSegment
Constructs an emptyDoubleSegment
with the givenEndianess
endian representation of theDoubleSegment
's value.- Parameters:
aEndianess
- TheEndianess
to be used for the payload values.- Returns:
- The accordingly created
DoubleSegment
.
-
doubleSegment
Constructs an emptyDoubleSegment
with aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theDoubleSegment
's value.- Parameters:
aAlias
- The alias which identifies the content of this segment.- Returns:
- The accordingly created
DoubleSegment
.
-
doubleSegment
Constructs aDoubleSegment
with the given double payload and aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theDoubleSegment
's value.- Parameters:
aAlias
- The alias which identifies the content of this segment.aValue
- The value (payload) to be contained by theDoubleSegment
.- Returns:
- The accordingly created
DoubleSegment
.
-
doubleSegment
public static DoubleSegment doubleSegment(String aAlias, Double aValue, org.refcodes.numerical.Endianess aEndianess) Constructs aDoubleSegment
with the given double payload and the givenEndianess
for the representation of theSegment
's value.- Parameters:
aAlias
- The alias which identifies the content of this segment.aValue
- The value (payload) to be contained by theDoubleSegment
.aEndianess
- TheEndianess
to be used for the payload values.- Returns:
- The accordingly created
DoubleSegment
.
-
doubleSegment
public static DoubleSegment doubleSegment(String aAlias, Double aValue, TransmissionMetrics aTransmissionMetrics) Constructs an according instance from the given configuration. The configuration attributes are taken from theTransmissionMetrics
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 theDoubleArraySection
.aTransmissionMetrics
- TheTransmissionMetrics
to be used for configuring this instance.- Returns:
- The accordingly created
DoubleSegment
.
-
doubleSegment
public static DoubleSegment doubleSegment(String aAlias, org.refcodes.numerical.Endianess aEndianess) Constructs an emptyDoubleSegment
with the givenEndianess
endian representation of theDoubleSegment
's value.- Parameters:
aAlias
- The alias which identifies the content of this segment.aEndianess
- TheEndianess
to be used for the payload values.- Returns:
- The accordingly created
DoubleSegment
.
-
doubleSegment
Constructs an according instance from the given configuration. The configuration attributes are taken from theTransmissionMetrics
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
- TheTransmissionMetrics
to be used for configuring this instance.- Returns:
- The accordingly created
DoubleSegment
.
-
doubleSegment
Constructs an according instance from the given configuration. The configuration attributes are taken from theTransmissionMetrics
configuration object, though only those attributes are supported which are also supported by the other constructors!- Parameters:
aTransmissionMetrics
- TheTransmissionMetrics
to be used for configuring this instance.- Returns:
- The accordingly created
DoubleSegment
.
-
dummySegmentPackager
Constructs an accordingSegmentPackager.DummySegmentPackager
.- Returns:
- The accordingly created
SegmentPackager.DummySegmentPackager
.
-
dynamicTypeSection
Constructs aDynamicTypeSection
with the default properties (TransmissionMetrics.DEFAULT_LENGTH_WIDTH
,TransmissionMetrics.DEFAULT_ENDIANESS
as well asTransmissionMetrics.DEFAULT_ENCODING
).- Returns:
- The accordingly created
DynamicTypeSection
.
-
dynamicTypeSection
Constructs aDynamicTypeSection
with the givenCharSection
, as well as with theTransmissionMetrics.DEFAULT_LENGTH_WIDTH
and theTransmissionMetrics.DEFAULT_ENDIANESS
.- Parameters:
aCharset
- TheCharset
to be used for encoding and decodingString
instances.- Returns:
- The accordingly created
DynamicTypeSection
.
-
dynamicTypeSection
public static DynamicTypeSection dynamicTypeSection(int aLengthWidth, org.refcodes.numerical.Endianess aEndianess) Constructs aDynamicTypeSection
with the given properties as well as with theTransmissionMetrics.DEFAULT_ENCODING
.- Parameters:
aLengthWidth
- The width (in bytes) to be used for length values.aEndianess
- TheEndianess
to be used for (length) values.- Returns:
- The accordingly created
DynamicTypeSection
.
-
dynamicTypeSection
public static DynamicTypeSection dynamicTypeSection(int aLengthWidth, org.refcodes.numerical.Endianess aEndianess, Charset aCharset) Constructs aDynamicTypeSection
with the given properties.- Parameters:
aLengthWidth
- The width (in bytes) to be used for length values.aEndianess
- TheEndianess
to be used for (length) values.aCharset
- TheCharset
to be used for encoding and decodingString
instances.- Returns:
- The accordingly created
DynamicTypeSection
.
-
dynamicTypeSection
Constructs aDynamicTypeSection
with the default properties (TransmissionMetrics.DEFAULT_LENGTH_WIDTH
,TransmissionMetrics.DEFAULT_ENDIANESS
as well asTransmissionMetrics.DEFAULT_ENCODING
).- Parameters:
aAlias
- The alias which identifies the content of this segment.- Returns:
- The accordingly created
DynamicTypeSection
.
-
dynamicTypeSection
Constructs aDynamicTypeSection
with the givenCharSection
, as well as with theTransmissionMetrics.DEFAULT_LENGTH_WIDTH
and theTransmissionMetrics.DEFAULT_ENDIANESS
.- Parameters:
aAlias
- The alias which identifies the content of this segment.aCharset
- TheCharset
to be used for encoding and decodingString
instances.- Returns:
- The accordingly created
DynamicTypeSection
.
-
dynamicTypeSection
public static DynamicTypeSection dynamicTypeSection(String aAlias, int aLengthWidth, org.refcodes.numerical.Endianess aEndianess) Constructs aDynamicTypeSection
with the given properties as well as with theTransmissionMetrics.DEFAULT_ENCODING
.- Parameters:
aAlias
- The alias which identifies the content of this segment.aLengthWidth
- The width (in bytes) to be used for length values.aEndianess
- TheEndianess
to be used for (length) values.- Returns:
- The accordingly created
DynamicTypeSection
.
-
dynamicTypeSection
public static DynamicTypeSection dynamicTypeSection(String aAlias, int aLengthWidth, org.refcodes.numerical.Endianess aEndianess, Charset aCharset) Constructs aDynamicTypeSection
with the given properties.- Parameters:
aAlias
- The alias which identifies the content of this segment.aLengthWidth
- The width (in bytes) to be used for length values.aEndianess
- TheEndianess
to be used for (length) values.aCharset
- TheCharset
to be used for encoding and decodingString
instances.- Returns:
- The accordingly created
DynamicTypeSection
.
-
dynamicTypeSection
Constructs aDynamicTypeSection
with the default properties (TransmissionMetrics.DEFAULT_LENGTH_WIDTH
,TransmissionMetrics.DEFAULT_ENDIANESS
as well asTransmissionMetrics.DEFAULT_ENCODING
). It is pre-initialized with the given value as ofDynamicTypeSection.fromType(Object)
.- Type Parameters:
T
- The type of the data structure representing the body.- Parameters:
aAlias
- The alias which identifies the content of this segment.aValue
- The data structure's value.- Returns:
- The accordingly created
DynamicTypeSection
.
-
dynamicTypeSection
Constructs aDynamicTypeSection
with the givenCharSection
, as well as with theTransmissionMetrics.DEFAULT_LENGTH_WIDTH
and theTransmissionMetrics.DEFAULT_ENDIANESS
. It is pre-initialized with the given value as ofDynamicTypeSection.fromType(Object)
.- Type Parameters:
T
- The type of the data structure representing the body.- Parameters:
aAlias
- The alias which identifies the content of this segment.aValue
- The data structure's value.aCharset
- TheCharset
to be used for encoding and decodingString
instances.- Returns:
- The accordingly created
DynamicTypeSection
.
-
dynamicTypeSection
public static <T> DynamicTypeSection dynamicTypeSection(String aAlias, T aValue, Charset aCharset, String... aAttributes) Constructs aDynamicTypeSection
with the givenCharSection
, as well as with theTransmissionMetrics.DEFAULT_LENGTH_WIDTH
and theTransmissionMetrics.DEFAULT_ENDIANESS
. It is pre-initialized with the given value as ofDynamicTypeSection.fromType(Object, String...)
.- Type Parameters:
T
- The type of the data structure representing the body.- Parameters:
aAlias
- The alias which identifies the content of this segment.aValue
- The data structure's value.aCharset
- TheCharset
to be used for encoding and decodingString
instances.aAttributes
- The attributes or null if all attributes are to be processed in alphabetical order.- Returns:
- The accordingly created
DynamicTypeSection
.
-
dynamicTypeSection
public static <T> DynamicTypeSection dynamicTypeSection(String aAlias, T aValue, int aLengthWidth, org.refcodes.numerical.Endianess aEndianess) Constructs aDynamicTypeSection
with the given properties as well as with theTransmissionMetrics.DEFAULT_ENCODING
. It is pre-initialized with the given value as ofDynamicTypeSection.fromType(Object)
.- Type Parameters:
T
- The type of the data structure representing the body.- Parameters:
aAlias
- The alias which identifies the content of this segment.aValue
- The data structure's value.aLengthWidth
- The width (in bytes) to be used for length values.aEndianess
- TheEndianess
to be used for (length) values.- Returns:
- The accordingly created
DynamicTypeSection
.
-
dynamicTypeSection
public static <T> DynamicTypeSection dynamicTypeSection(String aAlias, T aValue, int aLengthWidth, org.refcodes.numerical.Endianess aEndianess, Charset aCharset) Constructs aDynamicTypeSection
with the given properties. It is pre-initialized with the given value as ofDynamicTypeSection.fromType(Object)
.- Type Parameters:
T
- The type of the data structure representing the body.- Parameters:
aAlias
- The alias which identifies the content of this segment.aValue
- The data structure's value.aLengthWidth
- The width (in bytes) to be used for length values.aEndianess
- TheEndianess
to be used for (length) values.aCharset
- TheCharset
to be used for encoding and decodingString
instances.- Returns:
- The accordingly created
DynamicTypeSection
.
-
dynamicTypeSection
public static <T> DynamicTypeSection dynamicTypeSection(String aAlias, T aValue, int aLengthWidth, org.refcodes.numerical.Endianess aEndianess, Charset aCharset, String... aAttributes) Constructs aDynamicTypeSection
with the given properties. It is pre-initialized with the given value as ofDynamicTypeSection.fromType(Object, String...)
.- Type Parameters:
T
- The type of the data structure representing the body.- Parameters:
aAlias
- The alias which identifies the content of this segment.aValue
- The data structure's value.aLengthWidth
- The width (in bytes) to be used for length values.aEndianess
- TheEndianess
to be used for (length) values.aCharset
- TheCharset
to be used for encoding and decodingString
instances.aAttributes
- The attributes or null if all attributes are to be processed in alphabetical order.- Returns:
- The accordingly created
DynamicTypeSection
.
-
dynamicTypeSection
public static <T> DynamicTypeSection dynamicTypeSection(String aAlias, T aValue, int aLengthWidth, org.refcodes.numerical.Endianess aEndianess, String... aAttributes) Constructs aDynamicTypeSection
with the given properties as well as with theTransmissionMetrics.DEFAULT_ENCODING
. It is pre-initialized with the given value as ofDynamicTypeSection.fromType(Object, String...)
.- Type Parameters:
T
- The type of the data structure representing the body.- Parameters:
aAlias
- The alias which identifies the content of this segment.aValue
- The data structure's value.aLengthWidth
- The width (in bytes) to be used for length values.aEndianess
- TheEndianess
to be used for (length) values.aAttributes
- The attributes or null if all attributes are to be processed in alphabetical order.- Returns:
- The accordingly created
DynamicTypeSection
.
-
dynamicTypeSection
public static <T> DynamicTypeSection dynamicTypeSection(String aAlias, T aValue, String... aAttributes) Constructs aDynamicTypeSection
with the default properties (TransmissionMetrics.DEFAULT_LENGTH_WIDTH
,TransmissionMetrics.DEFAULT_ENDIANESS
as well asTransmissionMetrics.DEFAULT_ENCODING
). It is pre-initialized with the given value as ofDynamicTypeSection.fromType(Object, String...)
.- Type Parameters:
T
- The type of the data structure representing the body.- Parameters:
aAlias
- The alias which identifies the content of this segment.aValue
- The data structure's value.aAttributes
- The attributes or null if all attributes are to be processed in alphabetical order.- Returns:
- The accordingly created
DynamicTypeSection
.
-
dynamicTypeSection
public static <T> DynamicTypeSection dynamicTypeSection(String aAlias, T aValue, TransmissionMetrics aTransmissionMetrics) Constructs aDynamicTypeSection
with the given properties. The configuration attributes are taken from theTransmissionMetrics
configuration object, though only those attributes are supported which are also supported by the other constructors!- Type Parameters:
T
- The type of the data structure representing the body.- Parameters:
aAlias
- The alias which identifies the content of this segment.aValue
- The data structure's value.aTransmissionMetrics
- TheTransmissionMetrics
to be used for configuring this instance.- Returns:
- The accordingly created
DynamicTypeSection
.
-
dynamicTypeSection
public static <T> DynamicTypeSection dynamicTypeSection(String aAlias, T aValue, TransmissionMetrics aTransmissionMetrics, String... aAttributes) Constructs aDynamicTypeSection
with the given properties. The configuration attributes are taken from theTransmissionMetrics
configuration object, though only those attributes are supported which are also supported by the other constructors!- Type Parameters:
T
- The type of the data structure representing the body.- Parameters:
aAlias
- The alias which identifies the content of this segment.aValue
- The data structure's value.aTransmissionMetrics
- TheTransmissionMetrics
to be used for configuring this instance.aAttributes
- The attributes or null if all attributes are to be processed in alphabetical order.- Returns:
- The accordingly created
DynamicTypeSection
.
-
dynamicTypeSection
public static DynamicTypeSection dynamicTypeSection(String aAlias, TransmissionMetrics aTransmissionMetrics) Constructs aDynamicTypeSection
with the given properties. The configuration attributes are taken from theTransmissionMetrics
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 segment.aTransmissionMetrics
- TheTransmissionMetrics
to be used for configuring this instance.- Returns:
- The accordingly created
DynamicTypeSection
.
-
dynamicTypeSection
Constructs aDynamicTypeSection
with the default properties (TransmissionMetrics.DEFAULT_LENGTH_WIDTH
,TransmissionMetrics.DEFAULT_ENDIANESS
as well asTransmissionMetrics.DEFAULT_ENCODING
). It is pre-initialized with the given value as ofDynamicTypeSection.fromType(Object)
.- Type Parameters:
T
- The type of the data structure representing the body.- Parameters:
aValue
- The data structure's value.- Returns:
- The accordingly created
DynamicTypeSection
.
-
dynamicTypeSection
Constructs aDynamicTypeSection
with the givenCharSection
, as well as with theTransmissionMetrics.DEFAULT_LENGTH_WIDTH
and theTransmissionMetrics.DEFAULT_ENDIANESS
. It is pre-initialized with the given value as ofDynamicTypeSection.fromType(Object)
.- Type Parameters:
T
- The type of the data structure representing the body.- Parameters:
aValue
- The data structure's value.aCharset
- TheCharset
to be used for encoding and decodingString
instances.- Returns:
- The accordingly created
DynamicTypeSection
.
-
dynamicTypeSection
public static <T> DynamicTypeSection dynamicTypeSection(T aValue, Charset aCharset, String... aAttributes) Constructs aDynamicTypeSection
with the givenCharSection
, as well as with theTransmissionMetrics.DEFAULT_LENGTH_WIDTH
and theTransmissionMetrics.DEFAULT_ENDIANESS
. It is pre-initialized with the given value as ofDynamicTypeSection.fromType(Object, String...)
.- Type Parameters:
T
- The type of the data structure representing the body.- Parameters:
aValue
- The data structure's value.aCharset
- TheCharset
to be used for encoding and decodingString
instances.aAttributes
- The attributes or null if all attributes are to be processed in alphabetical order.- Returns:
- The accordingly created
DynamicTypeSection
.
-
dynamicTypeSection
public static <T> DynamicTypeSection dynamicTypeSection(T aValue, int aLengthWidth, org.refcodes.numerical.Endianess aEndianess) Constructs aDynamicTypeSection
with the given properties as well as with theTransmissionMetrics.DEFAULT_ENCODING
. It is pre-initialized with the given value as ofDynamicTypeSection.fromType(Object)
.- Type Parameters:
T
- The type of the data structure representing the body.- Parameters:
aValue
- The data structure's value.aLengthWidth
- The width (in bytes) to be used for length values.aEndianess
- TheEndianess
to be used for (length) values.- Returns:
- The accordingly created
DynamicTypeSection
.
-
dynamicTypeSection
public static <T> DynamicTypeSection dynamicTypeSection(T aValue, int aLengthWidth, org.refcodes.numerical.Endianess aEndianess, Charset aCharset) Constructs aDynamicTypeSection
with the given properties. It is pre-initialized with the given value as ofDynamicTypeSection.fromType(Object)
.- Type Parameters:
T
- The type of the data structure representing the body.- Parameters:
aValue
- The data structure's value.aLengthWidth
- The width (in bytes) to be used for length values.aEndianess
- TheEndianess
to be used for (length) values.aCharset
- TheCharset
to be used for encoding and decodingString
instances.- Returns:
- The accordingly created
DynamicTypeSection
.
-
dynamicTypeSection
public static <T> DynamicTypeSection dynamicTypeSection(T aValue, int aLengthWidth, org.refcodes.numerical.Endianess aEndianess, Charset aCharset, String... aAttributes) Constructs aDynamicTypeSection
with the given properties. It is pre-initialized with the given value as ofDynamicTypeSection.fromType(Object, String...)
.- Type Parameters:
T
- The type of the data structure representing the body.- Parameters:
aValue
- The data structure's value.aLengthWidth
- The width (in bytes) to be used for length values.aEndianess
- TheEndianess
to be used for (length) values.aCharset
- TheCharset
to be used for encoding and decodingString
instances.aAttributes
- The attributes or null if all attributes are to be processed in alphabetical order.- Returns:
- The accordingly created
DynamicTypeSection
.
-
dynamicTypeSection
public static <T> DynamicTypeSection dynamicTypeSection(T aValue, int aLengthWidth, org.refcodes.numerical.Endianess aEndianess, String... aAttributes) Constructs aDynamicTypeSection
with the given properties as well as with theTransmissionMetrics.DEFAULT_ENCODING
. It is pre-initialized with the given value as ofDynamicTypeSection.fromType(Object, String...)
.- Type Parameters:
T
- The type of the data structure representing the body.- Parameters:
aValue
- The data structure's value.aLengthWidth
- The width (in bytes) to be used for length values.aEndianess
- TheEndianess
to be used for (length) values.aAttributes
- The attributes or null if all attributes are to be processed in alphabetical order.- Returns:
- The accordingly created
DynamicTypeSection
.
-
dynamicTypeSection
Constructs aDynamicTypeSection
with the default properties (TransmissionMetrics.DEFAULT_LENGTH_WIDTH
,TransmissionMetrics.DEFAULT_ENDIANESS
as well asTransmissionMetrics.DEFAULT_ENCODING
). It is pre-initialized with the given value as ofDynamicTypeSection.fromType(Object, String...)
.- Type Parameters:
T
- The type of the data structure representing the body.- Parameters:
aValue
- The data structure's value.aAttributes
- The attributes or null if all attributes are to be processed in alphabetical order.- Returns:
- The accordingly created
DynamicTypeSection
.
-
dynamicTypeSection
public static <T> DynamicTypeSection dynamicTypeSection(T aValue, TransmissionMetrics aTransmissionMetrics) Constructs aDynamicTypeSection
with the given properties. The configuration attributes are taken from theTransmissionMetrics
configuration object, though only those attributes are supported which are also supported by the other constructors!- Type Parameters:
T
- The type of the data structure representing the body.- Parameters:
aValue
- The data structure's value.aTransmissionMetrics
- TheTransmissionMetrics
to be used for configuring this instance.- Returns:
- The accordingly created
DynamicTypeSection
.
-
dynamicTypeSection
public static <T> DynamicTypeSection dynamicTypeSection(T aValue, TransmissionMetrics aTransmissionMetrics, String... aAttributes) Constructs aDynamicTypeSection
with the given properties. The configuration attributes are taken from theTransmissionMetrics
configuration object, though only those attributes are supported which are also supported by the other constructors!- Type Parameters:
T
- The type of the data structure representing the body.- Parameters:
aValue
- The data structure's value.aTransmissionMetrics
- TheTransmissionMetrics
to be used for configuring this instance.aAttributes
- The attributes or null if all attributes are to be processed in alphabetical order.- Returns:
- The accordingly created
DynamicTypeSection
.
-
dynamicTypeSection
Constructs aDynamicTypeSection
with the given properties. The configuration attributes are taken from theTransmissionMetrics
configuration object, though only those attributes are supported which are also supported by the other constructors!- Parameters:
aTransmissionMetrics
- TheTransmissionMetrics
to be used for configuring this instance.- Returns:
- The accordingly created
DynamicTypeSection
.
-
dynamicTypeSegment
Constructs aDynamicTypeSegment
with the default properties (TransmissionMetrics.DEFAULT_LENGTH_WIDTH
,TransmissionMetrics.DEFAULT_ENDIANESS
as well asTransmissionMetrics.DEFAULT_ENCODING
).- Returns:
- The accordingly created
DynamicTypeSegment
.
-
dynamicTypeSegment
Constructs aDynamicTypeSegment
with the givenCharSection
, as well as with theTransmissionMetrics.DEFAULT_LENGTH_WIDTH
and theTransmissionMetrics.DEFAULT_ENDIANESS
.- Parameters:
aCharset
- TheCharset
to be used for encoding and decodingString
instances.- Returns:
- The accordingly created
DynamicTypeSegment
.
-
dynamicTypeSegment
public static DynamicTypeSegment dynamicTypeSegment(int aLengthWidth, org.refcodes.numerical.Endianess aEndianess) Constructs aDynamicTypeSegment
with the given properties as well as with theTransmissionMetrics.DEFAULT_ENCODING
.- Parameters:
aLengthWidth
- The width (in bytes) to be used for length values.aEndianess
- TheEndianess
to be used for (length) values.- Returns:
- The accordingly created
DynamicTypeSegment
.
-
dynamicTypeSegment
public static DynamicTypeSegment dynamicTypeSegment(int aLengthWidth, org.refcodes.numerical.Endianess aEndianess, Charset aCharset) Constructs aDynamicTypeSegment
with the given properties.- Parameters:
aLengthWidth
- The width (in bytes) to be used for length values.aEndianess
- TheEndianess
to be used for (length) values.aCharset
- TheCharset
to be used for encoding and decodingString
instances.- Returns:
- The accordingly created
DynamicTypeSegment
.
-
dynamicTypeSegment
Constructs aDynamicTypeSegment
with the default properties (TransmissionMetrics.DEFAULT_LENGTH_WIDTH
,TransmissionMetrics.DEFAULT_ENDIANESS
as well asTransmissionMetrics.DEFAULT_ENCODING
).- Parameters:
aAlias
- The alias which identifies the content of this segment.- Returns:
- The accordingly created
DynamicTypeSegment
.
-
dynamicTypeSegment
Constructs aDynamicTypeSegment
with the givenCharSection
, as well as with theTransmissionMetrics.DEFAULT_LENGTH_WIDTH
and theTransmissionMetrics.DEFAULT_ENDIANESS
.- Parameters:
aAlias
- The alias which identifies the content of this segment.aCharset
- TheCharset
to be used for encoding and decodingString
instances.- Returns:
- The accordingly created
DynamicTypeSegment
.
-
dynamicTypeSegment
public static DynamicTypeSegment dynamicTypeSegment(String aAlias, int aLengthWidth, org.refcodes.numerical.Endianess aEndianess) Constructs aDynamicTypeSegment
with the given properties as well as with theTransmissionMetrics.DEFAULT_ENCODING
.- Parameters:
aAlias
- The alias which identifies the content of this segment.aLengthWidth
- The width (in bytes) to be used for length values.aEndianess
- TheEndianess
to be used for (length) values.- Returns:
- The accordingly created
DynamicTypeSegment
.
-
dynamicTypeSegment
public static DynamicTypeSegment dynamicTypeSegment(String aAlias, int aLengthWidth, org.refcodes.numerical.Endianess aEndianess, Charset aCharset) Constructs aDynamicTypeSegment
with the given properties.- Parameters:
aAlias
- The alias which identifies the content of this segment.aLengthWidth
- The width (in bytes) to be used for length values.aEndianess
- TheEndianess
to be used for (length) values.aCharset
- TheCharset
to be used for encoding and decodingString
instances.- Returns:
- The accordingly created
DynamicTypeSegment
.
-
dynamicTypeSegment
Constructs aDynamicTypeSegment
with the default properties (TransmissionMetrics.DEFAULT_LENGTH_WIDTH
,TransmissionMetrics.DEFAULT_ENDIANESS
as well asTransmissionMetrics.DEFAULT_ENCODING
). It is pre-initialized with the given value as ofDynamicTypeSegment.fromType(Object)
.- Type Parameters:
T
- The type of the data structure representing the body.- Parameters:
aAlias
- The alias which identifies the content of this segment.aValue
- The data structure's value.- Returns:
- The accordingly created
DynamicTypeSegment
.
-
dynamicTypeSegment
Constructs aDynamicTypeSegment
with the givenCharSection
, as well as with theTransmissionMetrics.DEFAULT_LENGTH_WIDTH
and theTransmissionMetrics.DEFAULT_ENDIANESS
. It is pre-initialized with the given value as ofDynamicTypeSegment.fromType(Object)
.- Type Parameters:
T
- The type of the data structure representing the body.- Parameters:
aAlias
- The alias which identifies the content of this segment.aValue
- The data structure's value.aCharset
- TheCharset
to be used for encoding and decodingString
instances.- Returns:
- The accordingly created
DynamicTypeSegment
.
-
dynamicTypeSegment
public static <T> DynamicTypeSegment dynamicTypeSegment(String aAlias, T aValue, Charset aCharset, String... aAttributes) Constructs aDynamicTypeSegment
with the givenCharSection
, as well as with theTransmissionMetrics.DEFAULT_LENGTH_WIDTH
and theTransmissionMetrics.DEFAULT_ENDIANESS
. It is pre-initialized with the given value as ofDynamicTypeSegment.fromType(Object, String...)
.- Type Parameters:
T
- The type of the data structure representing the body.- Parameters:
aAlias
- The alias which identifies the content of this segment.aValue
- The data structure's value.aCharset
- TheCharset
to be used for encoding and decodingString
instances.aAttributes
- The attributes or null if all attributes are to be processed in alphabetical order.- Returns:
- The accordingly created
DynamicTypeSegment
.
-
dynamicTypeSegment
public static <T> DynamicTypeSegment dynamicTypeSegment(String aAlias, T aValue, int aLengthWidth, org.refcodes.numerical.Endianess aEndianess) Constructs aDynamicTypeSegment
with the given properties as well as with theTransmissionMetrics.DEFAULT_ENCODING
. It is pre-initialized with the given value as ofDynamicTypeSegment.fromType(Object)
.- Type Parameters:
T
- The type of the data structure representing the body.- Parameters:
aAlias
- The alias which identifies the content of this segment.aValue
- The data structure's value.aLengthWidth
- The width (in bytes) to be used for length values.aEndianess
- TheEndianess
to be used for (length) values.- Returns:
- The accordingly created
DynamicTypeSegment
.
-
dynamicTypeSegment
public static <T> DynamicTypeSegment dynamicTypeSegment(String aAlias, T aValue, int aLengthWidth, org.refcodes.numerical.Endianess aEndianess, Charset aCharset) Constructs aDynamicTypeSegment
with the given properties. It is pre-initialized with the given value as ofDynamicTypeSegment.fromType(Object)
.- Type Parameters:
T
- The type of the data structure representing the body.- Parameters:
aAlias
- The alias which identifies the content of this segment.aValue
- The data structure's value.aLengthWidth
- The width (in bytes) to be used for length values.aEndianess
- TheEndianess
to be used for (length) values.aCharset
- TheCharset
to be used for encoding and decodingString
instances.- Returns:
- The accordingly created
DynamicTypeSegment
.
-
dynamicTypeSegment
public static <T> DynamicTypeSegment dynamicTypeSegment(String aAlias, T aValue, int aLengthWidth, org.refcodes.numerical.Endianess aEndianess, Charset aCharset, String... aAttributes) Constructs aDynamicTypeSegment
with the given properties. It is pre-initialized with the given value as ofDynamicTypeSegment.fromType(Object, String...)
.- Type Parameters:
T
- The type of the data structure representing the body.- Parameters:
aAlias
- The alias which identifies the content of this segment.aValue
- The data structure's value.aLengthWidth
- The width (in bytes) to be used for length values.aEndianess
- TheEndianess
to be used for (length) values.aCharset
- TheCharset
to be used for encoding and decodingString
instances.aAttributes
- The attributes or null if all attributes are to be processed in alphabetical order.- Returns:
- The accordingly created
DynamicTypeSegment
.
-
dynamicTypeSegment
public static <T> DynamicTypeSegment dynamicTypeSegment(String aAlias, T aValue, int aLengthWidth, org.refcodes.numerical.Endianess aEndianess, String... aAttributes) Constructs aDynamicTypeSegment
with the given properties as well as with theTransmissionMetrics.DEFAULT_ENCODING
. It is pre-initialized with the given value as ofDynamicTypeSegment.fromType(Object, String...)
.- Type Parameters:
T
- The type of the data structure representing the body.- Parameters:
aAlias
- The alias which identifies the content of this segment.aValue
- The data structure's value.aLengthWidth
- The width (in bytes) to be used for length values.aEndianess
- TheEndianess
to be used for (length) values.aAttributes
- The attributes or null if all attributes are to be processed in alphabetical order.- Returns:
- The accordingly created
DynamicTypeSegment
.
-
dynamicTypeSegment
public static <T> DynamicTypeSegment dynamicTypeSegment(String aAlias, T aValue, String... aAttributes) Constructs aDynamicTypeSegment
with the default properties (TransmissionMetrics.DEFAULT_LENGTH_WIDTH
,TransmissionMetrics.DEFAULT_ENDIANESS
as well asTransmissionMetrics.DEFAULT_ENCODING
). It is pre-initialized with the given value as ofDynamicTypeSegment.fromType(Object, String...)
.- Type Parameters:
T
- The type of the data structure representing the body.- Parameters:
aAlias
- The alias which identifies the content of this segment.aValue
- The data structure's value.aAttributes
- The attributes or null if all attributes are to be processed in alphabetical order.- Returns:
- The accordingly created
DynamicTypeSegment
.
-
dynamicTypeSegment
public static <T> DynamicTypeSegment dynamicTypeSegment(String aAlias, T aValue, TransmissionMetrics aTransmissionMetrics) Constructs aDynamicTypeSegment
with the given properties. The configuration attributes are taken from theTransmissionMetrics
configuration object, though only those attributes are supported which are also supported by the other constructors!- Type Parameters:
T
- The type of the data structure representing the body.- Parameters:
aAlias
- The alias which identifies the content of this segment.aValue
- The data structure's value.aTransmissionMetrics
- TheTransmissionMetrics
to be used for configuring this instance.- Returns:
- The accordingly created
DynamicTypeSegment
.
-
dynamicTypeSegment
public static <T> DynamicTypeSegment dynamicTypeSegment(String aAlias, T aValue, TransmissionMetrics aTransmissionMetrics, String... aAttributes) Constructs aDynamicTypeSegment
with the given properties. The configuration attributes are taken from theTransmissionMetrics
configuration object, though only those attributes are supported which are also supported by the other constructors!- Type Parameters:
T
- The type of the data structure representing the body.- Parameters:
aAlias
- The alias which identifies the content of this segment.aValue
- The data structure's value.aTransmissionMetrics
- TheTransmissionMetrics
to be used for configuring this instance.aAttributes
- The attributes or null if all attributes are to be processed in alphabetical order.- Returns:
- The accordingly created
DynamicTypeSegment
.
-
dynamicTypeSegment
public static DynamicTypeSegment dynamicTypeSegment(String aAlias, TransmissionMetrics aTransmissionMetrics) Constructs aDynamicTypeSegment
with the given properties. The configuration attributes are taken from theTransmissionMetrics
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 segment.aTransmissionMetrics
- TheTransmissionMetrics
to be used for configuring this instance.- Returns:
- The accordingly created
DynamicTypeSegment
.
-
dynamicTypeSegment
Constructs aDynamicTypeSegment
with the default properties (TransmissionMetrics.DEFAULT_LENGTH_WIDTH
,TransmissionMetrics.DEFAULT_ENDIANESS
as well asTransmissionMetrics.DEFAULT_ENCODING
). It is pre-initialized with the given value as ofDynamicTypeSegment.fromType(Object)
.- Type Parameters:
T
- The type of the data structure representing the body.- Parameters:
aValue
- The data structure's value.- Returns:
- The accordingly created
DynamicTypeSegment
.
-
dynamicTypeSegment
Constructs aDynamicTypeSegment
with the givenCharSection
, as well as with theTransmissionMetrics.DEFAULT_LENGTH_WIDTH
and theTransmissionMetrics.DEFAULT_ENDIANESS
. It is pre-initialized with the given value as ofDynamicTypeSegment.fromType(Object)
.- Type Parameters:
T
- The type of the data structure representing the body.- Parameters:
aValue
- The data structure's value.aCharset
- TheCharset
to be used for encoding and decodingString
instances.- Returns:
- The accordingly created
DynamicTypeSegment
.
-
dynamicTypeSegment
public static <T> DynamicTypeSegment dynamicTypeSegment(T aValue, Charset aCharset, String... aAttributes) Constructs aDynamicTypeSegment
with the givenCharSection
, as well as with theTransmissionMetrics.DEFAULT_LENGTH_WIDTH
and theTransmissionMetrics.DEFAULT_ENDIANESS
. It is pre-initialized with the given value as ofDynamicTypeSegment.fromType(Object, String...)
.- Type Parameters:
T
- The type of the data structure representing the body.- Parameters:
aValue
- The data structure's value.aCharset
- TheCharset
to be used for encoding and decodingString
instances.aAttributes
- The attributes or null if all attributes are to be processed in alphabetical order.- Returns:
- The accordingly created
DynamicTypeSegment
.
-
dynamicTypeSegment
public static <T> DynamicTypeSegment dynamicTypeSegment(T aValue, int aLengthWidth, org.refcodes.numerical.Endianess aEndianess) Constructs aDynamicTypeSegment
with the given properties as well as with theTransmissionMetrics.DEFAULT_ENCODING
. It is pre-initialized with the given value as ofDynamicTypeSegment.fromType(Object)
.- Type Parameters:
T
- The type of the data structure representing the body.- Parameters:
aValue
- The data structure's value.aLengthWidth
- The width (in bytes) to be used for length values.aEndianess
- TheEndianess
to be used for (length) values.- Returns:
- The accordingly created
DynamicTypeSegment
.
-
dynamicTypeSegment
public static <T> DynamicTypeSegment dynamicTypeSegment(T aValue, int aLengthWidth, org.refcodes.numerical.Endianess aEndianess, Charset aCharset) Constructs aDynamicTypeSegment
with the given properties. It is pre-initialized with the given value as ofDynamicTypeSegment.fromType(Object)
.- Type Parameters:
T
- The type of the data structure representing the body.- Parameters:
aValue
- The data structure's value.aLengthWidth
- The width (in bytes) to be used for length values.aEndianess
- TheEndianess
to be used for (length) values.aCharset
- TheCharset
to be used for encoding and decodingString
instances.- Returns:
- The accordingly created
DynamicTypeSegment
.
-
dynamicTypeSegment
public static <T> DynamicTypeSegment dynamicTypeSegment(T aValue, int aLengthWidth, org.refcodes.numerical.Endianess aEndianess, Charset aCharset, String... aAttributes) Constructs aDynamicTypeSegment
with the given properties. It is pre-initialized with the given value as ofDynamicTypeSegment.fromType(Object, String...)
.- Type Parameters:
T
- The type of the data structure representing the body.- Parameters:
aValue
- The data structure's value.aLengthWidth
- The width (in bytes) to be used for length values.aEndianess
- TheEndianess
to be used for (length) values.aCharset
- TheCharset
to be used for encoding and decodingString
instances.aAttributes
- The attributes or null if all attributes are to be processed in alphabetical order.- Returns:
- The accordingly created
DynamicTypeSegment
.
-
dynamicTypeSegment
public static <T> DynamicTypeSegment dynamicTypeSegment(T aValue, int aLengthWidth, org.refcodes.numerical.Endianess aEndianess, String... aAttributes) Constructs aDynamicTypeSegment
with the given properties as well as with theTransmissionMetrics.DEFAULT_ENCODING
. It is pre-initialized with the given value as ofDynamicTypeSegment.fromType(Object, String...)
.- Type Parameters:
T
- The type of the data structure representing the body.- Parameters:
aValue
- The data structure's value.aLengthWidth
- The width (in bytes) to be used for length values.aEndianess
- TheEndianess
to be used for (length) values.aAttributes
- The attributes or null if all attributes are to be processed in alphabetical order.- Returns:
- The accordingly created
DynamicTypeSegment
.
-
dynamicTypeSegment
Constructs aDynamicTypeSegment
with the default properties (TransmissionMetrics.DEFAULT_LENGTH_WIDTH
,TransmissionMetrics.DEFAULT_ENDIANESS
as well asTransmissionMetrics.DEFAULT_ENCODING
). It is pre-initialized with the given value as ofDynamicTypeSegment.fromType(Object, String...)
.- Type Parameters:
T
- The type of the data structure representing the body.- Parameters:
aValue
- The data structure's value.aAttributes
- The attributes or null if all attributes are to be processed in alphabetical order.- Returns:
- The accordingly created
DynamicTypeSegment
.
-
dynamicTypeSegment
public static <T> DynamicTypeSegment dynamicTypeSegment(T aValue, TransmissionMetrics aTransmissionMetrics) Constructs aDynamicTypeSegment
with the given properties. The configuration attributes are taken from theTransmissionMetrics
configuration object, though only those attributes are supported which are also supported by the other constructors!- Type Parameters:
T
- The type of the data structure representing the body.- Parameters:
aValue
- The data structure's value.aTransmissionMetrics
- TheTransmissionMetrics
to be used for configuring this instance.- Returns:
- The accordingly created
DynamicTypeSegment
.
-
dynamicTypeSegment
public static <T> DynamicTypeSegment dynamicTypeSegment(T aValue, TransmissionMetrics aTransmissionMetrics, String... aAttributes) Constructs aDynamicTypeSegment
with the given properties. The configuration attributes are taken from theTransmissionMetrics
configuration object, though only those attributes are supported which are also supported by the other constructors!- Type Parameters:
T
- The type of the data structure representing the body.- Parameters:
aValue
- The data structure's value.aTransmissionMetrics
- TheTransmissionMetrics
to be used for configuring this instance.aAttributes
- The attributes or null if all attributes are to be processed in alphabetical order.- Returns:
- The accordingly created
DynamicTypeSegment
.
-
dynamicTypeSegment
Constructs aDynamicTypeSegment
with the given properties. The configuration attributes are taken from theTransmissionMetrics
configuration object, though only those attributes are supported which are also supported by the other constructors!- Parameters:
aTransmissionMetrics
- TheTransmissionMetrics
to be used for configuring this instance.- Returns:
- The accordingly created
DynamicTypeSegment
.
-
fileSection
Constructs aFileSection
.- Parameters:
aFile
- TheFile
representing theFileSection
.- Returns:
- The accordingly created
FileSection
.
-
fileSection
Constructs aFileSection
, the underlyingFile
is created on demand dynamically using the providedSupplier
.- Parameters:
aBasePath
- TheFile
representing the base path for the path provided by theSupplier
.aFilePathSupplier
- TheSupplier
of the file path ofFile
representing theFileSection
. Whenever the underlying file is to be accessed, then theSupplier
is called to construct the accordingFile
.- Returns:
- The accordingly created
FileSection
.
-
fileSection
Constructs aFileSection
.- Parameters:
aFilePath
- The file path ofFile
representing theFileSection
.- Returns:
- The accordingly created
FileSection
.
-
fileSection
Constructs aFileSection
.- Parameters:
aAlias
- TheFileSection
'S alias.aFile
- TheFile
representing theFileSection
.- Returns:
- The accordingly created
FileSection
.
-
fileSection
public static FileSection fileSection(String aAlias, File aBasePath, Supplier<String> aFilePathSupplier) Constructs aFileSection
, the underlyingFile
is created on demand dynamically using the providedSupplier
.- Parameters:
aAlias
- TheFileSection
'S alias.aBasePath
- TheFile
representing the base path for the path provided by theSupplier
.aFilePathSupplier
- TheSupplier
of the file path ofFile
representing theFileSection
. Whenever the underlying file is to be accessed, then theSupplier
is called to construct the accordingFile
.- Returns:
- The accordingly created
FileSection
.
-
fileSection
Constructs aFileSection
.- Parameters:
aAlias
- TheFileSection
'S alias.aFilePath
- The file path ofFile
representing theFileSection
.- Returns:
- The accordingly created
FileSection
.
-
fileSection
public static FileSection fileSection(String aAlias, String aBasePath, Supplier<String> aFilePathSupplier) Constructs aFileSection
, the underlyingFile
is created on demand dynamically using the providedSupplier
.- Parameters:
aAlias
- TheFileSection
'S alias.aBasePath
- The base path for the path provided by theSupplier
.aFilePathSupplier
- TheSupplier
of the file path ofFile
representing theFileSection
. Whenever the underlying file is to be accessed, then theSupplier
is called to construct the accordingFile
.- Returns:
- The accordingly created
FileSection
.
-
fileSection
Constructs aFileSection
, the underlyingFile
is created on demand dynamically using the providedSupplier
.- Parameters:
aBasePath
- The base path for the path provided by theSupplier
.aFilePathSupplier
- TheSupplier
of the file path ofFile
representing theFileSection
. Whenever the underlying file is to be accessed, then theSupplier
is called to construct the accordingFile
.- Returns:
- The accordingly created
FileSection
.
-
fileSection
Constructs aFileSection
, the underlyingFile
is created on demand dynamically using the providedSupplier
.- Parameters:
aFilePathSupplier
- TheSupplier
of the file path ofFile
representing theFileSection
. Whenever the underlying file is to be accessed, then theSupplier
is called to construct the accordingFile
.- Returns:
- The accordingly created
FileSection
.
-
fixedLengthSequenceSegment
Constructs aFixedLengthSequenceSegment
.- Parameters:
aSequenceSize
- The size of theSequence
.- Returns:
- The accordingly created
FixedLengthSequenceSegment
.
-
fixedLengthSequenceSegment
Constructs aFixedLengthSequenceSegment
.- Parameters:
aSequence
- TheSequence
representing thisFixedLengthSequenceSegment
.- Returns:
- The accordingly created
FixedLengthSequenceSegment
.
-
fixedLengthSequenceSegment
public static FixedLengthSequenceSegment fixedLengthSequenceSegment(String aAlias, int aSequenceSize) Constructs aFixedLengthSequenceSegment
.- Parameters:
aAlias
- The alias which identifies the content of thisSegment
.aSequenceSize
- The size of theSequence
.- Returns:
- The accordingly created
FixedLengthSequenceSegment
.
-
fixedLengthSequenceSegment
public static FixedLengthSequenceSegment fixedLengthSequenceSegment(String aAlias, Sequence aSequence) Constructs aFixedLengthSequenceSegment
.- Parameters:
aAlias
- The alias which identifies the content of thisSegment
.aSequence
- TheSequence
representing thisFixedLengthSequenceSegment
.- Returns:
- The accordingly created
FixedLengthSequenceSegment
.
-
fixedSegmentArraySection
public static <ARRAY extends Segment> FixedSegmentArraySection<ARRAY> fixedSegmentArraySection(ARRAY... aSegmentArray) Constructs aFixedSegmentArraySection
with the givenSegment
elements.Segment
instances for the array are created using the provided array's component type.- Type Parameters:
ARRAY
- The type of theSegment
elements to be contained in thisFixedSegmentArraySection
.- Parameters:
aSegmentArray
- The array containing the accordingSegment
elements.- Returns:
- The accordingly created
Segment
.
-
fixedSegmentArraySection
public static <ARRAY extends Segment> FixedSegmentArraySection<ARRAY> fixedSegmentArraySection(Class<ARRAY> aSegmentClass) Constructs aFixedSegmentArraySection
with instances of the array being created using the providedClass
instance.- Type Parameters:
ARRAY
- The type of theSegment
elements to be contained in thisFixedSegmentArraySection
.- Parameters:
aSegmentClass
- The class from which to produce the the fixed lengthSegment
elements.- Returns:
- The accordingly created
Segment
.
-
fixedSegmentArraySection
public static <ARRAY extends Segment> FixedSegmentArraySection<ARRAY> fixedSegmentArraySection(org.refcodes.factory.TypeFactory<ARRAY> aSegmentFactory) Constructs aFixedSegmentArraySection
with instances of the array being created using the providedTypeFactory
instance.- Type Parameters:
ARRAY
- The type of theSegment
elements to be contained in thisFixedSegmentArraySection
.- Parameters:
aSegmentFactory
- The factory producing the the fixed lengthSegment
elements.- Returns:
- The accordingly created
Segment
.
-
fixedSegmentArraySection
public static <ARRAY extends Segment> FixedSegmentArraySection<ARRAY> fixedSegmentArraySection(org.refcodes.factory.TypeFactory<ARRAY> aSegmentFactory, ARRAY... aSegmentArray) Constructs aFixedSegmentArraySection
with the given elements.Segment
instances for the array are created using the providedTypeFactory
instance.- Type Parameters:
ARRAY
- The type of theSegment
elements to be contained in thisFixedSegmentArraySection
.- Parameters:
aSegmentFactory
- The factory producing the the fixed lengthSegment
elements.aSegmentArray
- The array containing the accordingSegment
elements.- Returns:
- The accordingly created
Segment
.
-
floatArraySection
Constructs an emptyFloatArraySection
with aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theSection
's value.- Returns:
- The accordingly created
FloatArraySection
.
-
floatArraySection
Constructs an emptyFloatArraySection
with the givenEndianess
.- Parameters:
aEndianess
- TheEndianess
to be used for payload values.- Returns:
- The accordingly created
FloatArraySection
.
-
floatArraySection
public static FloatArraySection floatArraySection(org.refcodes.numerical.Endianess aEndianess, float... aValue) Constructs aFloatArraySection
with the given float array payload and the givenEndianess
for the representation of theFloatArraySection
's value.- Parameters:
aEndianess
- TheEndianess
to be used for payload values.aValue
- The payload to be contained by theFloatArraySection
.- Returns:
- The accordingly created
FloatArraySection
.
-
floatArraySection
public static FloatArraySection floatArraySection(org.refcodes.numerical.Endianess aEndianess, Float... aValue) Constructs aFloatArraySection
with the given float array payload and the givenEndianess
for the representation of theFloatArraySection
's value.- Parameters:
aEndianess
- TheEndianess
to be used for payload values.aValue
- The payload to be contained by theFloatArraySection
.- Returns:
- The accordingly created
FloatArraySection
.
-
floatArraySection
Constructs aFloatArraySection
with the given float array payload and aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theFloatArraySection
's value.- Parameters:
aValue
- The payload to be contained by theFloatArraySection
.- Returns:
- The accordingly created
FloatArraySection
.
-
floatArraySection
Constructs aFloatArraySection
with the given float array payload and aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theFloatArraySection
's value.- Parameters:
aValue
- The payload to be contained by theFloatArraySection
.- Returns:
- The accordingly created
FloatArraySection
.
-
floatArraySection
Constructs an emptyFloatArraySection
with aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theSection
's value.- Parameters:
aAlias
- The alias which identifies the content of this segment.- Returns:
- The accordingly created
FloatArraySection
.
-
floatArraySection
public static FloatArraySection floatArraySection(String aAlias, org.refcodes.numerical.Endianess aEndianess) Constructs an emptyFloatArraySection
with the givenEndianess
.- Parameters:
aAlias
- The alias which identifies the content of this segment.aEndianess
- TheEndianess
to be used for payload values.- Returns:
- The accordingly created
FloatArraySection
.
-
floatArraySection
public static FloatArraySection floatArraySection(String aAlias, org.refcodes.numerical.Endianess aEndianess, float... aValue) Constructs aFloatArraySection
with the given float array payload and the givenEndianess
for the representation of theFloatArraySection
's value.- Parameters:
aAlias
- The alias which identifies the content of this segment.aEndianess
- TheEndianess
to be used for payload values.aValue
- The payload to be contained by theFloatArraySection
.- Returns:
- The accordingly created
FloatArraySection
.
-
floatArraySection
public static FloatArraySection floatArraySection(String aAlias, org.refcodes.numerical.Endianess aEndianess, Float... aValue) Constructs aFloatArraySection
with the given float array payload and the givenEndianess
for the representation of theFloatArraySection
's value.- Parameters:
aAlias
- The alias which identifies the content of this segment.aEndianess
- TheEndianess
to be used for payload values.aValue
- The payload to be contained by theFloatArraySection
.- Returns:
- The accordingly created
FloatArraySection
.
-
floatArraySection
Constructs aFloatArraySection
with the given float array payload and aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theFloatArraySection
's value.- Parameters:
aAlias
- The alias which identifies the content of this segment.aValue
- The payload to be contained by theFloatArraySection
.- Returns:
- The accordingly created
FloatArraySection
.
-
floatArraySection
Constructs aFloatArraySection
with the given float array payload and aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theFloatArraySection
's value.- Parameters:
aAlias
- The alias which identifies the content of this segment.aValue
- The payload to be contained by theFloatArraySection
.- Returns:
- The accordingly created
FloatArraySection
.
-
floatArraySection
public static FloatArraySection floatArraySection(String aAlias, TransmissionMetrics aTransmissionMetrics) Constructs an according instance from the given configuration. The configuration attributes are taken from theTransmissionMetrics
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
- TheTransmissionMetrics
to be used for configuring this instance.- Returns:
- The accordingly created
FloatArraySection
.
-
floatArraySection
public static FloatArraySection floatArraySection(String aAlias, TransmissionMetrics aTransmissionMetrics, float... aValue) Constructs an according instance from the given configuration. The configuration attributes are taken from theTransmissionMetrics
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
- TheTransmissionMetrics
to be used for configuring this instance.aValue
- The payload to be contained by theFloatArraySection
.- Returns:
- The accordingly created
FloatArraySection
.
-
floatArraySection
public static FloatArraySection floatArraySection(String aAlias, TransmissionMetrics aTransmissionMetrics, Float... aValue) Constructs an according instance from the given configuration. The configuration attributes are taken from theTransmissionMetrics
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
- TheTransmissionMetrics
to be used for configuring this instance.aValue
- The payload to be contained by theFloatArraySection
.- Returns:
- The accordingly created
FloatArraySection
.
-
floatArraySection
Constructs an according instance from the given configuration. The configuration attributes are taken from theTransmissionMetrics
configuration object, though only those attributes are supported which are also supported by the other constructors!- Parameters:
aTransmissionMetrics
- TheTransmissionMetrics
to be used for configuring this instance.- Returns:
- The accordingly created
FloatArraySection
.
-
floatArraySection
public static FloatArraySection floatArraySection(TransmissionMetrics aTransmissionMetrics, float... aValue) Constructs an according instance from the given configuration. The configuration attributes are taken from theTransmissionMetrics
configuration object, though only those attributes are supported which are also supported by the other constructors!- Parameters:
aTransmissionMetrics
- TheTransmissionMetrics
to be used for configuring this instance.aValue
- The payload to be contained by theFloatArraySection
.- Returns:
- The accordingly created
FloatArraySection
.
-
floatArraySection
public static FloatArraySection floatArraySection(TransmissionMetrics aTransmissionMetrics, Float... aValue) Constructs an according instance from the given configuration. The configuration attributes are taken from theTransmissionMetrics
configuration object, though only those attributes are supported which are also supported by the other constructors!- Parameters:
aTransmissionMetrics
- TheTransmissionMetrics
to be used for configuring this instance.aValue
- The payload to be contained by theFloatArraySection
.- Returns:
- The accordingly created
FloatArraySection
.
-
floatSegment
Constructs an emptyFloatSegment
with aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theFloatSegment
's value.- Returns:
- The accordingly created
FloatSegment
.
-
floatSegment
Constructs an emptyFloatSegment
with the givenEndianess
endian representation of theFloatSegment
's value.- Parameters:
aEndianess
- TheEndianess
to be used for the payload values.- Returns:
- The accordingly created
FloatSegment
.
-
floatSegment
Constructs aFloatSegment
with the given float payload and aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theFloatSegment
's value.- Parameters:
aValue
- The value (payload) to be contained by theFloatSegment
.- Returns:
- The accordingly created
FloatSegment
.
-
floatSegment
Constructs aFloatSegment
with the given float payload and the givenEndianess
for the representation of theSegment
's value.- Parameters:
aValue
- The value (payload) to be contained by theFloatSegment
.aEndianess
- TheEndianess
to be used for the payload values.- Returns:
- The accordingly created
FloatSegment
.
-
floatSegment
Constructs an according instance from the given configuration. The configuration attributes are taken from theTransmissionMetrics
configuration object, though only those attributes are supported which are also supported by the other constructors!- Parameters:
aValue
- The payload to be contained by theDoubleArraySection
.aTransmissionMetrics
- TheTransmissionMetrics
to be used for configuring this instance.- Returns:
- The accordingly created
FloatSegment
.
-
floatSegment
Constructs an emptyFloatSegment
with aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theFloatSegment
's value.- Parameters:
aAlias
- The alias which identifies the content of this segment.- Returns:
- The accordingly created
FloatSegment
.
-
floatSegment
Constructs an emptyFloatSegment
with the givenEndianess
endian representation of theFloatSegment
's value.- Parameters:
aAlias
- The alias which identifies the content of this segment.aEndianess
- TheEndianess
to be used for the payload values.- Returns:
- The accordingly created
FloatSegment
.
-
floatSegment
Constructs aFloatSegment
with the given float payload and aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theFloatSegment
's value.- Parameters:
aAlias
- The alias which identifies the content of this segment.aValue
- The value (payload) to be contained by theFloatSegment
.- Returns:
- The accordingly created
FloatSegment
.
-
floatSegment
public static FloatSegment floatSegment(String aAlias, Float aValue, org.refcodes.numerical.Endianess aEndianess) Constructs aFloatSegment
with the given float payload and the givenEndianess
for the representation of theSegment
's value.- Parameters:
aAlias
- The alias which identifies the content of this segment.aValue
- The value (payload) to be contained by theFloatSegment
.aEndianess
- TheEndianess
to be used for the payload values.- Returns:
- The accordingly created
FloatSegment
.
-
floatSegment
public static FloatSegment floatSegment(String aAlias, Float aValue, TransmissionMetrics aTransmissionMetrics) Constructs an according instance from the given configuration. The configuration attributes are taken from theTransmissionMetrics
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 theDoubleArraySection
.aTransmissionMetrics
- TheTransmissionMetrics
to be used for configuring this instance.- Returns:
- The accordingly created
FloatSegment
.
-
floatSegment
Constructs an according instance from the given configuration. The configuration attributes are taken from theTransmissionMetrics
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
- TheTransmissionMetrics
to be used for configuring this instance.- Returns:
- The accordingly created
FloatSegment
.
-
floatSegment
Constructs an according instance from the given configuration. The configuration attributes are taken from theTransmissionMetrics
configuration object, though only those attributes are supported which are also supported by the other constructors!- Parameters:
aTransmissionMetrics
- TheTransmissionMetrics
to be used for configuring this instance.- Returns:
- The accordingly created
FloatSegment
.
-
intArraySection
Constructs an emptyIntArraySection
with aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theSection
's value.- Returns:
- The accordingly created
IntArraySection
.
-
intArraySection
Constructs an emptyIntArraySection
with the givenEndianess
.- Parameters:
aEndianess
- TheEndianess
to be used for payload values.- Returns:
- The accordingly created
IntArraySection
.
-
intArraySection
public static IntArraySection intArraySection(org.refcodes.numerical.Endianess aEndianess, int... aValue) Constructs aIntArraySection
with the given int array payload and the givenEndianess
for the representation of theIntArraySection
's value.- Parameters:
aEndianess
- TheEndianess
to be used for payload values.aValue
- The payload to be contained by theIntArraySection
.- Returns:
- The accordingly created
IntArraySection
.
-
intArraySection
public static IntArraySection intArraySection(org.refcodes.numerical.Endianess aEndianess, Integer... aValue) Constructs aIntArraySection
with the given int array payload and the givenEndianess
for the representation of theIntArraySection
's value.- Parameters:
aEndianess
- TheEndianess
to be used for payload values.aValue
- The payload to be contained by theIntArraySection
.- Returns:
- The accordingly created
IntArraySection
.
-
intArraySection
Constructs aIntArraySection
with the given int array payload and aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theIntArraySection
's value.- Parameters:
aValue
- The payload to be contained by theIntArraySection
.- Returns:
- The accordingly created
IntArraySection
.
-
intArraySection
Constructs aIntArraySection
with the given int array payload and aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theIntArraySection
's value.- Parameters:
aValue
- The payload to be contained by theIntArraySection
.- Returns:
- The accordingly created
IntArraySection
.
-
intArraySection
Constructs an emptyIntArraySection
with aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theSection
's value.- Parameters:
aAlias
- The alias which identifies the content of this segment.- Returns:
- The accordingly created
IntArraySection
.
-
intArraySection
public static IntArraySection intArraySection(String aAlias, org.refcodes.numerical.Endianess aEndianess) Constructs an emptyIntArraySection
with the givenEndianess
.- Parameters:
aAlias
- The alias which identifies the content of this segment.aEndianess
- TheEndianess
to be used for payload values.- Returns:
- The accordingly created
IntArraySection
.
-
intArraySection
public static IntArraySection intArraySection(String aAlias, org.refcodes.numerical.Endianess aEndianess, int... aValue) Constructs aIntArraySection
with the given int array payload and the givenEndianess
for the representation of theIntArraySection
's value.- Parameters:
aAlias
- The alias which identifies the content of this segment.aEndianess
- TheEndianess
to be used for payload values.aValue
- The payload to be contained by theIntArraySection
.- Returns:
- The accordingly created
IntArraySection
.
-
intArraySection
public static IntArraySection intArraySection(String aAlias, org.refcodes.numerical.Endianess aEndianess, Integer... aValue) Constructs aIntArraySection
with the given int array payload and the givenEndianess
for the representation of theIntArraySection
's value.- Parameters:
aAlias
- The alias which identifies the content of this segment.aEndianess
- TheEndianess
to be used for payload values.aValue
- The payload to be contained by theIntArraySection
.- Returns:
- The accordingly created
IntArraySection
.
-
intArraySection
Constructs aIntArraySection
with the given int array payload and aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theIntArraySection
's value.- Parameters:
aAlias
- The alias which identifies the content of this segment.aValue
- The payload to be contained by theIntArraySection
.- Returns:
- The accordingly created
IntArraySection
.
-
intArraySection
Constructs aIntArraySection
with the given int array payload and aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theIntArraySection
's value.- Parameters:
aAlias
- The alias which identifies the content of this segment.aValue
- The payload to be contained by theIntArraySection
.- Returns:
- The accordingly created
IntArraySection
.
-
intArraySection
public static IntArraySection intArraySection(String aAlias, TransmissionMetrics aTransmissionMetrics) Constructs an according instance from the given configuration. The configuration attributes are taken from theTransmissionMetrics
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
- TheTransmissionMetrics
to be used for configuring this instance.- Returns:
- The accordingly created
IntArraySection
.
-
intArraySection
public static IntArraySection intArraySection(String aAlias, TransmissionMetrics aTransmissionMetrics, int... aValue) Constructs an according instance from the given configuration. The configuration attributes are taken from theTransmissionMetrics
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
- TheTransmissionMetrics
to be used for configuring this instance.aValue
- The payload to be contained by theIntArraySection
.- Returns:
- The accordingly created
IntArraySection
.
-
intArraySection
public static IntArraySection intArraySection(String aAlias, TransmissionMetrics aTransmissionMetrics, Integer... aValue) Constructs an according instance from the given configuration. The configuration attributes are taken from theTransmissionMetrics
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
- TheTransmissionMetrics
to be used for configuring this instance.aValue
- The payload to be contained by theIntArraySection
.- Returns:
- The accordingly created
IntArraySection
.
-
intArraySection
Constructs an according instance from the given configuration. The configuration attributes are taken from theTransmissionMetrics
configuration object, though only those attributes are supported which are also supported by the other constructors!- Parameters:
aTransmissionMetrics
- TheTransmissionMetrics
to be used for configuring this instance.- Returns:
- The accordingly created
IntArraySection
.
-
intArraySection
public static IntArraySection intArraySection(TransmissionMetrics aTransmissionMetrics, int... aValue) Constructs an according instance from the given configuration. The configuration attributes are taken from theTransmissionMetrics
configuration object, though only those attributes are supported which are also supported by the other constructors!- Parameters:
aTransmissionMetrics
- TheTransmissionMetrics
to be used for configuring this instance.aValue
- The payload to be contained by theIntArraySection
.- Returns:
- The accordingly created
IntArraySection
.
-
intArraySection
public static IntArraySection intArraySection(TransmissionMetrics aTransmissionMetrics, Integer... aValue) Constructs an according instance from the given configuration. The configuration attributes are taken from theTransmissionMetrics
configuration object, though only those attributes are supported which are also supported by the other constructors!- Parameters:
aTransmissionMetrics
- TheTransmissionMetrics
to be used for configuring this instance.aValue
- The payload to be contained by theIntArraySection
.- Returns:
- The accordingly created
IntArraySection
.
-
intSegment
Constructs an emptyIntSegment
with aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theIntSegment
's value.- Returns:
- The accordingly created
IntSegment
.
-
intSegment
Constructs an emptyIntSegment
with the givenEndianess
endian representation of theIntSegment
's value.- Parameters:
aEndianess
- TheEndianess
to be used for the payload values.- Returns:
- The accordingly created
IntSegment
.
-
intSegment
Constructs aIntSegment
with the given int payload and aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theIntSegment
's value.- Parameters:
aValue
- The value (payload) to be contained by theIntSegment
.- Returns:
- The accordingly created
IntSegment
.
-
intSegment
Constructs aIntSegment
with the given int payload and the givenEndianess
for the representation of theSegment
's value.- Parameters:
aValue
- The value (payload) to be contained by theIntSegment
.aEndianess
- TheEndianess
to be used for the payload values.- Returns:
- The accordingly created
IntSegment
.
-
intSegment
Constructs an according instance from the given configuration. The configuration attributes are taken from theTransmissionMetrics
configuration object, though only those attributes are supported which are also supported by the other constructors!- Parameters:
aValue
- The payload to be contained by theDoubleArraySection
.aTransmissionMetrics
- TheTransmissionMetrics
to be used for configuring this instance.- Returns:
- The accordingly created
IntSegment
.
-
intSegment
Constructs an emptyIntSegment
with aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theIntSegment
's value.- Parameters:
aAlias
- The alias which identifies the content of this segment.- Returns:
- The accordingly created
IntSegment
.
-
intSegment
Constructs an emptyIntSegment
with the givenEndianess
endian representation of theIntSegment
's value.- Parameters:
aAlias
- The alias which identifies the content of this segment.aEndianess
- TheEndianess
to be used for the payload values.- Returns:
- The accordingly created
IntSegment
.
-
intSegment
Constructs aIntSegment
with the given int payload and aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theIntSegment
's value.- Parameters:
aAlias
- The alias which identifies the content of this segment.aValue
- The value (payload) to be contained by theIntSegment
.- Returns:
- The accordingly created
IntSegment
.
-
intSegment
public static IntSegment intSegment(String aAlias, Integer aValue, org.refcodes.numerical.Endianess aEndianess) Constructs aIntSegment
with the given int payload and the givenEndianess
for the representation of theSegment
's value.- Parameters:
aAlias
- The alias which identifies the content of this segment.aValue
- The value (payload) to be contained by theIntSegment
.aEndianess
- TheEndianess
to be used for the payload values.- Returns:
- The accordingly created
IntSegment
.
-
intSegment
public static IntSegment intSegment(String aAlias, Integer aValue, TransmissionMetrics aTransmissionMetrics) Constructs an according instance from the given configuration. The configuration attributes are taken from theTransmissionMetrics
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 theDoubleArraySection
.aTransmissionMetrics
- TheTransmissionMetrics
to be used for configuring this instance.- Returns:
- The accordingly created
IntSegment
.
-
intSegment
Constructs an according instance from the given configuration. The configuration attributes are taken from theTransmissionMetrics
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
- TheTransmissionMetrics
to be used for configuring this instance.- Returns:
- The accordingly created
IntSegment
.
-
intSegment
Constructs an according instance from the given configuration. The configuration attributes are taken from theTransmissionMetrics
configuration object, though only those attributes are supported which are also supported by the other constructors!- Parameters:
aTransmissionMetrics
- TheTransmissionMetrics
to be used for configuring this instance.- Returns:
- The accordingly created
IntSegment
.
-
invertibleSection
public static <DECORATEE extends Section> InvertibleSectionDecorator<DECORATEE> invertibleSection(DECORATEE aDecoratee, org.refcodes.numerical.BijectiveFunction<Byte, Byte> aBijectiveFunction, org.refcodes.numerical.InverseFunction<Byte, Byte> aInverseFunction) Constructs an invertible transmission decorator applying bijective and inverse functions upon the delegated methods.- Type Parameters:
DECORATEE
- TheSection
type describing theSection
subclass decoratee.- Parameters:
aDecoratee
- The decorator having applied theBijectiveFunction
to encode and theInverseFunction
to decode any data being delegated.aBijectiveFunction
- TheBijectiveFunction
to encode any data being delegated.aInverseFunction
- TheInverseFunction
to decode any data being delegated.- Returns:
- The accordingly created
InvertibleSectionDecorator
.
-
invertibleSection
public static <DECORATEE extends Section> InvertibleSectionDecorator<DECORATEE> invertibleSection(DECORATEE aDecoratee, org.refcodes.numerical.Invertible<Byte, Byte> aInvertible) Constructs an invertible transmission decorator applying bijective and inverse functions upon the delegated methods.- Type Parameters:
DECORATEE
- TheSection
type describing theSection
subclass decoratee.- Parameters:
aDecoratee
- The decorator having applied theInvertible
'sBijectiveFunction
to encode and theInvertible
'sInverseFunction
to decode any data being delegated.aInvertible
- TheInvertible
providing theBijectiveFunction
to encode and theInvertible
'sInverseFunction
to decode any data being delegated.- Returns:
- The accordingly created
InvertibleSectionDecorator
.
-
invertibleSegment
public static <DECORATEE extends Segment> InvertibleSegmentDecorator<DECORATEE> invertibleSegment(DECORATEE aDecoratee, org.refcodes.numerical.BijectiveFunction<Byte, Byte> aBijectiveFunction, org.refcodes.numerical.InverseFunction<Byte, Byte> aInverseFunction) Constructs an invertible transmission decorator applying bijective and inverse functions upon the delegated methods.- Type Parameters:
DECORATEE
- TheSegment
type describing theSegment
subclass decoratee.- Parameters:
aDecoratee
- The decorator having applied theBijectiveFunction
to encode and theInverseFunction
to decode any data being delegated.aBijectiveFunction
- TheBijectiveFunction
to encode any data being delegated.aInverseFunction
- TheInverseFunction
to decode any data being delegated.- Returns:
- The accordingly created
InvertibleSegmentDecorator
.
-
invertibleSegment
public static <DECORATEE extends Segment> InvertibleSegmentDecorator<DECORATEE> invertibleSegment(DECORATEE aDecoratee, org.refcodes.numerical.Invertible<Byte, Byte> aInvertible) Constructs an invertible transmission decorator applying bijective and inverse functions upon the delegated methods.- Type Parameters:
DECORATEE
- TheSegment
type describing theSegment
subclass decoratee.- Parameters:
aDecoratee
- The decorator having applied theInvertible
'sBijectiveFunction
to encode and theInvertible
'sInverseFunction
to decode any data being delegated.aInvertible
- TheInvertible
providing theBijectiveFunction
to encode and theInvertible
'sInverseFunction
to decode any data being delegated.- Returns:
- The accordingly created
InvertibleSegmentDecorator
.
-
lengthSegment
public static <DECORATEE extends Segment> LengthSegmentDecoratorSegment<DECORATEE> lengthSegment(DECORATEE aSegment) Constructs aLengthSegmentDecoratorSegment
with the given decoratee and a width ofTransmissionMetrics.DEFAULT_LENGTH_WIDTH
bytes used to specify the decoratee's length aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of the decoratee's length.- Type Parameters:
DECORATEE
- TheSegment
type describing theSegment
subclass decoratee.- Parameters:
aSegment
- The decoratee used for this decorator.- Returns:
- The accordingly created
LengthSegmentDecoratorSegment
.
-
lengthSegment
public static <DECORATEE extends Segment> LengthSegmentDecoratorSegment<DECORATEE> lengthSegment(DECORATEE aSegment, org.refcodes.numerical.Endianess aEndianess) Constructs aLengthSegmentDecoratorSegment
with the given decoratee and a width ofTransmissionMetrics.DEFAULT_LENGTH_WIDTH
bytes used to specify the decoratee's length and the providedEndianess
representation of the decoratee's length.- Type Parameters:
DECORATEE
- TheSegment
type describing theSegment
subclass decoratee.- Parameters:
aSegment
- The decoratee used for this decorator.aEndianess
- TheEndianess
to be used for length values.- Returns:
- The accordingly created
LengthSegmentDecoratorSegment
.
-
lengthSegment
public static <DECORATEE extends Segment> LengthSegmentDecoratorSegment<DECORATEE> lengthSegment(DECORATEE aSegment, int aLengthWidth) Constructs aLengthSegmentDecoratorSegment
with the given decoratee and with the given number of bytes used to specify the decoratee's length and aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of the decoratee's length.- Type Parameters:
DECORATEE
- TheSegment
type describing theSegment
subclass decoratee.- Parameters:
aSegment
- The decoratee used for this decorator.aLengthWidth
- The width (in bytes) to be used for length values.- Returns:
- The accordingly created
LengthSegmentDecoratorSegment
.
-
lengthSegment
public static <DECORATEE extends Segment> LengthSegmentDecoratorSegment<DECORATEE> lengthSegment(DECORATEE aSegment, int aLengthWidth, org.refcodes.numerical.Endianess aEndianess) Constructs aLengthSegmentDecoratorSegment
with the given decoratee and with the given number of bytes used to specify the decoratee's length and the providedEndianess
representation of the decoratee's length.- Type Parameters:
DECORATEE
- TheSegment
type describing theSegment
subclass decoratee.- Parameters:
aSegment
- The decoratee used for this decorator.aLengthWidth
- The width (in bytes) to be used for length values.aEndianess
- TheEndianess
to be used for length values.- Returns:
- The accordingly created
LengthSegmentDecoratorSegment
.
-
lengthSegment
public static <DECORATEE extends Segment> LengthSegmentDecoratorSegment<DECORATEE> lengthSegment(DECORATEE aSegment, TransmissionMetrics aTransmissionMetrics) Constructs aLengthSegmentDecoratorSegment
with the given decoratee and a width ofTransmissionMetrics.DEFAULT_LENGTH_WIDTH
bytes used to specify the decoratee's length aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of the decoratee's length.- Type Parameters:
DECORATEE
- TheSegment
type describing theSegment
subclass decoratee.- Parameters:
aSegment
- The decoratee used for this decorator.aTransmissionMetrics
- TheTransmissionMetrics
to be used for configuring this instance.- Returns:
- The accordingly created
LengthSegmentDecoratorSegment
.
-
longArraySection
Constructs an emptyLongArraySection
with aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theSection
's value.- Returns:
- The accordingly created
LongArraySection
.
-
longArraySection
Constructs an emptyLongArraySection
with the givenEndianess
.- Parameters:
aEndianess
- TheEndianess
to be used for payload values.- Returns:
- The accordingly created
LongArraySection
.
-
longArraySection
public static LongArraySection longArraySection(org.refcodes.numerical.Endianess aEndianess, long... aValue) Constructs aLongArraySection
with the given long array payload and the givenEndianess
for the representation of theLongArraySection
's value.- Parameters:
aEndianess
- TheEndianess
to be used for payload values.aValue
- The payload to be contained by theLongArraySection
.- Returns:
- The accordingly created
LongArraySection
.
-
longArraySection
public static LongArraySection longArraySection(org.refcodes.numerical.Endianess aEndianess, Long... aValue) Constructs aLongArraySection
with the given long array payload and the givenEndianess
for the representation of theLongArraySection
's value.- Parameters:
aEndianess
- TheEndianess
to be used for payload values.aValue
- The payload to be contained by theLongArraySection
.- Returns:
- The accordingly created
LongArraySection
.
-
longArraySection
Constructs aLongArraySection
with the given long array payload and aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theLongArraySection
's value.- Parameters:
aValue
- The payload to be contained by theLongArraySection
.- Returns:
- The accordingly created
LongArraySection
.
-
longArraySection
Constructs aLongArraySection
with the given long array payload and aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theLongArraySection
's value.- Parameters:
aValue
- The payload to be contained by theLongArraySection
.- Returns:
- The accordingly created
LongArraySection
.
-
longArraySection
Constructs an emptyLongArraySection
with aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theSection
's value.- Parameters:
aAlias
- The alias which identifies the content of this segment.- Returns:
- The accordingly created
LongArraySection
.
-
longArraySection
public static LongArraySection longArraySection(String aAlias, org.refcodes.numerical.Endianess aEndianess) Constructs an emptyLongArraySection
with the givenEndianess
.- Parameters:
aAlias
- The alias which identifies the content of this segment.aEndianess
- TheEndianess
to be used for payload values.- Returns:
- The accordingly created
LongArraySection
.
-
longArraySection
public static LongArraySection longArraySection(String aAlias, org.refcodes.numerical.Endianess aEndianess, long... aValue) Constructs aLongArraySection
with the given long array payload and the givenEndianess
for the representation of theLongArraySection
's value.- Parameters:
aAlias
- The alias which identifies the content of this segment.aEndianess
- TheEndianess
to be used for payload values.aValue
- The payload to be contained by theLongArraySection
.- Returns:
- The accordingly created
LongArraySection
.
-
longArraySection
public static LongArraySection longArraySection(String aAlias, org.refcodes.numerical.Endianess aEndianess, Long... aValue) Constructs aLongArraySection
with the given long array payload and the givenEndianess
for the representation of theLongArraySection
's value.- Parameters:
aAlias
- The alias which identifies the content of this segment.aEndianess
- TheEndianess
to be used for payload values.aValue
- The payload to be contained by theLongArraySection
.- Returns:
- The accordingly created
LongArraySection
.
-
longArraySection
Constructs aLongArraySection
with the given long array payload and aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theLongArraySection
's value.- Parameters:
aAlias
- The alias which identifies the content of this segment.aValue
- The payload to be contained by theLongArraySection
.- Returns:
- The accordingly created
LongArraySection
.
-
longArraySection
Constructs aLongArraySection
with the given long array payload and aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theLongArraySection
's value.- Parameters:
aAlias
- The alias which identifies the content of this segment.aValue
- The payload to be contained by theLongArraySection
.- Returns:
- The accordingly created
LongArraySection
.
-
longArraySection
public static LongArraySection longArraySection(String aAlias, TransmissionMetrics aTransmissionMetrics) Constructs an according instance from the given configuration. The configuration attributes are taken from theTransmissionMetrics
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
- TheTransmissionMetrics
to be used for configuring this instance.- Returns:
- The accordingly created
LongArraySection
.
-
longArraySection
public static LongArraySection longArraySection(String aAlias, TransmissionMetrics aTransmissionMetrics, long... aValue) Constructs an according instance from the given configuration. The configuration attributes are taken from theTransmissionMetrics
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
- TheTransmissionMetrics
to be used for configuring this instance.aValue
- The payload to be contained by theLongArraySection
.- Returns:
- The accordingly created
LongArraySection
.
-
longArraySection
public static LongArraySection longArraySection(String aAlias, TransmissionMetrics aTransmissionMetrics, Long... aValue) Constructs an according instance from the given configuration. The configuration attributes are taken from theTransmissionMetrics
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
- TheTransmissionMetrics
to be used for configuring this instance.aValue
- The payload to be contained by theLongArraySection
.- Returns:
- The accordingly created
LongArraySection
.
-
longArraySection
Constructs an according instance from the given configuration. The configuration attributes are taken from theTransmissionMetrics
configuration object, though only those attributes are supported which are also supported by the other constructors!- Parameters:
aTransmissionMetrics
- TheTransmissionMetrics
to be used for configuring this instance.- Returns:
- The accordingly created
LongArraySection
.
-
longArraySection
public static LongArraySection longArraySection(TransmissionMetrics aTransmissionMetrics, long... aValue) Constructs an according instance from the given configuration. The configuration attributes are taken from theTransmissionMetrics
configuration object, though only those attributes are supported which are also supported by the other constructors!- Parameters:
aTransmissionMetrics
- TheTransmissionMetrics
to be used for configuring this instance.aValue
- The payload to be contained by theLongArraySection
.- Returns:
- The accordingly created
LongArraySection
.
-
longArraySection
public static LongArraySection longArraySection(TransmissionMetrics aTransmissionMetrics, Long... aValue) Constructs an according instance from the given configuration. The configuration attributes are taken from theTransmissionMetrics
configuration object, though only those attributes are supported which are also supported by the other constructors!- Parameters:
aTransmissionMetrics
- TheTransmissionMetrics
to be used for configuring this instance.aValue
- The payload to be contained by theLongArraySection
.- Returns:
- The accordingly created
LongArraySection
.
-
longSegment
Constructs an emptyLongSegment
with aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theLongSegment
's value.- Returns:
- The accordingly created
LongSegment
.
-
longSegment
Constructs an emptyLongSegment
with the givenEndianess
endian representation of theLongSegment
's value.- Parameters:
aEndianess
- TheEndianess
to be used for the payload values.- Returns:
- The accordingly created
LongSegment
.
-
longSegment
Constructs aLongSegment
with the given long payload and aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theLongSegment
's value.- Parameters:
aValue
- The value (payload) to be contained by theLongSegment
.- Returns:
- The accordingly created
LongSegment
.
-
longSegment
Constructs aLongSegment
with the given long payload and the givenEndianess
for the representation of theSegment
's value.- Parameters:
aValue
- The value (payload) to be contained by theLongSegment
.aEndianess
- TheEndianess
to be used for the payload values.- Returns:
- The accordingly created
LongSegment
.
-
longSegment
Constructs an according instance from the given configuration. The configuration attributes are taken from theTransmissionMetrics
configuration object, though only those attributes are supported which are also supported by the other constructors!- Parameters:
aValue
- The payload to be contained by theDoubleArraySection
.aTransmissionMetrics
- TheTransmissionMetrics
to be used for configuring this instance.- Returns:
- The accordingly created
LongSegment
.
-
longSegment
Constructs an emptyLongSegment
with aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theLongSegment
's value.- Parameters:
aAlias
- The alias which identifies the content of this segment.- Returns:
- The accordingly created
LongSegment
.
-
longSegment
Constructs an emptyLongSegment
with the givenEndianess
endian representation of theLongSegment
's value.- Parameters:
aAlias
- The alias which identifies the content of this segment.aEndianess
- TheEndianess
to be used for the payload values.- Returns:
- The accordingly created
LongSegment
.
-
longSegment
Constructs aLongSegment
with the given long payload and aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theLongSegment
's value.- Parameters:
aAlias
- The alias which identifies the content of this segment.aValue
- The value (payload) to be contained by theLongSegment
.- Returns:
- The accordingly created
LongSegment
.
-
longSegment
public static LongSegment longSegment(String aAlias, Long aValue, org.refcodes.numerical.Endianess aEndianess) Constructs aLongSegment
with the given long payload and the givenEndianess
for the representation of theSegment
's value.- Parameters:
aAlias
- The alias which identifies the content of this segment.aValue
- The value (payload) to be contained by theLongSegment
.aEndianess
- TheEndianess
to be used for the payload values.- Returns:
- The accordingly created
LongSegment
.
-
longSegment
public static LongSegment longSegment(String aAlias, Long aValue, TransmissionMetrics aTransmissionMetrics) Constructs an according instance from the given configuration. The configuration attributes are taken from theTransmissionMetrics
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 theDoubleArraySection
.aTransmissionMetrics
- TheTransmissionMetrics
to be used for configuring this instance.- Returns:
- The accordingly created
LongSegment
.
-
longSegment
Constructs an according instance from the given configuration. The configuration attributes are taken from theTransmissionMetrics
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
- TheTransmissionMetrics
to be used for configuring this instance.- Returns:
- The accordingly created
LongSegment
.
-
longSegment
Constructs an according instance from the given configuration. The configuration attributes are taken from theTransmissionMetrics
configuration object, though only those attributes are supported which are also supported by the other constructors!- Parameters:
aTransmissionMetrics
- TheTransmissionMetrics
to be used for configuring this instance.- Returns:
- The accordingly created
LongSegment
.
-
magicBytesSection
public static <DECORATEE extends Section> MagicBytesSectionDecorator<DECORATEE> magicBytesSection(DECORATEE aDecoratee, byte... aMagicBytes) Enriches the providedSection
with the given magic bytes being prefixed.- Type Parameters:
DECORATEE
- TheSection
type describing theSegment
subclass decoratee.- Parameters:
aDecoratee
- TheSection
which is to be prefixed with magic bytes.aMagicBytes
- The magic bytes to be prefixed.- Returns:
- The accordingly created
MagicBytesSectionDecorator
.
-
magicBytesSection
public static <DECORATEE extends Section> MagicBytesSectionDecorator<DECORATEE> magicBytesSection(DECORATEE aDecoratee, int aMagicBytesLength) Enriches the providedSection
with magic bytes of the given length to be prefixed.- Type Parameters:
DECORATEE
- TheSection
type describing theSegment
subclass decoratee.- Parameters:
aDecoratee
- TheSection
which is to be prefixed with magic bytes.aMagicBytesLength
- The length of the magic bytes sequence.- Returns:
- The accordingly created
MagicBytesSectionDecorator
.
-
magicBytesSection
public static <DECORATEE extends Section> MagicBytesSectionDecorator<DECORATEE> magicBytesSection(DECORATEE aDecoratee, String aMagicBytes) - Type Parameters:
DECORATEE
- TheSection
type describing theSegment
subclass decoratee.- Parameters:
aDecoratee
- TheSection
which is to be prefixed with magic bytes.aMagicBytes
- TheString
to be stored by this instance as magic bytes (uses theTransmissionMetrics.DEFAULT_ENCODING
) for byte conversion).- Returns:
- The accordingly created
MagicBytesSectionDecorator
.
-
magicBytesSection
public static <DECORATEE extends Section> MagicBytesSectionDecorator<DECORATEE> magicBytesSection(DECORATEE aDecoratee, String aMagicBytes, Charset aCharset) - Type Parameters:
DECORATEE
- TheSection
type describing theSegment
subclass decoratee.- Parameters:
aDecoratee
- TheSection
which is to be prefixed with magic bytes.aMagicBytes
- TheString
to be stored by this instance as magic bytes.aCharset
- TheCharset
to use when converting theString
to a byte array.- Returns:
- The accordingly created
MagicBytesSectionDecorator
.
-
magicBytesSection
public static <DECORATEE extends Section> MagicBytesSectionDecorator<DECORATEE> magicBytesSection(String aAlias, DECORATEE aDecoratee, byte... aMagicBytes) Enriches the providedSection
with the given magic bytes being prefixed.- Type Parameters:
DECORATEE
- TheSection
type describing theSegment
subclass decoratee.- Parameters:
aAlias
- The alias which identifies the content of this segment.aDecoratee
- TheSection
which is to be prefixed with magic bytes.aMagicBytes
- The magic bytes to be prefixed.- Returns:
- The accordingly created
MagicBytesSectionDecorator
.
-
magicBytesSection
public static <DECORATEE extends Section> MagicBytesSectionDecorator<DECORATEE> magicBytesSection(String aAlias, DECORATEE aDecoratee, int aMagicBytesLength) Enriches the providedSection
with magic bytes of the given length to be prefixed.- Type Parameters:
DECORATEE
- TheSection
type describing theSegment
subclass decoratee.- Parameters:
aAlias
- The alias which identifies the content of this segment.aDecoratee
- TheSection
which is to be prefixed with magic bytes.aMagicBytesLength
- The length of the magic bytes sequence.- Returns:
- The accordingly created
MagicBytesSectionDecorator
.
-
magicBytesSection
public static <DECORATEE extends Section> MagicBytesSectionDecorator<DECORATEE> magicBytesSection(String aAlias, DECORATEE aDecoratee, String aMagicBytes) - Type Parameters:
DECORATEE
- TheSection
type describing theSegment
subclass decoratee.- Parameters:
aAlias
- The alias which identifies the content of this segment.aDecoratee
- TheSection
which is to be prefixed with magic bytes.aMagicBytes
- TheString
to be stored by this instance as magic bytes (uses theTransmissionMetrics.DEFAULT_ENCODING
) for byte conversion).- Returns:
- The accordingly created
MagicBytesSectionDecorator
.
-
magicBytesSection
public static <DECORATEE extends Section> MagicBytesSectionDecorator<DECORATEE> magicBytesSection(String aAlias, DECORATEE aDecoratee, String aMagicBytes, Charset aCharset) - Type Parameters:
DECORATEE
- TheSection
type describing theSegment
subclass decoratee.- Parameters:
aAlias
- The alias which identifies the content of this segment.aDecoratee
- TheSection
which is to be prefixed with magic bytes.aMagicBytes
- TheString
to be stored by this instance as magic bytes.aCharset
- TheCharset
to use when converting theString
to a byte array.- Returns:
- The accordingly created
MagicBytesSectionDecorator
.
-
magicBytesSectionMultiplexer
public static MagicBytesSectionMultiplexer magicBytesSectionMultiplexer(Collection<Section> aSections) Constructs aMagicBytesSectionMultiplexer
containing the providedSection
elements.- Parameters:
aSections
- TheSection
elements being contained in this instance.- Returns:
- The accordingly created
MagicBytesSectionMultiplexer
.
-
magicBytesSectionMultiplexer
public static MagicBytesSectionMultiplexer magicBytesSectionMultiplexer(Collection<Section> aSections, int aReadLimit) Constructs aMagicBytesSectionMultiplexer
containing the providedSection
elements.- Parameters:
aSections
- TheSection
elements being contained in this instance.aReadLimit
- the maximum limit of bytes that can be read from a givenInputStream
before theInputStream
cannot be rolled back.- Returns:
- The accordingly created
MagicBytesSectionMultiplexer
.
-
magicBytesSectionMultiplexer
public static MagicBytesSectionMultiplexer magicBytesSectionMultiplexer(int aReadLimit, Section... aSections) Constructs aMagicBytesSectionMultiplexer
containing the providedSection
elements.- Parameters:
aReadLimit
- the maximum limit of bytes that can be read from a givenInputStream
before theInputStream
cannot be rolled back.aSections
- TheSection
elements being contained in this instance.- Returns:
- The accordingly created
MagicBytesSectionMultiplexer
.
-
magicBytesSectionMultiplexer
Constructs aMagicBytesSectionMultiplexer
containing the providedSection
elements.- Parameters:
aSections
- TheSection
elements being contained in this instance.- Returns:
- The accordingly created
MagicBytesSectionMultiplexer
.
-
magicBytesSegment
Constructs anAbstractMagicBytesTransmission
with the according magic bytes.- Parameters:
aMagicBytes
- The magic bytes to be stored by this instance.- Returns:
- The accordingly created
MagicBytesSegment
.
-
magicBytesSegment
public static MagicBytesSegment magicBytesSegment(byte[] aMagicBytes, TransmissionMetrics aTransmissionMetrics) Constructs an according instance for magic bytes of the given length. The configuration attributes are taken from theTransmissionMetrics
configuration object, though only those attributes are supported which are also supported by the other constructors!- Parameters:
aMagicBytes
- The bytes to be stored by this instance as magic bytes.aTransmissionMetrics
- TheTransmissionMetrics
to be used for configuring this instance.- Returns:
- The accordingly created
MagicBytesSegment
.
-
magicBytesSegment
public static <DECORATEE extends Segment> MagicBytesSegmentDecorator<DECORATEE> magicBytesSegment(DECORATEE aDecoratee, byte... aMagicBytes) Enriches the providedSegment
with the given magic bytes being prefixed.- Type Parameters:
DECORATEE
- TheSegment
type describing theSegment
subclass decoratee.- Parameters:
aDecoratee
- TheSegment
which is to be prefixed with magic bytes.aMagicBytes
- The magic bytes to be prefixed.- Returns:
- The accordingly created
MagicBytesSegmentDecorator
.
-
magicBytesSegment
public static <DECORATEE extends Segment> MagicBytesSegmentDecorator<DECORATEE> magicBytesSegment(DECORATEE aDecoratee, int aMagicBytesLength) Enriches the providedSegment
with magic bytes of the given length to be prefixed.- Type Parameters:
DECORATEE
- TheSegment
type describing theSegment
subclass decoratee.- Parameters:
aDecoratee
- TheSegment
which is to be prefixed with magic bytes.aMagicBytesLength
- The length of the magic bytes sequence.- Returns:
- The accordingly created
MagicBytesSegmentDecorator
.
-
magicBytesSegment
public static <DECORATEE extends Segment> MagicBytesSegmentDecorator<DECORATEE> magicBytesSegment(DECORATEE aDecoratee, String aMagicBytes) - Type Parameters:
DECORATEE
- TheSegment
type describing theSegment
subclass decoratee.- Parameters:
aDecoratee
- TheSegment
which is to be prefixed with magic bytes.aMagicBytes
- TheString
to be stored by this instance as magic bytes (uses theTransmissionMetrics.DEFAULT_ENCODING
) for byte conversion).- Returns:
- The accordingly created
MagicBytesSegmentDecorator
.
-
magicBytesSegment
public static <DECORATEE extends Segment> MagicBytesSegmentDecorator<DECORATEE> magicBytesSegment(DECORATEE aDecoratee, String aMagicBytes, Charset aCharset) - Type Parameters:
DECORATEE
- TheSegment
type describing theSegment
subclass decoratee.- Parameters:
aDecoratee
- TheSegment
which is to be prefixed with magic bytes.aMagicBytes
- TheString
to be stored by this instance as magic bytes.aCharset
- TheCharset
to use when converting theString
to a byte array.- Returns:
- The accordingly created
MagicBytesSegmentDecorator
.
-
magicBytesSegment
public static <DECORATEE extends Segment> MagicBytesSegmentDecorator<DECORATEE> magicBytesSegment(DECORATEE aDecoratee, TransmissionMetrics aTransmissionMetrics) Enriches the provided decoratee with magic bytes of the given length to be prefixed. The configuration attributes are taken from theTransmissionMetrics
configuration object, though only those attributes are supported which are also supported by the other constructors!- Type Parameters:
DECORATEE
- TheSegment
type describing theSegment
subclass decoratee.- Parameters:
aDecoratee
- The decoratee which to be prefixed with magic bytes.aTransmissionMetrics
- TheTransmissionMetrics
to be used for configuring this instance.- Returns:
- The accordingly created
MagicBytesSegmentDecorator
.
-
magicBytesSegment
Constructs anAbstractMagicBytesTransmission
with magic bytes of the given length.- Parameters:
aMagicBytesLength
- The length of the magic bytes sequence..- Returns:
- The accordingly created
MagicBytesSegment
.
-
magicBytesSegment
Constructs anAbstractMagicBytesTransmission
with the according magic bytes (retrieved from the givenString
).- Parameters:
aMagicBytes
- TheString
to be stored by this instance as magic bytes (uses theTransmissionMetrics.DEFAULT_ENCODING
) for byte conversion).- Returns:
- The accordingly created
MagicBytesSegment
.
-
magicBytesSegment
Constructs anAbstractMagicBytesTransmission
with the according magic bytes.- Parameters:
aAlias
- The alias which identifies the content of this segment.aMagicBytes
- The magic bytes to be stored by this instance.- Returns:
- The accordingly created
MagicBytesSegment
.
-
magicBytesSegment
public static MagicBytesSegment magicBytesSegment(String aAlias, byte[] aMagicBytes, TransmissionMetrics aTransmissionMetrics) Constructs an according instance for magic bytes of the given length. The configuration attributes are taken from theTransmissionMetrics
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 segment.aMagicBytes
- The bytes to be stored by this instance as magic bytes.aTransmissionMetrics
- TheTransmissionMetrics
to be used for configuring this instance.- Returns:
- The accordingly created
MagicBytesSegment
.
-
magicBytesSegment
Constructs anAbstractMagicBytesTransmission
with the according magic bytes (retrieved from the givenString
).- Parameters:
aMagicBytes
- TheString
to be stored by this instance as magic bytes.aCharset
- TheCharset
to use when converting theString
to a byte array.- Returns:
- The accordingly created
MagicBytesSegment
.
-
magicBytesSegment
public static <DECORATEE extends Segment> MagicBytesSegmentDecorator<DECORATEE> magicBytesSegment(String aAlias, DECORATEE aDecoratee, byte... aMagicBytes) Enriches the providedSegment
with the given magic bytes being prefixed.- Type Parameters:
DECORATEE
- TheSegment
type describing theSegment
subclass decoratee.- Parameters:
aAlias
- The alias which identifies the content of this segment.aDecoratee
- TheSegment
which is to be prefixed with magic bytes.aMagicBytes
- The magic bytes to be prefixed.- Returns:
- The accordingly created
MagicBytesSegmentDecorator
.
-
magicBytesSegment
public static <DECORATEE extends Segment> MagicBytesSegmentDecorator<DECORATEE> magicBytesSegment(String aAlias, DECORATEE aDecoratee, int aMagicBytesLength) Enriches the providedSegment
with magic bytes of the given length to be prefixed.- Type Parameters:
DECORATEE
- TheSegment
type describing theSegment
subclass decoratee.- Parameters:
aAlias
- The alias which identifies the content of this segment.aDecoratee
- TheSegment
which is to be prefixed with magic bytes.aMagicBytesLength
- The length of the magic bytes sequence.- Returns:
- The accordingly created
MagicBytesSegmentDecorator
.
-
magicBytesSegment
public static <DECORATEE extends Segment> MagicBytesSegmentDecorator<DECORATEE> magicBytesSegment(String aAlias, DECORATEE aDecoratee, String aMagicBytes) - Type Parameters:
DECORATEE
- TheSegment
type describing theSegment
subclass decoratee.- Parameters:
aAlias
- The alias which identifies the content of this segment.aDecoratee
- TheSegment
which is to be prefixed with magic bytes.aMagicBytes
- TheString
to be stored by this instance as magic bytes (uses theTransmissionMetrics.DEFAULT_ENCODING
) for byte conversion).- Returns:
- The accordingly created
MagicBytesSegmentDecorator
.
-
magicBytesSegment
public static <DECORATEE extends Segment> MagicBytesSegmentDecorator<DECORATEE> magicBytesSegment(String aAlias, DECORATEE aDecoratee, String aMagicBytes, Charset aCharset) - Type Parameters:
DECORATEE
- TheSegment
type describing theSegment
subclass decoratee.- Parameters:
aAlias
- The alias which identifies the content of this segment.aDecoratee
- TheSegment
which is to be prefixed with magic bytes.aMagicBytes
- TheString
to be stored by this instance as magic bytes.aCharset
- TheCharset
to use when converting theString
to a byte array.- Returns:
- The accordingly created
MagicBytesSegmentDecorator
.
-
magicBytesSegment
public static <DECORATEE extends Segment> MagicBytesSegmentDecorator<DECORATEE> magicBytesSegment(String aAlias, DECORATEE aDecoratee, TransmissionMetrics aTransmissionMetrics) Enriches the provided decoratee with magic bytes of the given length to be prefixed. The configuration attributes are taken from theTransmissionMetrics
configuration object, though only those attributes are supported which are also supported by the other constructors!- Type Parameters:
DECORATEE
- TheSegment
type describing theSegment
subclass decoratee.- Parameters:
aAlias
- The alias which identifies the content of this segment.aDecoratee
- The decoratee which to be prefixed with magic bytes.aTransmissionMetrics
- TheTransmissionMetrics
to be used for configuring this instance.- Returns:
- The accordingly created
MagicBytesSegmentDecorator
.
-
magicBytesSegment
Constructs anAbstractMagicBytesTransmission
with magic bytes of the given length.- Parameters:
aAlias
- The alias which identifies the content of this segment.aMagicBytesLength
- The length of the magic bytes sequence..- Returns:
- The accordingly created
MagicBytesSegment
.
-
magicBytesSegment
Constructs anAbstractMagicBytesTransmission
with the according magic bytes (retrieved from the givenString
).- Parameters:
aAlias
- The alias which identifies the content of this segment.aMagicBytes
- TheString
to be stored by this instance as magic bytes (uses theTransmissionMetrics.DEFAULT_ENCODING
) for byte conversion).- Returns:
- The accordingly created
MagicBytesSegment
.
-
magicBytesSegment
public static MagicBytesSegment magicBytesSegment(String aAlias, String aMagicBytes, Charset aCharset) Constructs anAbstractMagicBytesTransmission
with the according magic bytes (retrieved from the givenString
).- Parameters:
aAlias
- The alias which identifies the content of this segment.aMagicBytes
- TheString
to be stored by this instance as magic bytes.aCharset
- TheCharset
to use when converting theString
to a byte array.- Returns:
- The accordingly created
MagicBytesSegment
.
-
magicBytesSegment
public static MagicBytesSegment magicBytesSegment(String aAlias, String aMagicBytes, TransmissionMetrics aTransmissionMetrics) Constructs an according instance for magic bytes of the given length. The configuration attributes are taken from theTransmissionMetrics
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 segment.aMagicBytes
- TheString
to be stored by this instance as magic bytes.aTransmissionMetrics
- TheTransmissionMetrics
to be used for configuring this instance.- Returns:
- The accordingly created
MagicBytesSegment
.
-
magicBytesSegment
Constructs an according instance for magic bytes of the given length. The configuration attributes are taken from theTransmissionMetrics
configuration object, though only those attributes are supported which are also supported by the other constructors!- Parameters:
aTransmissionMetrics
- TheTransmissionMetrics
to be used for configuring this instance.- Returns:
- The accordingly created
MagicBytesSegment
.
-
magicBytesSegment
public static MagicBytesSegment magicBytesSegment(TransmissionMetrics aTransmissionMetrics, String aMagicBytes) Constructs an according instance for magic bytes of the given length. The configuration attributes are taken from theTransmissionMetrics
configuration object, though only those attributes are supported which are also supported by the other constructors!- Parameters:
aTransmissionMetrics
- TheTransmissionMetrics
to be used for configuring this instance.aMagicBytes
- TheString
to be stored by this instance as magic bytes.- Returns:
- The accordingly created
MagicBytesSegment
.
-
magicBytesSegmentMultiplexer
public static MagicBytesSegmentMultiplexer magicBytesSegmentMultiplexer(Collection<Segment> aSegments) Constructs aMagicBytesSegmentMultiplexer
containing the providedSegment
elements.- Parameters:
aSegments
- TheSegment
elements being contained in this instance.- Returns:
- The accordingly created
MagicBytesSegmentMultiplexer
.
-
magicBytesSegmentMultiplexer
public static MagicBytesSegmentMultiplexer magicBytesSegmentMultiplexer(Collection<Segment> aSegments, int aReadLimit) Constructs aMagicBytesSegmentMultiplexer
containing the providedSegment
elements.- Parameters:
aSegments
- TheSegment
elements being contained in this instance.aReadLimit
- the maximum limit of bytes that can be read from a givenInputStream
before theInputStream
cannot be rolled back.- Returns:
- The accordingly created
MagicBytesSegmentMultiplexer
.
-
magicBytesSegmentMultiplexer
public static MagicBytesSegmentMultiplexer magicBytesSegmentMultiplexer(int aReadLimit, Segment... aSegments) Constructs aMagicBytesSegmentMultiplexer
containing the providedSegment
elements.- Parameters:
aReadLimit
- the maximum limit of bytes that can be read from a givenInputStream
before theInputStream
cannot be rolled back.aSegments
- TheSegment
elements being contained in this instance.- Returns:
- The accordingly created
MagicBytesSegmentMultiplexer
.
-
magicBytesSegmentMultiplexer
Constructs aMagicBytesSegmentMultiplexer
containing the providedSegment
elements.- Parameters:
aSegments
- TheSegment
elements being contained in this instance.- Returns:
- The accordingly created
MagicBytesSegmentMultiplexer
.
-
numberSegment
Constructs an emptyNumberSegment
with aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theNumberSegment
's value.- Parameters:
aNumberWidth
- The number of bytes to be occupied by the number.- Returns:
- The accordingly created
NumberSegment
.
-
numberSegment
public static NumberSegment numberSegment(int aNumberWidth, org.refcodes.numerical.Endianess aEndianess) Constructs an emptyNumberSegment
with the givenEndianess
.- Parameters:
aNumberWidth
- The number of bytes to be occupied by the number.aEndianess
- TheEndianess
to be used for payload values.- Returns:
- The accordingly created
NumberSegment
.
-
numberSegment
Constructs aNumberSegment
with the given long payload and aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theNumberSegment
's value.- Parameters:
aNumberWidth
- The number of bytes to be occupied by the number.aValue
- The payload to be contained by theNumberSegment
.- Returns:
- The accordingly created
NumberSegment
.
-
numberSegment
public static NumberSegment numberSegment(int aNumberWidth, Long aValue, org.refcodes.numerical.Endianess aEndianess) Constructs aNumberSegment
with the given long payload and the givenEndianess
for the representation of theNumberSegment
's value (payload).- Parameters:
aNumberWidth
- The number of bytes to be occupied by the number.aValue
- The value (payload) to be contained by theNumberSegment
.aEndianess
- TheEndianess
to be used for payload values.- Returns:
- The accordingly created
NumberSegment
.
-
numberSegment
public static NumberSegment numberSegment(int aNumberWidth, Long aValue, TransmissionMetrics aTransmissionMetrics) Constructs an according instance from the given configuration. The configuration attributes are taken from theTransmissionMetrics
configuration object, though only those attributes are supported which are also supported by the other constructors!- Parameters:
aNumberWidth
- The number of bytes to be occupied by the number.aValue
- The payload to be contained by theDoubleArraySection
.aTransmissionMetrics
- TheTransmissionMetrics
to be used for configuring this instance.- Returns:
- The accordingly created
NumberSegment
.
-
numberSegment
Constructs an emptyNumberSegment
with aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theNumberSegment
's value.- Parameters:
aNumberWidth
- The number of bytes to be occupied by the number.aAlias
- The alias which identifies the content of this segment.- Returns:
- The accordingly created
NumberSegment
.
-
numberSegment
public static NumberSegment numberSegment(int aNumberWidth, String aAlias, org.refcodes.numerical.Endianess aEndianess) Constructs an emptyNumberSegment
with the givenEndianess
.- Parameters:
aNumberWidth
- The number of bytes to be occupied by the number.aAlias
- The alias which identifies the content of this segment.aEndianess
- TheEndianess
to be used for payload values.- Returns:
- The accordingly created
NumberSegment
.
-
numberSegment
Constructs aNumberSegment
with the given long payload and aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theNumberSegment
's value.- Parameters:
aNumberWidth
- The number of bytes to be occupied by the number.aAlias
- The alias which identifies the content of this segment.aValue
- The payload to be contained by theNumberSegment
.- Returns:
- The accordingly created
NumberSegment
.
-
numberSegment
public static NumberSegment numberSegment(int aNumberWidth, String aAlias, Long aValue, org.refcodes.numerical.Endianess aEndianess) Constructs aNumberSegment
with the given long payload and the givenEndianess
for the representation of theNumberSegment
's value (payload).- Parameters:
aNumberWidth
- The number of bytes to be occupied by the number.aAlias
- The alias which identifies the content of this segment.aValue
- The value (payload) to be contained by theNumberSegment
.aEndianess
- TheEndianess
to be used for payload values.- Returns:
- The accordingly created
NumberSegment
.
-
numberSegment
public static NumberSegment numberSegment(int aNumberWidth, String aAlias, Long aValue, TransmissionMetrics aTransmissionMetrics) Constructs an according instance from the given configuration. The configuration attributes are taken from theTransmissionMetrics
configuration object, though only those attributes are supported which are also supported by the other constructors!- Parameters:
aNumberWidth
- The number of bytes to be occupied by the number.aAlias
- The alias which identifies the content of this instance.aValue
- The payload to be contained by theDoubleArraySection
.aTransmissionMetrics
- TheTransmissionMetrics
to be used for configuring this instance.- Returns:
- The accordingly created
NumberSegment
.
-
numberSegment
public static NumberSegment numberSegment(int aNumberWidth, String aAlias, TransmissionMetrics aTransmissionMetrics) Constructs an according instance from the given configuration. The configuration attributes are taken from theTransmissionMetrics
configuration object, though only those attributes are supported which are also supported by the other constructors!- Parameters:
aNumberWidth
- The number of bytes to be occupied by the number.aAlias
- The alias which identifies the content of this instance.aTransmissionMetrics
- TheTransmissionMetrics
to be used for configuring this instance.- Returns:
- The accordingly created
NumberSegment
.
-
numberSegment
public static NumberSegment numberSegment(int aNumberWidth, TransmissionMetrics aTransmissionMetrics) Constructs an according instance from the given configuration. The configuration attributes are taken from theTransmissionMetrics
configuration object, though only those attributes are supported which are also supported by the other constructors!- Parameters:
aNumberWidth
- The number of bytes to be occupied by the number.aTransmissionMetrics
- TheTransmissionMetrics
to be used for configuring this instance.- Returns:
- The accordingly created
NumberSegment
.
-
propertiesSection
Constructs an emptyPropertiesSection
using UTF-8 encoding for the payload.- Returns:
- The accordingly created
PropertiesSection
.
-
propertiesSection
Constructs aPropertiesSection
with a payload expected to be encoded with the givenCharset
.- Parameters:
aCharset
- TheCharset
to be used for encoding theString
.- Returns:
- The accordingly created
PropertiesSection
.
-
propertiesSection
Constructs aPropertiesSection
with the givenProperties
payload being UTF-8 encoded. The properties from the payload are copied into thePropertiesSection
.- Parameters:
aPayload
- The payload to be contained by theSection
.- Returns:
- The accordingly created
PropertiesSection
.
-
propertiesSection
public static PropertiesSection propertiesSection(org.refcodes.properties.Properties aPayload, Charset aCharset) Constructs aPropertiesSection
with the givenProperties
payload being encoded with the givenCharset
. The properties from the payload are copied into thePropertiesSection
.- Parameters:
aPayload
- The payload to be contained by theSection
.aCharset
- TheCharset
to be used for encoding theString
.- Returns:
- The accordingly created
PropertiesSection
.
-
propertiesSection
public static PropertiesSection propertiesSection(org.refcodes.properties.Properties aPayload, TransmissionMetrics aTransmissionMetrics) Constructs aPropertiesSection
with the givenProperties
payload being encoded with the givenCharset
. The properties from the payload are copied into thePropertiesSection
. The configuration attributes are taken from theTransmissionMetrics
configuration object, though only those attributes are supported which are also supported by the other constructors!- Parameters:
aPayload
- The payload to be contained by theSection
.aTransmissionMetrics
- TheTransmissionMetrics
to be used for configuring this instance.- Returns:
- The accordingly created
PropertiesSection
.
-
propertiesSection
Constructs an emptyPropertiesSection
using UTF-8 encoding for the payload.- Parameters:
aAlias
- The alias which identifies the content of this segment.- Returns:
- The accordingly created
PropertiesSection
.
-
propertiesSection
Constructs aPropertiesSection
with a payload expected to be encoded with the givenCharset
.- Parameters:
aAlias
- The alias which identifies the content of this segment.aCharset
- TheCharset
to be used for encoding theString
.- Returns:
- The accordingly created
PropertiesSection
.
-
propertiesSection
public static PropertiesSection propertiesSection(String aAlias, org.refcodes.properties.Properties aPayload) Constructs aPropertiesSection
with the givenProperties
payload being UTF-8 encoded. The properties from the payload are copied into thePropertiesSection
.- Parameters:
aAlias
- The alias which identifies the content of this segment.aPayload
- The payload to be contained by theSection
.- Returns:
- The accordingly created
PropertiesSection
.
-
propertiesSection
public static PropertiesSection propertiesSection(String aAlias, org.refcodes.properties.Properties aPayload, Charset aCharset) Constructs aPropertiesSection
with the givenProperties
payload being encoded with the givenCharset
. The properties from the payload are copied into thePropertiesSection
.- Parameters:
aAlias
- The alias which identifies the content of this segment.aPayload
- The payload to be contained by theSection
.aCharset
- TheCharset
to be used for encoding theString
.- Returns:
- The accordingly created
PropertiesSection
.
-
propertiesSection
public static PropertiesSection propertiesSection(String aAlias, org.refcodes.properties.Properties aPayload, TransmissionMetrics aTransmissionMetrics) Constructs aPropertiesSection
with the givenProperties
payload being encoded with the givenCharset
. The properties from the payload are copied into thePropertiesSection
. The configuration attributes are taken from theTransmissionMetrics
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 segment.aPayload
- The payload to be contained by theSection
.aTransmissionMetrics
- TheTransmissionMetrics
to be used for configuring this instance.- Returns:
- The accordingly created
PropertiesSection
.
-
readyToReceiveSection
public static <DECORATEE extends Section> ReadyToReceiveSectionDecorator<DECORATEE> readyToReceiveSection(DECORATEE aDecoratee) Constructs an according flow-control decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- The decoratee type describing the according subclass to be wrapped by the according decorator.- Parameters:
aDecoratee
- The decoratee to be wrapped by the flow-control decorator.- Returns:
- The accordingly created
ReadyToReceiveSectionDecorator
.
-
readyToReceiveSection
public static <DECORATEE extends Section> ReadyToReceiveSectionDecorator<DECORATEE> readyToReceiveSection(DECORATEE aDecoratee, byte aReadyToReceiveMagicBytes) Constructs an according flow-control decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- The decoratee type describing the according subclass to be wrapped by the according decorator.- Parameters:
aDecoratee
- The decoratee to be wrapped by the flow-control decorator.aReadyToReceiveMagicBytes
- The RTR magic bytes to be used to signal a RTR.- Returns:
- The accordingly created
ReadyToReceiveSectionDecorator
.
-
readyToReceiveSection
public static <DECORATEE extends Section> ReadyToReceiveSectionDecorator<DECORATEE> readyToReceiveSection(DECORATEE aDecoratee, byte aReadyToReceiveMagicBytes, int aReadyToReceiveRetryNumber) Constructs an according flow-control decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- The decoratee type describing the according subclass to be wrapped by the according decorator.- Parameters:
aDecoratee
- The decoratee to be wrapped by the flow-control decorator.aReadyToReceiveMagicBytes
- The RTR magic bytes to be used to signal a RTR.aReadyToReceiveRetryNumber
- The number of retries sending an RTR over the return channel.- Returns:
- The accordingly created
ReadyToReceiveSectionDecorator
.
-
readyToReceiveSection
public static <DECORATEE extends Section> ReadyToReceiveSectionDecorator<DECORATEE> readyToReceiveSection(DECORATEE aDecoratee, byte aReadyToReceiveMagicBytes, int aReadyToReceiveRetryNumber, long aReadyToReceiveTimeoutInMs, SegmentPackager aReadyToReceiveSegmentPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- The decoratee type describing the according subclass to be wrapped by the according decorator.- Parameters:
aDecoratee
- The decoratee to be wrapped by the flow-control decorator.aReadyToReceiveMagicBytes
- The RTR magic bytes to be used to signal a RTR.aReadyToReceiveRetryNumber
- The number of retries sending an RTR over the return channel.aReadyToReceiveTimeoutInMs
- The timeout in milliseconds to wait for a payload response (receiver) from the transmitter after signaling a RTR ("ready-to-send") to the transmitter.aReadyToReceiveSegmentPackager
- The RTRSegmentPackager
for packaging RTR responses.- Returns:
- The accordingly created
ReadyToReceiveSectionDecorator
.
-
readyToReceiveSection
public static <DECORATEE extends Section> ReadyToReceiveSectionDecorator<DECORATEE> readyToReceiveSection(DECORATEE aDecoratee, byte aReadyToReceiveMagicBytes, int aReadyToReceiveRetryNumber, SegmentPackager aReadyToReceiveSegmentPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- The decoratee type describing the according subclass to be wrapped by the according decorator.- Parameters:
aDecoratee
- The decoratee to be wrapped by the flow-control decorator.aReadyToReceiveMagicBytes
- The RTR magic bytes to be used to signal a RTR.aReadyToReceiveRetryNumber
- The number of retries sending an RTR over the return channel.aReadyToReceiveSegmentPackager
- The RTRSegmentPackager
for packaging RTR responses.- Returns:
- The accordingly created
ReadyToReceiveSectionDecorator
.
-
readyToReceiveSection
public static <DECORATEE extends Section> ReadyToReceiveSectionDecorator<DECORATEE> readyToReceiveSection(DECORATEE aDecoratee, byte aReadyToReceiveMagicBytes, long aReadyToReceiveTimeoutInMs) Constructs an according flow-control decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- The decoratee type describing the according subclass to be wrapped by the according decorator.- Parameters:
aDecoratee
- The decoratee to be wrapped by the flow-control decorator.aReadyToReceiveMagicBytes
- The RTR magic bytes to be used to signal a RTR.aReadyToReceiveTimeoutInMs
- The timeout in milliseconds to wait for a payload response (receiver) from the transmitter after signaling a RTR ("ready-to-send") to the transmitter.- Returns:
- The accordingly created
ReadyToReceiveSectionDecorator
.
-
readyToReceiveSection
public static <DECORATEE extends Section> ReadyToReceiveSectionDecorator<DECORATEE> readyToReceiveSection(DECORATEE aDecoratee, byte aReadyToReceiveMagicBytes, long aReadyToReceiveTimeoutInMs, SegmentPackager aReadyToReceiveSegmentPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- The decoratee type describing the according subclass to be wrapped by the according decorator.- Parameters:
aDecoratee
- The decoratee to be wrapped by the flow-control decorator.aReadyToReceiveMagicBytes
- The RTR magic bytes to be used to signal a RTR.aReadyToReceiveTimeoutInMs
- The timeout in milliseconds to wait for a payload response (receiver) from the transmitter after signaling a RTR ("ready-to-send") to the transmitter.aReadyToReceiveSegmentPackager
- The RTRSegmentPackager
for packaging RTR responses.- Returns:
- The accordingly created
ReadyToReceiveSectionDecorator
.
-
readyToReceiveSection
public static <DECORATEE extends Section> ReadyToReceiveSectionDecorator<DECORATEE> readyToReceiveSection(DECORATEE aDecoratee, byte aReadyToReceiveMagicBytes, SegmentPackager aReadyToReceiveSegmentPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- The decoratee type describing the according subclass to be wrapped by the according decorator.- Parameters:
aDecoratee
- The decoratee to be wrapped by the flow-control decorator.aReadyToReceiveMagicBytes
- The RTR magic bytes to be used to signal a RTR.aReadyToReceiveSegmentPackager
- The RTRSegmentPackager
for packaging RTR responses.- Returns:
- The accordingly created
ReadyToReceiveSectionDecorator
.
-
readyToReceiveSection
public static <DECORATEE extends Section> ReadyToReceiveSectionDecorator<DECORATEE> readyToReceiveSection(DECORATEE aDecoratee, int aReadyToReceiveRetryNumber, long aReadyToReceiveTimeoutInMs) Constructs an according flow-control decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- The decoratee type describing the according subclass to be wrapped by the according decorator.- Parameters:
aDecoratee
- The decoratee to be wrapped by the flow-control decorator.aReadyToReceiveRetryNumber
- The number of retries sending an RTR over the return channel.aReadyToReceiveTimeoutInMs
- The timeout in milliseconds to wait for a payload response (receiver) from the transmitter after signaling a RTR ("ready-to-send") to the transmitter.- Returns:
- The accordingly created
ReadyToReceiveSectionDecorator
.
-
readyToReceiveSection
public static <DECORATEE extends Section> ReadyToReceiveSectionDecorator<DECORATEE> readyToReceiveSection(DECORATEE aDecoratee, int aReadyToReceiveRetryNumber, long aReadyToReceiveTimeoutInMs, SegmentPackager aReadyToReceiveSegmentPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- The decoratee type describing the according subclass to be wrapped by the according decorator.- Parameters:
aDecoratee
- The decoratee to be wrapped by the flow-control decorator.aReadyToReceiveRetryNumber
- The number of retries sending an RTR over the return channel.aReadyToReceiveTimeoutInMs
- The timeout in milliseconds to wait for a payload response (receiver) from the transmitter after signaling a RTR ("ready-to-send") to the transmitter.aReadyToReceiveSegmentPackager
- The RTRSegmentPackager
for packaging RTR responses.- Returns:
- The accordingly created
ReadyToReceiveSectionDecorator
.
-
readyToReceiveSection
public static <DECORATEE extends Section> ReadyToReceiveSectionDecorator<DECORATEE> readyToReceiveSection(DECORATEE aDecoratee, long aReadyToReceiveTimeoutInMs) Constructs an according flow-control decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- The decoratee type describing the according subclass to be wrapped by the according decorator.- Parameters:
aDecoratee
- The decoratee to be wrapped by the flow-control decorator.aReadyToReceiveTimeoutInMs
- The timeout in milliseconds to wait for an RTR request (transmitter) from the receiver.- Returns:
- The accordingly created
ReadyToReceiveSectionDecorator
.
-
readyToReceiveSection
public static <DECORATEE extends Section> ReadyToReceiveSectionDecorator<DECORATEE> readyToReceiveSection(DECORATEE aDecoratee, long aCtsTimeoutInMs, byte aReadyToReceiveMagicBytes) Constructs an according flow-control decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- The decoratee type describing the according subclass to be wrapped by the according decorator.- Parameters:
aDecoratee
- The decoratee to be wrapped by the flow-control decorator.aCtsTimeoutInMs
- The timeout in milliseconds to wait for an RTR request (transmitter) from the receiver.aReadyToReceiveMagicBytes
- The RTR magic bytes to be used to signal a RTR.- Returns:
- The accordingly created
ReadyToReceiveSectionDecorator
.
-
readyToReceiveSection
public static <DECORATEE extends Section> ReadyToReceiveSectionDecorator<DECORATEE> readyToReceiveSection(DECORATEE aDecoratee, long aCtsTimeoutInMs, byte aReadyToReceiveMagicBytes, int aReadyToReceiveRetryNumber) Constructs an according flow-control decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- The decoratee type describing the according subclass to be wrapped by the according decorator.- Parameters:
aDecoratee
- The decoratee to be wrapped by the flow-control decorator.aCtsTimeoutInMs
- The timeout in milliseconds to wait for an RTR request (transmitter) from the receiver.aReadyToReceiveMagicBytes
- The RTR magic bytes to be used to signal a RTR.aReadyToReceiveRetryNumber
- The number of retries sending an RTR over the return channel.- Returns:
- The accordingly created
ReadyToReceiveSectionDecorator
.
-
readyToReceiveSection
public static <DECORATEE extends Section> ReadyToReceiveSectionDecorator<DECORATEE> readyToReceiveSection(DECORATEE aDecoratee, long aCtsTimeoutInMs, byte aReadyToReceiveMagicBytes, int aReadyToReceiveRetryNumber, SegmentPackager aReadyToReceiveSegmentPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- The decoratee type describing the according subclass to be wrapped by the according decorator.- Parameters:
aDecoratee
- The decoratee to be wrapped by the flow-control decorator.aCtsTimeoutInMs
- The timeout in milliseconds to wait for an RTR request (transmitter) from the receiver.aReadyToReceiveMagicBytes
- The RTR magic bytes to be used to signal a RTR.aReadyToReceiveRetryNumber
- The number of retries sending an RTR over the return channel.aReadyToReceiveSegmentPackager
- The RTRSegmentPackager
for packaging RTR responses.- Returns:
- The accordingly created
ReadyToReceiveSectionDecorator
.
-
readyToReceiveSection
public static <DECORATEE extends Section> ReadyToReceiveSectionDecorator<DECORATEE> readyToReceiveSection(DECORATEE aDecoratee, long aCtsTimeoutInMs, byte aReadyToReceiveMagicBytes, long aReadyToReceiveTimeoutInMs) Constructs an according flow-control decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- The decoratee type describing the according subclass to be wrapped by the according decorator.- Parameters:
aDecoratee
- The decoratee to be wrapped by the flow-control decorator.aCtsTimeoutInMs
- The timeout in milliseconds to wait for an RTR request (transmitter) from the receiver.aReadyToReceiveMagicBytes
- The RTR magic bytes to be used to signal a RTR.aReadyToReceiveTimeoutInMs
- The timeout in milliseconds to wait for a payload response (receiver) from the transmitter after signaling a RTR ("ready-to-send") to the transmitter.- Returns:
- The accordingly created
ReadyToReceiveSectionDecorator
.
-
readyToReceiveSection
public static <DECORATEE extends Section> ReadyToReceiveSectionDecorator<DECORATEE> readyToReceiveSection(DECORATEE aDecoratee, long aCtsTimeoutInMs, byte aReadyToReceiveMagicBytes, long aReadyToReceiveTimeoutInMs, SegmentPackager aReadyToReceiveSegmentPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- The decoratee type describing the according subclass to be wrapped by the according decorator.- Parameters:
aDecoratee
- The decoratee to be wrapped by the flow-control decorator.aCtsTimeoutInMs
- The timeout in milliseconds to wait for an RTR request (transmitter) from the receiver.aReadyToReceiveMagicBytes
- The RTR magic bytes to be used to signal a RTR.aReadyToReceiveTimeoutInMs
- The timeout in milliseconds to wait for a payload response (receiver) from the transmitter after signaling a RTR ("ready-to-send") to the transmitter.aReadyToReceiveSegmentPackager
- The RTRSegmentPackager
for packaging RTR responses.- Returns:
- The accordingly created
ReadyToReceiveSectionDecorator
.
-
readyToReceiveSection
public static <DECORATEE extends Section> ReadyToReceiveSectionDecorator<DECORATEE> readyToReceiveSection(DECORATEE aDecoratee, long aCtsTimeoutInMs, byte aReadyToReceiveMagicBytes, SegmentPackager aReadyToReceiveSegmentPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- The decoratee type describing the according subclass to be wrapped by the according decorator.- Parameters:
aDecoratee
- The decoratee to be wrapped by the flow-control decorator.aCtsTimeoutInMs
- The timeout in milliseconds to wait for an RTR request (transmitter) from the receiver.aReadyToReceiveMagicBytes
- The RTR magic bytes to be used to signal a RTR.aReadyToReceiveSegmentPackager
- The RTRSegmentPackager
for packaging RTR responses.- Returns:
- The accordingly created
ReadyToReceiveSectionDecorator
.
-
readyToReceiveSection
public static <DECORATEE extends Section> ReadyToReceiveSectionDecorator<DECORATEE> readyToReceiveSection(DECORATEE aDecoratee, long aCtsTimeoutInMs, byte[] aReadyToReceiveMagicBytes, int aReadyToReceiveRetryNumber, long aReadyToReceiveTimeoutInMs, SegmentPackager aReadyToReceiveSegmentPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- The decoratee type describing the according subclass to be wrapped by the according decorator.- Parameters:
aDecoratee
- The decoratee to be wrapped by the flow-control decorator.aCtsTimeoutInMs
- The timeout in milliseconds to wait for an RTR request (transmitter) from the receiver.aReadyToReceiveMagicBytes
- The RTR magic bytes to be used to signal a RTR.aReadyToReceiveRetryNumber
- The number of retries sending an RTR over the return channel.aReadyToReceiveTimeoutInMs
- The timeout in milliseconds to wait for a payload response (receiver) from the transmitter after signaling a RTR ("ready-to-send") to the transmitter.aReadyToReceiveSegmentPackager
- The RTRSegmentPackager
for packaging RTR responses.- Returns:
- The accordingly created
ReadyToReceiveSectionDecorator
.
-
readyToReceiveSection
public static <DECORATEE extends Section> ReadyToReceiveSectionDecorator<DECORATEE> readyToReceiveSection(DECORATEE aDecoratee, long aCtsTimeoutInMs, int aReadyToReceiveRetryNumber, long aReadyToReceiveTimeoutInMs) Constructs an according flow-control decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- The decoratee type describing the according subclass to be wrapped by the according decorator.- Parameters:
aDecoratee
- The decoratee to be wrapped by the flow-control decorator.aCtsTimeoutInMs
- The timeout in milliseconds to wait for an RTR request (transmitter) from the receiver.aReadyToReceiveRetryNumber
- The number of retries sending an RTR over the return channel.aReadyToReceiveTimeoutInMs
- The timeout in milliseconds to wait for a payload response (receiver) from the transmitter after signaling a RTR ("ready-to-send") to the transmitter.- Returns:
- The accordingly created
ReadyToReceiveSectionDecorator
.
-
readyToReceiveSection
public static <DECORATEE extends Section> ReadyToReceiveSectionDecorator<DECORATEE> readyToReceiveSection(DECORATEE aDecoratee, long aCtsTimeoutInMs, int aReadyToReceiveRetryNumber, long aReadyToReceiveTimeoutInMs, SegmentPackager aReadyToReceiveSegmentPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- The decoratee type describing the according subclass to be wrapped by the according decorator.- Parameters:
aDecoratee
- The decoratee to be wrapped by the flow-control decorator.aCtsTimeoutInMs
- The timeout in milliseconds to wait for an RTR request (transmitter) from the receiver.aReadyToReceiveRetryNumber
- The number of retries sending an RTR over the return channel.aReadyToReceiveTimeoutInMs
- The timeout in milliseconds to wait for a payload response (receiver) from the transmitter after signaling a RTR ("ready-to-send") to the transmitter.aReadyToReceiveSegmentPackager
- The RTRSegmentPackager
for packaging RTR responses.- Returns:
- The accordingly created
ReadyToReceiveSectionDecorator
.
-
readyToReceiveSection
public static <DECORATEE extends Section> ReadyToReceiveSectionDecorator<DECORATEE> readyToReceiveSection(DECORATEE aDecoratee, long aCtsTimeoutInMs, long aReadyToReceiveTimeoutInMs) Constructs an according flow-control decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- The decoratee type describing the according subclass to be wrapped by the according decorator.- Parameters:
aDecoratee
- The decoratee to be wrapped by the flow-control decorator.aCtsTimeoutInMs
- The timeout in milliseconds to wait for an RTR request (transmitter) from the receiver.aReadyToReceiveTimeoutInMs
- The timeout in milliseconds to wait for a payload response (receiver) from the transmitter after signaling a RTR ("ready-to-send") to the transmitter.- Returns:
- The accordingly created
ReadyToReceiveSectionDecorator
.
-
readyToReceiveSection
public static <DECORATEE extends Section> ReadyToReceiveSectionDecorator<DECORATEE> readyToReceiveSection(DECORATEE aDecoratee, long aCtsTimeoutInMs, long aReadyToReceiveTimeoutInMs, SegmentPackager aReadyToReceiveSegmentPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- The decoratee type describing the according subclass to be wrapped by the according decorator.- Parameters:
aDecoratee
- The decoratee to be wrapped by the flow-control decorator.aCtsTimeoutInMs
- The timeout in milliseconds to wait for an RTR request (transmitter) from the receiver.aReadyToReceiveTimeoutInMs
- The timeout in milliseconds to wait for a payload response (receiver) from the transmitter after signaling a RTR ("ready-to-send") to the transmitter.aReadyToReceiveSegmentPackager
- The RTRSegmentPackager
for packaging RTR responses.- Returns:
- The accordingly created
ReadyToReceiveSectionDecorator
.
-
readyToReceiveSection
public static <DECORATEE extends Section> ReadyToReceiveSectionDecorator<DECORATEE> readyToReceiveSection(DECORATEE aDecoratee, long aReadyToReceiveTimeoutInMs, SegmentPackager aReadyToReceiveSegmentPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- The decoratee type describing the according subclass to be wrapped by the according decorator.- Parameters:
aDecoratee
- The decoratee to be wrapped by the flow-control decorator.aReadyToReceiveTimeoutInMs
- The timeout in milliseconds to wait for a payload response (receiver) from the transmitter after signaling a RTR ("ready-to-send") to the transmitter.aReadyToReceiveSegmentPackager
- The RTRSegmentPackager
for packaging RTR responses.- Returns:
- The accordingly created
ReadyToReceiveSectionDecorator
.
-
readyToReceiveSection
public static <DECORATEE extends Section> ReadyToReceiveSectionDecorator<DECORATEE> readyToReceiveSection(DECORATEE aDecoratee, TransmissionMetrics aTransmissionMetrics) Constructs an according control-flow decorator instance wrapping the given decoratee. The configuration attributes are taken from theTransmissionMetrics
configuration object, though only those attributes are supported which are also supported by the other constructors!- Type Parameters:
DECORATEE
- The decoratee type describing the according subclass to be wrapped by the according decorator.- Parameters:
aDecoratee
- The decoratee to be wrapped by the control-flow decorator.aTransmissionMetrics
- TheTransmissionMetrics
to be used for configuring this instance.- Returns:
- The accordingly created
ReadyToReceiveSectionDecorator
.
-
readyToReceiveSegment
public static <DECORATEE extends Segment> ReadyToReceiveSegmentDecorator<DECORATEE> readyToReceiveSegment(DECORATEE aDecoratee) Constructs an according flow-control decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- The decoratee type describing the according subclass to be wrapped by the according decorator.- Parameters:
aDecoratee
- The decoratee to be wrapped by the flow-control decorator.- Returns:
- The accordingly created
ReadyToReceiveSegmentDecorator
.
-
readyToReceiveSegment
public static <DECORATEE extends Segment> ReadyToReceiveSegmentDecorator<DECORATEE> readyToReceiveSegment(DECORATEE aDecoratee, byte aReadyToReceiveMagicBytes) Constructs an according flow-control decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- The decoratee type describing the according subclass to be wrapped by the according decorator.- Parameters:
aDecoratee
- The decoratee to be wrapped by the flow-control decorator.aReadyToReceiveMagicBytes
- The RTR magic bytes to be used to signal a RTR.- Returns:
- The accordingly created
ReadyToReceiveSegmentDecorator
.
-
readyToReceiveSegment
public static <DECORATEE extends Segment> ReadyToReceiveSegmentDecorator<DECORATEE> readyToReceiveSegment(DECORATEE aDecoratee, byte aReadyToReceiveMagicBytes, int aReadyToReceiveRetryNumber) Constructs an according flow-control decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- The decoratee type describing the according subclass to be wrapped by the according decorator.- Parameters:
aDecoratee
- The decoratee to be wrapped by the flow-control decorator.aReadyToReceiveMagicBytes
- The RTR magic bytes to be used to signal a RTR.aReadyToReceiveRetryNumber
- The number of retries sending an RTR over the return channel.- Returns:
- The accordingly created
ReadyToReceiveSegmentDecorator
.
-
readyToReceiveSegment
public static <DECORATEE extends Segment> ReadyToReceiveSegmentDecorator<DECORATEE> readyToReceiveSegment(DECORATEE aDecoratee, byte aReadyToReceiveMagicBytes, int aReadyToReceiveRetryNumber, long aReadyToReceiveTimeoutInMs, SegmentPackager aReadyToReceiveSegmentPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- The decoratee type describing the according subclass to be wrapped by the according decorator.- Parameters:
aDecoratee
- The decoratee to be wrapped by the flow-control decorator.aReadyToReceiveMagicBytes
- The RTR magic bytes to be used to signal a RTR.aReadyToReceiveRetryNumber
- The number of retries sending an RTR over the return channel.aReadyToReceiveTimeoutInMs
- The timeout in milliseconds to wait for a payload response (receiver) from the transmitter after signaling a RTR ("ready-to-send") to the transmitter.aReadyToReceiveSegmentPackager
- The RTRSegmentPackager
for packaging RTR responses.- Returns:
- The accordingly created
ReadyToReceiveSegmentDecorator
.
-
readyToReceiveSegment
public static <DECORATEE extends Segment> ReadyToReceiveSegmentDecorator<DECORATEE> readyToReceiveSegment(DECORATEE aDecoratee, byte aReadyToReceiveMagicBytes, int aReadyToReceiveRetryNumber, SegmentPackager aReadyToReceiveSegmentPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- The decoratee type describing the according subclass to be wrapped by the according decorator.- Parameters:
aDecoratee
- The decoratee to be wrapped by the flow-control decorator.aReadyToReceiveMagicBytes
- The RTR magic bytes to be used to signal a RTR.aReadyToReceiveRetryNumber
- The number of retries sending an RTR over the return channel.aReadyToReceiveSegmentPackager
- The RTRSegmentPackager
for packaging RTR responses.- Returns:
- The accordingly created
ReadyToReceiveSegmentDecorator
.
-
readyToReceiveSegment
public static <DECORATEE extends Segment> ReadyToReceiveSegmentDecorator<DECORATEE> readyToReceiveSegment(DECORATEE aDecoratee, byte aReadyToReceiveMagicBytes, long aReadyToReceiveTimeoutInMs) Constructs an according flow-control decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- The decoratee type describing the according subclass to be wrapped by the according decorator.- Parameters:
aDecoratee
- The decoratee to be wrapped by the flow-control decorator.aReadyToReceiveMagicBytes
- The RTR magic bytes to be used to signal a RTR.aReadyToReceiveTimeoutInMs
- The timeout in milliseconds to wait for a payload response (receiver) from the transmitter after signaling a RTR ("ready-to-send") to the transmitter.- Returns:
- The accordingly created
ReadyToReceiveSegmentDecorator
.
-
readyToReceiveSegment
public static <DECORATEE extends Segment> ReadyToReceiveSegmentDecorator<DECORATEE> readyToReceiveSegment(DECORATEE aDecoratee, byte aReadyToReceiveMagicBytes, long aReadyToReceiveTimeoutInMs, SegmentPackager aReadyToReceiveSegmentPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- The decoratee type describing the according subclass to be wrapped by the according decorator.- Parameters:
aDecoratee
- The decoratee to be wrapped by the flow-control decorator.aReadyToReceiveMagicBytes
- The RTR magic bytes to be used to signal a RTR.aReadyToReceiveTimeoutInMs
- The timeout in milliseconds to wait for a payload response (receiver) from the transmitter after signaling a RTR ("ready-to-send") to the transmitter.aReadyToReceiveSegmentPackager
- The RTRSegmentPackager
for packaging RTR responses.- Returns:
- The accordingly created
ReadyToReceiveSegmentDecorator
.
-
readyToReceiveSegment
public static <DECORATEE extends Segment> ReadyToReceiveSegmentDecorator<DECORATEE> readyToReceiveSegment(DECORATEE aDecoratee, byte aReadyToReceiveMagicBytes, SegmentPackager aReadyToReceiveSegmentPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- The decoratee type describing the according subclass to be wrapped by the according decorator.- Parameters:
aDecoratee
- The decoratee to be wrapped by the flow-control decorator.aReadyToReceiveMagicBytes
- The RTR magic bytes to be used to signal a RTR.aReadyToReceiveSegmentPackager
- The RTRSegmentPackager
for packaging RTR responses.- Returns:
- The accordingly created
ReadyToReceiveSegmentDecorator
.
-
readyToReceiveSegment
public static <DECORATEE extends Segment> ReadyToReceiveSegmentDecorator<DECORATEE> readyToReceiveSegment(DECORATEE aDecoratee, int aReadyToReceiveRetryNumber, long aReadyToReceiveTimeoutInMs) Constructs an according flow-control decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- The decoratee type describing the according subclass to be wrapped by the according decorator.- Parameters:
aDecoratee
- The decoratee to be wrapped by the flow-control decorator.aReadyToReceiveRetryNumber
- The number of retries sending an RTR over the return channel.aReadyToReceiveTimeoutInMs
- The timeout in milliseconds to wait for a payload response (receiver) from the transmitter after signaling a RTR ("ready-to-send") to the transmitter.- Returns:
- The accordingly created
ReadyToReceiveSegmentDecorator
.
-
readyToReceiveSegment
public static <DECORATEE extends Segment> ReadyToReceiveSegmentDecorator<DECORATEE> readyToReceiveSegment(DECORATEE aDecoratee, int aReadyToReceiveRetryNumber, long aReadyToReceiveTimeoutInMs, SegmentPackager aReadyToReceiveSegmentPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- The decoratee type describing the according subclass to be wrapped by the according decorator.- Parameters:
aDecoratee
- The decoratee to be wrapped by the flow-control decorator.aReadyToReceiveRetryNumber
- The number of retries sending an RTR over the return channel.aReadyToReceiveTimeoutInMs
- The timeout in milliseconds to wait for a payload response (receiver) from the transmitter after signaling a RTR ("ready-to-send") to the transmitter.aReadyToReceiveSegmentPackager
- The RTRSegmentPackager
for packaging RTR responses.- Returns:
- The accordingly created
ReadyToReceiveSegmentDecorator
.
-
readyToReceiveSegment
public static <DECORATEE extends Segment> ReadyToReceiveSegmentDecorator<DECORATEE> readyToReceiveSegment(DECORATEE aDecoratee, long aCtsTimeoutInMs) Constructs an according flow-control decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- The decoratee type describing the according subclass to be wrapped by the according decorator.- Parameters:
aDecoratee
- The decoratee to be wrapped by the flow-control decorator.aCtsTimeoutInMs
- The timeout in milliseconds to wait for an RTR request (transmitter) from the receiver.- Returns:
- The accordingly created
ReadyToReceiveSegmentDecorator
.
-
readyToReceiveSegment
public static <DECORATEE extends Segment> ReadyToReceiveSegmentDecorator<DECORATEE> readyToReceiveSegment(DECORATEE aDecoratee, long aCtsTimeoutInMs, byte aReadyToReceiveMagicBytes) Constructs an according flow-control decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- The decoratee type describing the according subclass to be wrapped by the according decorator.- Parameters:
aDecoratee
- The decoratee to be wrapped by the flow-control decorator.aCtsTimeoutInMs
- The timeout in milliseconds to wait for an RTR request (transmitter) from the receiver.aReadyToReceiveMagicBytes
- The RTR magic bytes to be used to signal a RTR.- Returns:
- The accordingly created
ReadyToReceiveSegmentDecorator
.
-
readyToReceiveSegment
public static <DECORATEE extends Segment> ReadyToReceiveSegmentDecorator<DECORATEE> readyToReceiveSegment(DECORATEE aDecoratee, long aCtsTimeoutInMs, byte aReadyToReceiveMagicBytes, int aReadyToReceiveRetryNumber) Constructs an according flow-control decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- The decoratee type describing the according subclass to be wrapped by the according decorator.- Parameters:
aDecoratee
- The decoratee to be wrapped by the flow-control decorator.aCtsTimeoutInMs
- The timeout in milliseconds to wait for an RTR request (transmitter) from the receiver.aReadyToReceiveMagicBytes
- The RTR magic bytes to be used to signal a RTR.aReadyToReceiveRetryNumber
- The number of retries sending an RTR over the return channel.- Returns:
- The accordingly created
ReadyToReceiveSegmentDecorator
.
-
readyToReceiveSegment
public static <DECORATEE extends Segment> ReadyToReceiveSegmentDecorator<DECORATEE> readyToReceiveSegment(DECORATEE aDecoratee, long aCtsTimeoutInMs, byte aReadyToReceiveMagicBytes, int aReadyToReceiveRetryNumber, SegmentPackager aReadyToReceiveSegmentPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- The decoratee type describing the according subclass to be wrapped by the according decorator.- Parameters:
aDecoratee
- The decoratee to be wrapped by the flow-control decorator.aCtsTimeoutInMs
- The timeout in milliseconds to wait for an RTR request (transmitter) from the receiver.aReadyToReceiveMagicBytes
- The RTR magic bytes to be used to signal a RTR.aReadyToReceiveRetryNumber
- The number of retries sending an RTR over the return channel.aReadyToReceiveSegmentPackager
- The RTRSegmentPackager
for packaging RTR responses.- Returns:
- The accordingly created
ReadyToReceiveSegmentDecorator
.
-
readyToReceiveSegment
public static <DECORATEE extends Segment> ReadyToReceiveSegmentDecorator<DECORATEE> readyToReceiveSegment(DECORATEE aDecoratee, long aCtsTimeoutInMs, byte aReadyToReceiveMagicBytes, long aReadyToReceiveTimeoutInMs) Constructs an according flow-control decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- The decoratee type describing the according subclass to be wrapped by the according decorator.- Parameters:
aDecoratee
- The decoratee to be wrapped by the flow-control decorator.aCtsTimeoutInMs
- The timeout in milliseconds to wait for an RTR request (transmitter) from the receiver.aReadyToReceiveMagicBytes
- The RTR magic bytes to be used to signal a RTR.aReadyToReceiveTimeoutInMs
- The timeout in milliseconds to wait for a payload response (receiver) from the transmitter after signaling a RTR ("ready-to-send") to the transmitter.- Returns:
- The accordingly created
ReadyToReceiveSegmentDecorator
.
-
readyToReceiveSegment
public static <DECORATEE extends Segment> ReadyToReceiveSegmentDecorator<DECORATEE> readyToReceiveSegment(DECORATEE aDecoratee, long aCtsTimeoutInMs, byte aReadyToReceiveMagicBytes, long aReadyToReceiveTimeoutInMs, SegmentPackager aReadyToReceiveSegmentPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- The decoratee type describing the according subclass to be wrapped by the according decorator.- Parameters:
aDecoratee
- The decoratee to be wrapped by the flow-control decorator.aCtsTimeoutInMs
- The timeout in milliseconds to wait for an RTR request (transmitter) from the receiver.aReadyToReceiveMagicBytes
- The RTR magic bytes to be used to signal a RTR.aReadyToReceiveTimeoutInMs
- The timeout in milliseconds to wait for a payload response (receiver) from the transmitter after signaling a RTR ("ready-to-send") to the transmitter.aReadyToReceiveSegmentPackager
- The RTRSegmentPackager
for packaging RTR responses.- Returns:
- The accordingly created
ReadyToReceiveSegmentDecorator
.
-
readyToReceiveSegment
public static <DECORATEE extends Segment> ReadyToReceiveSegmentDecorator<DECORATEE> readyToReceiveSegment(DECORATEE aDecoratee, long aCtsTimeoutInMs, byte aReadyToReceiveMagicBytes, SegmentPackager aReadyToReceiveSegmentPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- The decoratee type describing the according subclass to be wrapped by the according decorator.- Parameters:
aDecoratee
- The decoratee to be wrapped by the flow-control decorator.aCtsTimeoutInMs
- The timeout in milliseconds to wait for an RTR request (transmitter) from the receiver.aReadyToReceiveMagicBytes
- The RTR magic bytes to be used to signal a RTR.aReadyToReceiveSegmentPackager
- The RTRSegmentPackager
for packaging RTR responses.- Returns:
- The accordingly created
ReadyToReceiveSegmentDecorator
.
-
readyToReceiveSegment
public static <DECORATEE extends Segment> ReadyToReceiveSegmentDecorator<DECORATEE> readyToReceiveSegment(DECORATEE aDecoratee, long aCtsTimeoutInMs, byte[] aReadyToReceiveMagicBytes, int aReadyToReceiveRetryNumber, long aReadyToReceiveTimeoutInMs, SegmentPackager aReadyToReceiveSegmentPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- The decoratee type describing the according subclass to be wrapped by the according decorator.- Parameters:
aDecoratee
- The decoratee to be wrapped by the flow-control decorator.aCtsTimeoutInMs
- The timeout in milliseconds to wait for an RTR request (transmitter) from the receiver.aReadyToReceiveMagicBytes
- The RTR magic bytes to be used to signal a RTR.aReadyToReceiveRetryNumber
- The number of retries sending an RTR over the return channel.aReadyToReceiveTimeoutInMs
- The timeout in milliseconds to wait for a payload response (receiver) from the transmitter after signaling a RTR ("ready-to-send") to the transmitter.aReadyToReceiveSegmentPackager
- The RTRSegmentPackager
for packaging RTR responses.- Returns:
- The accordingly created
ReadyToReceiveSegmentDecorator
.
-
readyToReceiveSegment
public static <DECORATEE extends Segment> ReadyToReceiveSegmentDecorator<DECORATEE> readyToReceiveSegment(DECORATEE aDecoratee, long aCtsTimeoutInMs, int aReadyToReceiveRetryNumber, long aReadyToReceiveTimeoutInMs) Constructs an according flow-control decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- The decoratee type describing the according subclass to be wrapped by the according decorator.- Parameters:
aDecoratee
- The decoratee to be wrapped by the flow-control decorator.aCtsTimeoutInMs
- The timeout in milliseconds to wait for an RTR request (transmitter) from the receiver.aReadyToReceiveRetryNumber
- The number of retries sending an RTR over the return channel.aReadyToReceiveTimeoutInMs
- The timeout in milliseconds to wait for a payload response (receiver) from the transmitter after signaling a RTR ("ready-to-send") to the transmitter.- Returns:
- The accordingly created
ReadyToReceiveSegmentDecorator
.
-
readyToReceiveSegment
public static <DECORATEE extends Segment> ReadyToReceiveSegmentDecorator<DECORATEE> readyToReceiveSegment(DECORATEE aDecoratee, long aCtsTimeoutInMs, int aReadyToReceiveRetryNumber, long aReadyToReceiveTimeoutInMs, SegmentPackager aReadyToReceiveSegmentPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- The decoratee type describing the according subclass to be wrapped by the according decorator.- Parameters:
aDecoratee
- The decoratee to be wrapped by the flow-control decorator.aCtsTimeoutInMs
- The timeout in milliseconds to wait for an RTR request (transmitter) from the receiver.aReadyToReceiveRetryNumber
- The number of retries sending an RTR over the return channel.aReadyToReceiveTimeoutInMs
- The timeout in milliseconds to wait for a payload response (receiver) from the transmitter after signaling a RTR ("ready-to-send") to the transmitter.aReadyToReceiveSegmentPackager
- The RTRSegmentPackager
for packaging RTR responses.- Returns:
- The accordingly created
ReadyToReceiveSegmentDecorator
.
-
readyToReceiveSegment
public static <DECORATEE extends Segment> ReadyToReceiveSegmentDecorator<DECORATEE> readyToReceiveSegment(DECORATEE aDecoratee, long aCtsTimeoutInMs, long aReadyToReceiveTimeoutInMs) Constructs an according flow-control decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- The decoratee type describing the according subclass to be wrapped by the according decorator.- Parameters:
aDecoratee
- The decoratee to be wrapped by the flow-control decorator.aCtsTimeoutInMs
- The timeout in milliseconds to wait for an RTR request (transmitter) from the receiver.aReadyToReceiveTimeoutInMs
- The timeout in milliseconds to wait for a payload response (receiver) from the transmitter after signaling a RTR ("ready-to-send") to the transmitter.- Returns:
- The accordingly created
ReadyToReceiveSegmentDecorator
.
-
readyToReceiveSegment
public static <DECORATEE extends Segment> ReadyToReceiveSegmentDecorator<DECORATEE> readyToReceiveSegment(DECORATEE aDecoratee, long aCtsTimeoutInMs, long aReadyToReceiveTimeoutInMs, SegmentPackager aReadyToReceiveSegmentPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- The decoratee type describing the according subclass to be wrapped by the according decorator.- Parameters:
aDecoratee
- The decoratee to be wrapped by the flow-control decorator.aCtsTimeoutInMs
- The timeout in milliseconds to wait for an RTR request (transmitter) from the receiver.aReadyToReceiveTimeoutInMs
- The timeout in milliseconds to wait for a payload response (receiver) from the transmitter after signaling a RTR ("ready-to-send") to the transmitter.aReadyToReceiveSegmentPackager
- The RTRSegmentPackager
for packaging RTR responses.- Returns:
- The accordingly created
ReadyToReceiveSegmentDecorator
.
-
readyToReceiveSegment
public static <DECORATEE extends Segment> ReadyToReceiveSegmentDecorator<DECORATEE> readyToReceiveSegment(DECORATEE aDecoratee, long aReadyToReceiveTimeoutInMs, SegmentPackager aReadyToReceiveSegmentPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- The decoratee type describing the according subclass to be wrapped by the according decorator.- Parameters:
aDecoratee
- The decoratee to be wrapped by the flow-control decorator.aReadyToReceiveTimeoutInMs
- The timeout in milliseconds to wait for a payload response (receiver) from the transmitter after signaling a RTR ("ready-to-send") to the transmitter.aReadyToReceiveSegmentPackager
- The RTRSegmentPackager
for packaging RTR responses.- Returns:
- The accordingly created
ReadyToReceiveSegmentDecorator
.
-
readyToReceiveSegment
public static <DECORATEE extends Segment> ReadyToReceiveSegmentDecorator<DECORATEE> readyToReceiveSegment(DECORATEE aDecoratee, TransmissionMetrics aTransmissionMetrics) Constructs an according control-flow decorator instance wrapping the given decoratee. The configuration attributes are taken from theTransmissionMetrics
configuration object, though only those attributes are supported which are also supported by the other constructors!- Type Parameters:
DECORATEE
- The decoratee type describing the according subclass to be wrapped by the according decorator.- Parameters:
aDecoratee
- The decoratee to be wrapped by the control-flow decorator.aTransmissionMetrics
- TheTransmissionMetrics
to be used for configuring this instance.- Returns:
- The accordingly created
ReadyToReceiveSegmentDecorator
.
-
readyToSendSection
public static <DECORATEE extends Section> ReadyToSendSectionDecorator<DECORATEE> readyToSendSection(DECORATEE aDecoratee) Constructs an according flow-control decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- The decoratee type describing the according subclass to be enriched.- Parameters:
aDecoratee
- The decoratee to be wrapped by the flow-control decorator.- Returns:
- The accordingly created
ReadyToSendSectionDecorator
.
-
readyToSendSection
public static <DECORATEE extends Section> ReadyToSendSectionDecorator<DECORATEE> readyToSendSection(DECORATEE aDecoratee, byte[] aReadyToSendMagicBytes, byte[] aClearToSendMagicBytes) Constructs an according flow-control decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- The decoratee type describing the according subclass to be enriched.- Parameters:
aDecoratee
- The decoratee to be wrapped by the flow-control decorator.aReadyToSendMagicBytes
- The RTS characters to be used to signal a RTS.aClearToSendMagicBytes
- The CTS characters to be used to signal a CTS.- Returns:
- The accordingly created
ReadyToSendSectionDecorator
.
-
readyToSendSection
public static <DECORATEE extends Section> ReadyToSendSectionDecorator<DECORATEE> readyToSendSection(DECORATEE aDecoratee, byte[] aReadyToSendMagicBytes, int aReadyToSendRetryNumber, byte[] aClearToSendMagicBytes) Constructs an according flow-control decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- The decoratee type describing the according subclass to be enriched.- Parameters:
aDecoratee
- The decoratee to be wrapped by the flow-control decorator.aReadyToSendMagicBytes
- The RTS characters to be used to signal a RTS.aReadyToSendRetryNumber
- The number of retries sending an RTS over the payload (data) channel.aClearToSendMagicBytes
- The CTS characters to be used to signal a CTS.- Returns:
- The accordingly created
ReadyToSendSectionDecorator
.
-
readyToSendSection
public static <DECORATEE extends Section> ReadyToSendSectionDecorator<DECORATEE> readyToSendSection(DECORATEE aDecoratee, byte[] aReadyToSendMagicBytes, int aReadyToSendRetryNumber, long aReadyToSendTimeoutInMs, SegmentPackager aReadyToSendSectionPackager, byte[] aClearToSendMagicBytes, long aClearToSendTimeoutInMs, SegmentPackager aClearToSendSectionPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- The decoratee type describing the according subclass to be enriched.- Parameters:
aDecoratee
- The decoratee to be wrapped by the flow-control decorator.aReadyToSendMagicBytes
- The RTS characters to be used to signal a RTS.aReadyToSendRetryNumber
- The number of retries sending an RTS over the payload (data) channel.aReadyToSendTimeoutInMs
- The timeout in milliseconds to wait for a payload response (receiver) from the transmitter after signaling a RTS ("ready-to-receive") to the transmitter.aReadyToSendSectionPackager
- The RTSSegmentPackager
for packaging RTS responses.aClearToSendMagicBytes
- The CTS characters to be used to signal a CTS.aClearToSendTimeoutInMs
- The timeout in milliseconds to wait for a payload response (receiver) from the transmitter after signaling a CTS ("ready-to-receive") to the transmitter.aClearToSendSectionPackager
- The CTSSegmentPackager
for packaging CTS responses.- Returns:
- The accordingly created
ReadyToSendSectionDecorator
.
-
readyToSendSection
public static <DECORATEE extends Section> ReadyToSendSectionDecorator<DECORATEE> readyToSendSection(DECORATEE aDecoratee, byte[] aReadyToSendMagicBytes, int aReadyToSendRetryNumber, SegmentPackager aReadyToSendSectionPackager, byte[] aClearToSendMagicBytes, SegmentPackager aClearToSendSectionPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- The decoratee type describing the according subclass to be enriched.- Parameters:
aDecoratee
- The decoratee to be wrapped by the flow-control decorator.aReadyToSendMagicBytes
- The RTS characters to be used to signal a RTS.aReadyToSendRetryNumber
- The number of retries sending an RTS over the payload (data) channel.aReadyToSendSectionPackager
- The RTSSegmentPackager
for packaging RTS responses.aClearToSendMagicBytes
- The CTS characters to be used to signal a CTS.aClearToSendSectionPackager
- The CTSSegmentPackager
for packaging CTS responses.- Returns:
- The accordingly created
ReadyToSendSectionDecorator
.
-
readyToSendSection
public static <DECORATEE extends Section> ReadyToSendSectionDecorator<DECORATEE> readyToSendSection(DECORATEE aDecoratee, byte[] aReadyToSendMagicBytes, long aReadyToSendTimeoutInMs, byte[] aClearToSendMagicBytes, long aClearToSendTimeoutInMs) Constructs an according flow-control decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- The decoratee type describing the according subclass to be enriched.- Parameters:
aDecoratee
- The decoratee to be wrapped by the flow-control decorator.aReadyToSendMagicBytes
- The RTS characters to be used to signal a RTS.aReadyToSendTimeoutInMs
- The timeout in milliseconds to wait for a payload response (receiver) from the transmitter after signaling a RTS ("ready-to-receive") to the transmitter.aClearToSendMagicBytes
- The CTS characters to be used to signal a CTS.aClearToSendTimeoutInMs
- The timeout in milliseconds to wait for a payload response (receiver) from the transmitter after signaling a CTS ("ready-to-receive") to the transmitter.- Returns:
- The accordingly created
ReadyToSendSectionDecorator
.
-
readyToSendSection
public static <DECORATEE extends Section> ReadyToSendSectionDecorator<DECORATEE> readyToSendSection(DECORATEE aDecoratee, byte[] aReadyToSendMagicBytes, long aReadyToSendTimeoutInMs, SegmentPackager aReadyToSendSectionPackager, byte[] aClearToSendMagicBytes, long aClearToSendTimeoutInMs, SegmentPackager aClearToSendSectionPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- The decoratee type describing the according subclass to be enriched.- Parameters:
aDecoratee
- The decoratee to be wrapped by the flow-control decorator.aReadyToSendMagicBytes
- The RTS characters to be used to signal a RTS.aReadyToSendTimeoutInMs
- The timeout in milliseconds to wait for a payload response (receiver) from the transmitter after signaling a RTS ("ready-to-receive") to the transmitter.aReadyToSendSectionPackager
- The RTSSegmentPackager
for packaging RTS responses.aClearToSendMagicBytes
- The CTS characters to be used to signal a CTS.aClearToSendTimeoutInMs
- The timeout in milliseconds to wait for a payload response (receiver) from the transmitter after signaling a CTS ("ready-to-receive") to the transmitter.aClearToSendSectionPackager
- The CTSSegmentPackager
for packaging CTS responses.- Returns:
- The accordingly created
ReadyToSendSectionDecorator
.
-
readyToSendSection
public static <DECORATEE extends Section> ReadyToSendSectionDecorator<DECORATEE> readyToSendSection(DECORATEE aDecoratee, byte[] aReadyToSendMagicBytes, SegmentPackager aReadyToSendSectionPackager, byte[] aClearToSendMagicBytes, SegmentPackager aClearToSendSectionPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- The decoratee type describing the according subclass to be enriched.- Parameters:
aDecoratee
- The decoratee to be wrapped by the flow-control decorator.aReadyToSendMagicBytes
- The RTS characters to be used to signal a RTS.aReadyToSendSectionPackager
- The RTSSegmentPackager
for packaging RTS responses.aClearToSendMagicBytes
- The CTS characters to be used to signal a CTS.aClearToSendSectionPackager
- The CTSSegmentPackager
for packaging CTS responses.- Returns:
- The accordingly created
ReadyToSendSectionDecorator
.
-
readyToSendSection
public static <DECORATEE extends Section> ReadyToSendSectionDecorator<DECORATEE> readyToSendSection(DECORATEE aDecoratee, int aReadyToSendRetryNumber, long aReadyToSendTimeoutInMs, long aClearToSendTimeoutInMs) Constructs an according flow-control decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- The decoratee type describing the according subclass to be enriched.- Parameters:
aDecoratee
- The decoratee to be wrapped by the flow-control decorator.aReadyToSendRetryNumber
- The number of retries sending an RTS over the payload (data) channel.aReadyToSendTimeoutInMs
- The timeout in milliseconds to wait for a payload response (receiver) from the transmitter after signaling a RTS ("ready-to-receive") to the transmitter.aClearToSendTimeoutInMs
- The timeout in milliseconds to wait for a payload response (receiver) from the transmitter after signaling a CTS ("ready-to-receive") to the transmitter.- Returns:
- The accordingly created
ReadyToSendSectionDecorator
.
-
readyToSendSection
public static <DECORATEE extends Section> ReadyToSendSectionDecorator<DECORATEE> readyToSendSection(DECORATEE aDecoratee, int aReadyToSendRetryNumber, long aReadyToSendTimeoutInMs, SegmentPackager aReadyToSendSectionPackager, long aClearToSendTimeoutInMs, SegmentPackager aClearToSendSectionPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- The decoratee type describing the according subclass to be enriched.- Parameters:
aDecoratee
- The decoratee to be wrapped by the flow-control decorator.aReadyToSendRetryNumber
- The number of retries sending an RTS over the payload (data) channel.aReadyToSendTimeoutInMs
- The timeout in milliseconds to wait for a payload response (receiver) from the transmitter after signaling a RTS ("ready-to-receive") to the transmitter.aReadyToSendSectionPackager
- The RTSSegmentPackager
for packaging RTS responses.aClearToSendTimeoutInMs
- The timeout in milliseconds to wait for a payload response (receiver) from the transmitter after signaling a CTS ("ready-to-receive") to the transmitter.aClearToSendSectionPackager
- The CTSSegmentPackager
for packaging CTS responses.- Returns:
- The accordingly created
ReadyToSendSectionDecorator
.
-
readyToSendSection
public static <DECORATEE extends Section> ReadyToSendSectionDecorator<DECORATEE> readyToSendSection(DECORATEE aDecoratee, long aEnquiryStandbyTimeInMs) Constructs an according flow-control decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- The decoratee type describing the according subclass to be enriched.- Parameters:
aDecoratee
- The decoratee to be wrapped by the flow-control decorator.aEnquiryStandbyTimeInMs
- The timeout in milliseconds to wait for an RTS request (receiver) from the transmitter. A value of -1 denotes no timeout (blocking mode).- Returns:
- The accordingly created
ReadyToSendSectionDecorator
.
-
readyToSendSection
public static <DECORATEE extends Section> ReadyToSendSectionDecorator<DECORATEE> readyToSendSection(DECORATEE aDecoratee, long aEnquiryStandbyTimeInMs, byte[] aReadyToSendMagicBytes, byte[] aClearToSendMagicBytes) Constructs an according flow-control decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- The decoratee type describing the according subclass to be enriched.- Parameters:
aDecoratee
- The decoratee to be wrapped by the flow-control decorator.aEnquiryStandbyTimeInMs
- The timeout in milliseconds to wait for an RTS request (receiver) from the transmitter. A value of -1 denotes the timeout being disabled.aReadyToSendMagicBytes
- The RTS characters to be used to signal a RTS.aClearToSendMagicBytes
- The CTS characters to be used to signal a CTS.- Returns:
- The accordingly created
ReadyToSendSectionDecorator
.
-
readyToSendSection
public static <DECORATEE extends Section> ReadyToSendSectionDecorator<DECORATEE> readyToSendSection(DECORATEE aDecoratee, long aEnquiryStandbyTimeInMs, byte[] aReadyToSendMagicBytes, int aReadyToSendRetryNumber, byte[] aClearToSendMagicBytes) Constructs an according flow-control decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- The decoratee type describing the according subclass to be enriched.- Parameters:
aDecoratee
- The decoratee to be wrapped by the flow-control decorator.aEnquiryStandbyTimeInMs
- The timeout in milliseconds to wait for an RTS request (receiver) from the transmitter. A value of -1 denotes the timeout being disabled.aReadyToSendMagicBytes
- The RTS characters to be used to signal a RTS.aReadyToSendRetryNumber
- The number of retries sending an RTS over the payload (data) channel.aClearToSendMagicBytes
- The CTS characters to be used to signal a CTS.- Returns:
- The accordingly created
ReadyToSendSectionDecorator
.
-
readyToSendSection
public static <DECORATEE extends Section> ReadyToSendSectionDecorator<DECORATEE> readyToSendSection(DECORATEE aDecoratee, long aEnquiryStandbyTimeInMs, byte[] aReadyToSendMagicBytes, int aReadyToSendRetryNumber, long aReadyToSendTimeoutInMs, SegmentPackager aReadyToSendSectionPackager, byte[] aClearToSendMagicBytes, long aClearToSendTimeoutInMs, SegmentPackager aClearToSendSectionPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- The decoratee type describing the according subclass to be enriched.- Parameters:
aDecoratee
- The decoratee to be wrapped by the flow-control decorator.aEnquiryStandbyTimeInMs
- The timeout in milliseconds to wait for an RTS request (receiver) from the transmitter. A value of -1 denotes the timeout being disabled.aReadyToSendMagicBytes
- The RTS characters to be used to signal a RTS.aReadyToSendRetryNumber
- The number of retries sending an RTS over the payload (data) channel.aReadyToSendTimeoutInMs
- The timeout in milliseconds to wait for a CTS response (transmitter) from the receiver after signaling a RTS ("ready-to-send") to the receiver.aReadyToSendSectionPackager
- The RTSSegmentPackager
for packaging RTS responses.aClearToSendMagicBytes
- The CTS characters to be used to signal a CTS.aClearToSendTimeoutInMs
- The timeout in milliseconds to wait for a payload response (receiver) from the transmitter after signaling a CTS ("ready-to-receive") to the transmitter.aClearToSendSectionPackager
- The CTSSegmentPackager
for packaging CTS responses.- Returns:
- The accordingly created
ReadyToSendSectionDecorator
.
-
readyToSendSection
public static <DECORATEE extends Section> ReadyToSendSectionDecorator<DECORATEE> readyToSendSection(DECORATEE aDecoratee, long aEnquiryStandbyTimeInMs, byte[] aReadyToSendMagicBytes, int aReadyToSendRetryNumber, SegmentPackager aReadyToSendSectionPackager, byte[] aClearToSendMagicBytes, SegmentPackager aClearToSendSectionPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- The decoratee type describing the according subclass to be enriched.- Parameters:
aDecoratee
- The decoratee to be wrapped by the flow-control decorator.aEnquiryStandbyTimeInMs
- The timeout in milliseconds to wait for an RTS request (receiver) from the transmitter. A value of -1 denotes the timeout being disabled.aReadyToSendMagicBytes
- The RTS characters to be used to signal a RTS.aReadyToSendRetryNumber
- The number of retries sending an RTS over the payload (data) channel.aReadyToSendSectionPackager
- The RTSSegmentPackager
for packaging RTS responses.aClearToSendMagicBytes
- The CTS characters to be used to signal a CTS.aClearToSendSectionPackager
- The CTSSegmentPackager
for packaging CTS responses.- Returns:
- The accordingly created
ReadyToSendSectionDecorator
.
-
readyToSendSection
public static <DECORATEE extends Section> ReadyToSendSectionDecorator<DECORATEE> readyToSendSection(DECORATEE aDecoratee, long aEnquiryStandbyTimeInMs, byte[] aReadyToSendMagicBytes, long aReadyToSendTimeoutInMs, byte[] aClearToSendMagicBytes, long aClearToSendTimeoutInMs) Constructs an according flow-control decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- The decoratee type describing the according subclass to be enriched.- Parameters:
aDecoratee
- The decoratee to be wrapped by the flow-control decorator.aEnquiryStandbyTimeInMs
- The timeout in milliseconds to wait for an RTS request (receiver) from the transmitter. A value of -1 denotes the timeout being disabled.aReadyToSendMagicBytes
- The RTS characters to be used to signal a RTS.aReadyToSendTimeoutInMs
- The timeout in milliseconds to wait for a payload response (receiver) from the transmitter after signaling a RTS ("ready-to-receive") to the transmitter.aClearToSendMagicBytes
- The CTS characters to be used to signal a CTS.aClearToSendTimeoutInMs
- The timeout in milliseconds to wait for a payload response (receiver) from the transmitter after signaling a CTS ("ready-to-receive") to the transmitter.- Returns:
- The accordingly created
ReadyToSendSectionDecorator
.
-
readyToSendSection
public static <DECORATEE extends Section> ReadyToSendSectionDecorator<DECORATEE> readyToSendSection(DECORATEE aDecoratee, long aEnquiryStandbyTimeInMs, byte[] aReadyToSendMagicBytes, long aReadyToSendTimeoutInMs, SegmentPackager aReadyToSendSectionPackager, byte[] aClearToSendMagicBytes, long aClearToSendTimeoutInMs, SegmentPackager aClearToSendSectionPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- The decoratee type describing the according subclass to be enriched.- Parameters:
aDecoratee
- The decoratee to be wrapped by the flow-control decorator.aEnquiryStandbyTimeInMs
- The timeout in milliseconds to wait for an RTS request (receiver) from the transmitter. A value of -1 denotes the timeout being disabled.aReadyToSendMagicBytes
- The RTS characters to be used to signal a RTS.aReadyToSendTimeoutInMs
- The timeout in milliseconds to wait for a payload response (receiver) from the transmitter after signaling a RTS ("ready-to-receive") to the transmitter.aReadyToSendSectionPackager
- The RTSSegmentPackager
for packaging RTS responses.aClearToSendMagicBytes
- The CTS characters to be used to signal a CTS.aClearToSendTimeoutInMs
- The timeout in milliseconds to wait for a payload response (receiver) from the transmitter after signaling a CTS ("ready-to-receive") to the transmitter.aClearToSendSectionPackager
- The CTSSegmentPackager
for packaging CTS responses.- Returns:
- The accordingly created
ReadyToSendSectionDecorator
.
-
readyToSendSection
public static <DECORATEE extends Section> ReadyToSendSectionDecorator<DECORATEE> readyToSendSection(DECORATEE aDecoratee, long aEnquiryStandbyTimeInMs, byte[] aReadyToSendMagicBytes, SegmentPackager aReadyToSendSectionPackager, byte[] aClearToSendMagicBytes, SegmentPackager aClearToSendSectionPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- The decoratee type describing the according subclass to be enriched.- Parameters:
aDecoratee
- The decoratee to be wrapped by the flow-control decorator.aEnquiryStandbyTimeInMs
- The timeout in milliseconds to wait for an RTS request (receiver) from the transmitter. A value of -1 denotes the timeout being disabled.aReadyToSendMagicBytes
- The RTS characters to be used to signal a RTS.aReadyToSendSectionPackager
- The RTSSegmentPackager
for packaging RTS responses.aClearToSendMagicBytes
- The CTS characters to be used to signal a CTS.aClearToSendSectionPackager
- The CTSSegmentPackager
for packaging CTS responses.- Returns:
- The accordingly created
ReadyToSendSectionDecorator
.
-
readyToSendSection
public static <DECORATEE extends Section> ReadyToSendSectionDecorator<DECORATEE> readyToSendSection(DECORATEE aDecoratee, long aEnquiryStandbyTimeInMs, int aReadyToSendRetryNumber, long aReadyToSendTimeoutInMs, long aClearToSendTimeoutInMs) Constructs an according flow-control decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- The decoratee type describing the according subclass to be enriched.- Parameters:
aDecoratee
- The decoratee to be wrapped by the flow-control decorator.aEnquiryStandbyTimeInMs
- The timeout in milliseconds to wait for an RTS request (receiver) from the transmitter. A value of -1 denotes the timeout being disabled.aReadyToSendRetryNumber
- The number of retries sending an RTS over the payload (data) channel.aReadyToSendTimeoutInMs
- The timeout in milliseconds to wait for a payload response (receiver) from the transmitter after signaling a RTS ("ready-to-receive") to the transmitter.aClearToSendTimeoutInMs
- The timeout in milliseconds to wait for a payload response (receiver) from the transmitter after signaling a CTS ("ready-to-receive") to the transmitter.- Returns:
- The accordingly created
ReadyToSendSectionDecorator
.
-
readyToSendSection
public static <DECORATEE extends Section> ReadyToSendSectionDecorator<DECORATEE> readyToSendSection(DECORATEE aDecoratee, long aEnquiryStandbyTimeInMs, int aReadyToSendRetryNumber, long aReadyToSendTimeoutInMs, SegmentPackager aReadyToSendSectionPackager, long aClearToSendTimeoutInMs, SegmentPackager aClearToSendSectionPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- The decoratee type describing the according subclass to be enriched.- Parameters:
aDecoratee
- The decoratee to be wrapped by the flow-control decorator.aEnquiryStandbyTimeInMs
- The timeout in milliseconds to wait for an RTS request (receiver) from the transmitter. A value of -1 denotes the timeout being disabled.aReadyToSendRetryNumber
- The number of retries sending an RTS over the payload (data) channel.aReadyToSendTimeoutInMs
- The timeout in milliseconds to wait for a payload response (receiver) from the transmitter after signaling a RTS ("ready-to-receive") to the transmitter.aReadyToSendSectionPackager
- The RTSSegmentPackager
for packaging RTS responses.aClearToSendTimeoutInMs
- The timeout in milliseconds to wait for a payload response (receiver) from the transmitter after signaling a CTS ("ready-to-receive") to the transmitter.aClearToSendSectionPackager
- The CTSSegmentPackager
for packaging CTS responses.- Returns:
- The accordingly created
ReadyToSendSectionDecorator
.
-
readyToSendSection
public static <DECORATEE extends Section> ReadyToSendSectionDecorator<DECORATEE> readyToSendSection(DECORATEE aDecoratee, long aEnquiryStandbyTimeInMs, long aReadyToSendTimeoutInMs, long aClearToSendTimeoutInMs) Constructs an according flow-control decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- The decoratee type describing the according subclass to be enriched.- Parameters:
aDecoratee
- The decoratee to be wrapped by the flow-control decorator.aEnquiryStandbyTimeInMs
- The timeout in milliseconds to wait for an RTS request (receiver) from the transmitter. A value of -1 denotes the timeout being disabled.aReadyToSendTimeoutInMs
- The timeout in milliseconds to wait for a payload response (receiver) from the transmitter after signaling a RTS ("ready-to-receive") to the transmitter.aClearToSendTimeoutInMs
- The timeout in milliseconds to wait for a payload response (receiver) from the transmitter after signaling a CTS ("ready-to-receive") to the transmitter.- Returns:
- The accordingly created
ReadyToSendSectionDecorator
.
-
readyToSendSection
public static <DECORATEE extends Section> ReadyToSendSectionDecorator<DECORATEE> readyToSendSection(DECORATEE aDecoratee, long aEnquiryStandbyTimeInMs, long aReadyToSendTimeoutInMs, SegmentPackager aReadyToSendSectionPackager, long aClearToSendTimeoutInMs, SegmentPackager aClearToSendSectionPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- The decoratee type describing the according subclass to be enriched.- Parameters:
aDecoratee
- The decoratee to be wrapped by the flow-control decorator.aEnquiryStandbyTimeInMs
- The timeout in milliseconds to wait for an RTS request (receiver) from the transmitter. A value of -1 denotes the timeout being disabled.aReadyToSendTimeoutInMs
- The timeout in milliseconds to wait for a payload response (receiver) from the transmitter after signaling a RTS ("ready-to-receive") to the transmitter.aReadyToSendSectionPackager
- The RTSSegmentPackager
for packaging RTS responses.aClearToSendTimeoutInMs
- The timeout in milliseconds to wait for a payload response (receiver) from the transmitter after signaling a CTS ("ready-to-receive") to the transmitter.aClearToSendSectionPackager
- The CTSSegmentPackager
for packaging CTS responses.- Returns:
- The accordingly created
ReadyToSendSectionDecorator
.
-
readyToSendSection
public static <DECORATEE extends Section> ReadyToSendSectionDecorator<DECORATEE> readyToSendSection(DECORATEE aDecoratee, long aReadyToSendTimeoutInMs, SegmentPackager aReadyToSendSectionPackager, long aClearToSendTimeoutInMs, SegmentPackager aClearToSendSectionPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- The decoratee type describing the according subclass to be enriched.- Parameters:
aDecoratee
- The decoratee to be wrapped by the flow-control decorator.aReadyToSendTimeoutInMs
- The timeout in milliseconds to wait for a payload response (receiver) from the transmitter after signaling a RTS ("ready-to-receive") to the transmitter.aReadyToSendSectionPackager
- The RTSSegmentPackager
for packaging RTS responses.aClearToSendTimeoutInMs
- The timeout in milliseconds to wait for a payload response (receiver) from the transmitter after signaling a CTS ("ready-to-receive") to the transmitter.aClearToSendSectionPackager
- The CTSSegmentPackager
for packaging CTS responses.- Returns:
- The accordingly created
ReadyToSendSectionDecorator
.
-
readyToSendSection
public static <DECORATEE extends Section> ReadyToSendSectionDecorator<DECORATEE> readyToSendSection(DECORATEE aDecoratee, TransmissionMetrics aTransmissionMetrics) Constructs an according control-flow decorator instance wrapping the given decoratee. The configuration attributes are taken from theTransmissionMetrics
configuration object, though only those attributes are supported which are also supported by the other constructors!- Type Parameters:
DECORATEE
- The decoratee type describing the according subclass to be enriched.- Parameters:
aDecoratee
- The decoratee to be wrapped by the control-flow decorator.aTransmissionMetrics
- TheTransmissionMetrics
to be used for configuring this instance.- Returns:
- The accordingly created
ReadyToSendSectionDecorator
.
-
readyToSendSectionBuilder
public static <DECORATEE extends Section> ReadyToSendSectionDecorator.Builder<DECORATEE> readyToSendSectionBuilder()Constructs a builder to build an accordingReadyToSendSectionDecorator
instance.- Type Parameters:
DECORATEE
- The decoratee type describing the according subclass to be wrapped by the according decorator.- Returns:
- The accordingly created
ReadyToSendSectionDecorator.Builder
.
-
readyToSendSegment
public static <DECORATEE extends Segment> ReadyToSendSegmentDecorator<DECORATEE> readyToSendSegment(DECORATEE aDecoratee) Constructs an according flow-control decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- The decoratee type describing the according subclass to be enriched.- Parameters:
aDecoratee
- The decoratee to be wrapped by the flow-control decorator.- Returns:
- The accordingly created
ReadyToSendSegmentDecorator
.
-
readyToSendSegment
public static <DECORATEE extends Segment> ReadyToSendSegmentDecorator<DECORATEE> readyToSendSegment(DECORATEE aDecoratee, byte[] aReadyToSendMagicBytes, byte[] aClearToSendMagicBytes) Constructs an according flow-control decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- The decoratee type describing the according subclass to be enriched.- Parameters:
aDecoratee
- The decoratee to be wrapped by the flow-control decorator.aReadyToSendMagicBytes
- The RTS characters to be used to signal a RTS.aClearToSendMagicBytes
- The CTS characters to be used to signal a CTS.- Returns:
- The accordingly created
ReadyToSendSegmentDecorator
.
-
readyToSendSegment
public static <DECORATEE extends Segment> ReadyToSendSegmentDecorator<DECORATEE> readyToSendSegment(DECORATEE aDecoratee, byte[] aReadyToSendMagicBytes, int aReadyToSendRetryNumber, byte[] aClearToSendMagicBytes) Constructs an according flow-control decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- The decoratee type describing the according subclass to be enriched.- Parameters:
aDecoratee
- The decoratee to be wrapped by the flow-control decorator.aReadyToSendMagicBytes
- The RTS characters to be used to signal a RTS.aReadyToSendRetryNumber
- The number of retries sending an RTS over the payload (data) channel.aClearToSendMagicBytes
- The CTS characters to be used to signal a CTS.- Returns:
- The accordingly created
ReadyToSendSegmentDecorator
.
-
readyToSendSegment
public static <DECORATEE extends Segment> ReadyToSendSegmentDecorator<DECORATEE> readyToSendSegment(DECORATEE aDecoratee, byte[] aReadyToSendMagicBytes, int aReadyToSendRetryNumber, long aReadyToSendTimeoutInMs, SegmentPackager aReadyToSendSegmentPackager, byte[] aClearToSendMagicBytes, long aClearToSendTimeoutInMs, SegmentPackager aClearToSendSegmentPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- The decoratee type describing the according subclass to be enriched.- Parameters:
aDecoratee
- The decoratee to be wrapped by the flow-control decorator.aReadyToSendMagicBytes
- The RTS characters to be used to signal a RTS.aReadyToSendRetryNumber
- The number of retries sending an RTS over the payload (data) channel.aReadyToSendTimeoutInMs
- The timeout in milliseconds to wait for a payload response (receiver) from the transmitter after signaling a RTS ("ready-to-receive") to the transmitter.aReadyToSendSegmentPackager
- The RTSSegmentPackager
for packaging RTS responses.aClearToSendMagicBytes
- The CTS characters to be used to signal a CTS.aClearToSendTimeoutInMs
- The timeout in milliseconds to wait for a payload response (receiver) from the transmitter after signaling a CTS ("ready-to-receive") to the transmitter.aClearToSendSegmentPackager
- The CTSSegmentPackager
for packaging CTS responses.- Returns:
- The accordingly created
ReadyToSendSegmentDecorator
.
-
readyToSendSegment
public static <DECORATEE extends Segment> ReadyToSendSegmentDecorator<DECORATEE> readyToSendSegment(DECORATEE aDecoratee, byte[] aReadyToSendMagicBytes, int aReadyToSendRetryNumber, SegmentPackager aReadyToSendSegmentPackager, byte[] aClearToSendMagicBytes, SegmentPackager aClearToSendSegmentPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- The decoratee type describing the according subclass to be enriched.- Parameters:
aDecoratee
- The decoratee to be wrapped by the flow-control decorator.aReadyToSendMagicBytes
- The RTS characters to be used to signal a RTS.aReadyToSendRetryNumber
- The number of retries sending an RTS over the payload (data) channel.aReadyToSendSegmentPackager
- The RTSSegmentPackager
for packaging RTS responses.aClearToSendMagicBytes
- The CTS characters to be used to signal a CTS.aClearToSendSegmentPackager
- The CTSSegmentPackager
for packaging CTS responses.- Returns:
- The accordingly created
ReadyToSendSegmentDecorator
.
-
readyToSendSegment
public static <DECORATEE extends Segment> ReadyToSendSegmentDecorator<DECORATEE> readyToSendSegment(DECORATEE aDecoratee, byte[] aReadyToSendMagicBytes, long aReadyToSendTimeoutInMs, byte[] aClearToSendMagicBytes, long aClearToSendTimeoutInMs) Constructs an according flow-control decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- The decoratee type describing the according subclass to be enriched.- Parameters:
aDecoratee
- The decoratee to be wrapped by the flow-control decorator.aReadyToSendMagicBytes
- The RTS characters to be used to signal a RTS.aReadyToSendTimeoutInMs
- The timeout in milliseconds to wait for a payload response (receiver) from the transmitter after signaling a RTS ("ready-to-receive") to the transmitter.aClearToSendMagicBytes
- The CTS characters to be used to signal a CTS.aClearToSendTimeoutInMs
- The timeout in milliseconds to wait for a payload response (receiver) from the transmitter after signaling a CTS ("ready-to-receive") to the transmitter.- Returns:
- The accordingly created
ReadyToSendSegmentDecorator
.
-
readyToSendSegment
public static <DECORATEE extends Segment> ReadyToSendSegmentDecorator<DECORATEE> readyToSendSegment(DECORATEE aDecoratee, byte[] aReadyToSendMagicBytes, long aReadyToSendTimeoutInMs, SegmentPackager aReadyToSendSegmentPackager, byte[] aClearToSendMagicBytes, long aClearToSendTimeoutInMs, SegmentPackager aClearToSendSegmentPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- The decoratee type describing the according subclass to be enriched.- Parameters:
aDecoratee
- The decoratee to be wrapped by the flow-control decorator.aReadyToSendMagicBytes
- The RTS characters to be used to signal a RTS.aReadyToSendTimeoutInMs
- The timeout in milliseconds to wait for a payload response (receiver) from the transmitter after signaling a RTS ("ready-to-receive") to the transmitter.aReadyToSendSegmentPackager
- The RTSSegmentPackager
for packaging RTS responses.aClearToSendMagicBytes
- The CTS characters to be used to signal a CTS.aClearToSendTimeoutInMs
- The timeout in milliseconds to wait for a payload response (receiver) from the transmitter after signaling a CTS ("ready-to-receive") to the transmitter.aClearToSendSegmentPackager
- The CTSSegmentPackager
for packaging CTS responses.- Returns:
- The accordingly created
ReadyToSendSegmentDecorator
.
-
readyToSendSegment
public static <DECORATEE extends Segment> ReadyToSendSegmentDecorator<DECORATEE> readyToSendSegment(DECORATEE aDecoratee, byte[] aReadyToSendMagicBytes, SegmentPackager aReadyToSendSegmentPackager, byte[] aClearToSendMagicBytes, SegmentPackager aClearToSendSegmentPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- The decoratee type describing the according subclass to be enriched.- Parameters:
aDecoratee
- The decoratee to be wrapped by the flow-control decorator.aReadyToSendMagicBytes
- The RTS characters to be used to signal a RTS.aReadyToSendSegmentPackager
- The RTSSegmentPackager
for packaging RTS responses.aClearToSendMagicBytes
- The CTS characters to be used to signal a CTS.aClearToSendSegmentPackager
- The CTSSegmentPackager
for packaging CTS responses.- Returns:
- The accordingly created
ReadyToSendSegmentDecorator
.
-
readyToSendSegment
public static <DECORATEE extends Segment> ReadyToSendSegmentDecorator<DECORATEE> readyToSendSegment(DECORATEE aDecoratee, int aReadyToSendRetryNumber, long aReadyToSendTimeoutInMs, long aClearToSendTimeoutInMs) Constructs an according flow-control decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- The decoratee type describing the according subclass to be enriched.- Parameters:
aDecoratee
- The decoratee to be wrapped by the flow-control decorator.aReadyToSendRetryNumber
- The number of retries sending an RTS over the payload (data) channel.aReadyToSendTimeoutInMs
- The timeout in milliseconds to wait for a payload response (receiver) from the transmitter after signaling a RTS ("ready-to-receive") to the transmitter.aClearToSendTimeoutInMs
- The timeout in milliseconds to wait for a payload response (receiver) from the transmitter after signaling a CTS ("ready-to-receive") to the transmitter.- Returns:
- The accordingly created
ReadyToSendSegmentDecorator
.
-
readyToSendSegment
public static <DECORATEE extends Segment> ReadyToSendSegmentDecorator<DECORATEE> readyToSendSegment(DECORATEE aDecoratee, int aReadyToSendRetryNumber, long aReadyToSendTimeoutInMs, SegmentPackager aReadyToSendSegmentPackager, long aClearToSendTimeoutInMs, SegmentPackager aClearToSendSegmentPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- The decoratee type describing the according subclass to be enriched.- Parameters:
aDecoratee
- The decoratee to be wrapped by the flow-control decorator.aReadyToSendRetryNumber
- The number of retries sending an RTS over the payload (data) channel.aReadyToSendTimeoutInMs
- The timeout in milliseconds to wait for a payload response (receiver) from the transmitter after signaling a RTS ("ready-to-receive") to the transmitter.aReadyToSendSegmentPackager
- The RTSSegmentPackager
for packaging RTS responses.aClearToSendTimeoutInMs
- The timeout in milliseconds to wait for a payload response (receiver) from the transmitter after signaling a CTS ("ready-to-receive") to the transmitter.aClearToSendSegmentPackager
- The CTSSegmentPackager
for packaging CTS responses.- Returns:
- The accordingly created
ReadyToSendSegmentDecorator
.
-
readyToSendSegment
public static <DECORATEE extends Segment> ReadyToSendSegmentDecorator<DECORATEE> readyToSendSegment(DECORATEE aDecoratee, long aEnquiryStandbyTimeInMs) Constructs an according flow-control decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- The decoratee type describing the according subclass to be enriched.- Parameters:
aDecoratee
- The decoratee to be wrapped by the flow-control decorator.aEnquiryStandbyTimeInMs
- The timeout in milliseconds to wait for an RTS request (receiver) from the transmitter. A value of -1 denotes no timeout (blocking mode).- Returns:
- The accordingly created
ReadyToSendSegmentDecorator
.
-
readyToSendSegment
public static <DECORATEE extends Segment> ReadyToSendSegmentDecorator<DECORATEE> readyToSendSegment(DECORATEE aDecoratee, long aEnquiryStandbyTimeInMs, byte[] aReadyToSendMagicBytes, byte[] aClearToSendMagicBytes) Constructs an according flow-control decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- The decoratee type describing the according subclass to be enriched.- Parameters:
aDecoratee
- The decoratee to be wrapped by the flow-control decorator.aEnquiryStandbyTimeInMs
- The timeout in milliseconds to wait for an RTS request (receiver) from the transmitter. A value of -1 denotes the timeout being disabled.aReadyToSendMagicBytes
- The RTS characters to be used to signal a RTS.aClearToSendMagicBytes
- The CTS characters to be used to signal a CTS.- Returns:
- The accordingly created
ReadyToSendSegmentDecorator
.
-
readyToSendSegment
public static <DECORATEE extends Segment> ReadyToSendSegmentDecorator<DECORATEE> readyToSendSegment(DECORATEE aDecoratee, long aEnquiryStandbyTimeInMs, byte[] aReadyToSendMagicBytes, int aReadyToSendRetryNumber, byte[] aClearToSendMagicBytes) Constructs an according flow-control decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- The decoratee type describing the according subclass to be enriched.- Parameters:
aDecoratee
- The decoratee to be wrapped by the flow-control decorator.aEnquiryStandbyTimeInMs
- The timeout in milliseconds to wait for an RTS request (receiver) from the transmitter. A value of -1 denotes the timeout being disabled.aReadyToSendMagicBytes
- The RTS characters to be used to signal a RTS.aReadyToSendRetryNumber
- The number of retries sending an RTS over the payload (data) channel.aClearToSendMagicBytes
- The CTS characters to be used to signal a CTS.- Returns:
- The accordingly created
ReadyToSendSegmentDecorator
.
-
readyToSendSegment
public static <DECORATEE extends Segment> ReadyToSendSegmentDecorator<DECORATEE> readyToSendSegment(DECORATEE aDecoratee, long aEnquiryStandbyTimeInMs, byte[] aReadyToSendMagicBytes, int aReadyToSendRetryNumber, long aReadyToSendTimeoutInMs, SegmentPackager aReadyToSendSegmentPackager, byte[] aClearToSendMagicBytes, long aClearToSendTimeoutInMs, SegmentPackager aClearToSendSegmentPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- The decoratee type describing the according subclass to be enriched.- Parameters:
aDecoratee
- The decoratee to be wrapped by the flow-control decorator.aEnquiryStandbyTimeInMs
- The timeout in milliseconds to wait for an RTS request (receiver) from the transmitter. A value of -1 denotes the timeout being disabled.aReadyToSendMagicBytes
- The RTS characters to be used to signal a RTS.aReadyToSendRetryNumber
- The number of retries sending an RTS over the payload (data) channel.aReadyToSendTimeoutInMs
- The timeout in milliseconds to wait for a CTS response (transmitter) from the receiver after signaling a RTS ("ready-to-send") to the receiver.aReadyToSendSegmentPackager
- The RTSSegmentPackager
for packaging RTS responses.aClearToSendMagicBytes
- The CTS characters to be used to signal a CTS.aClearToSendTimeoutInMs
- The timeout in milliseconds to wait for a payload response (receiver) from the transmitter after signaling a CTS ("ready-to-receive") to the transmitter.aClearToSendSegmentPackager
- The CTSSegmentPackager
for packaging CTS responses.- Returns:
- The accordingly created
ReadyToSendSegmentDecorator
.
-
readyToSendSegment
public static <DECORATEE extends Segment> ReadyToSendSegmentDecorator<DECORATEE> readyToSendSegment(DECORATEE aDecoratee, long aEnquiryStandbyTimeInMs, byte[] aReadyToSendMagicBytes, int aReadyToSendRetryNumber, SegmentPackager aReadyToSendSegmentPackager, byte[] aClearToSendMagicBytes, SegmentPackager aClearToSendSegmentPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- The decoratee type describing the according subclass to be enriched.- Parameters:
aDecoratee
- The decoratee to be wrapped by the flow-control decorator.aEnquiryStandbyTimeInMs
- The timeout in milliseconds to wait for an RTS request (receiver) from the transmitter. A value of -1 denotes the timeout being disabled.aReadyToSendMagicBytes
- The RTS characters to be used to signal a RTS.aReadyToSendRetryNumber
- The number of retries sending an RTS over the payload (data) channel.aReadyToSendSegmentPackager
- The RTSSegmentPackager
for packaging RTS responses.aClearToSendMagicBytes
- The CTS characters to be used to signal a CTS.aClearToSendSegmentPackager
- The CTSSegmentPackager
for packaging CTS responses.- Returns:
- The accordingly created
ReadyToSendSegmentDecorator
.
-
readyToSendSegment
public static <DECORATEE extends Segment> ReadyToSendSegmentDecorator<DECORATEE> readyToSendSegment(DECORATEE aDecoratee, long aEnquiryStandbyTimeInMs, byte[] aReadyToSendMagicBytes, long aReadyToSendTimeoutInMs, byte[] aClearToSendMagicBytes, long aClearToSendTimeoutInMs) Constructs an according flow-control decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- The decoratee type describing the according subclass to be enriched.- Parameters:
aDecoratee
- The decoratee to be wrapped by the flow-control decorator.aEnquiryStandbyTimeInMs
- The timeout in milliseconds to wait for an RTS request (receiver) from the transmitter. A value of -1 denotes the timeout being disabled.aReadyToSendMagicBytes
- The RTS characters to be used to signal a RTS.aReadyToSendTimeoutInMs
- The timeout in milliseconds to wait for a payload response (receiver) from the transmitter after signaling a RTS ("ready-to-receive") to the transmitter.aClearToSendMagicBytes
- The CTS characters to be used to signal a CTS.aClearToSendTimeoutInMs
- The timeout in milliseconds to wait for a payload response (receiver) from the transmitter after signaling a CTS ("ready-to-receive") to the transmitter.- Returns:
- The accordingly created
ReadyToSendSegmentDecorator
.
-
readyToSendSegment
public static <DECORATEE extends Segment> ReadyToSendSegmentDecorator<DECORATEE> readyToSendSegment(DECORATEE aDecoratee, long aEnquiryStandbyTimeInMs, byte[] aReadyToSendMagicBytes, long aReadyToSendTimeoutInMs, SegmentPackager aReadyToSendSegmentPackager, byte[] aClearToSendMagicBytes, long aClearToSendTimeoutInMs, SegmentPackager aClearToSendSegmentPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- The decoratee type describing the according subclass to be enriched.- Parameters:
aDecoratee
- The decoratee to be wrapped by the flow-control decorator.aEnquiryStandbyTimeInMs
- The timeout in milliseconds to wait for an RTS request (receiver) from the transmitter. A value of -1 denotes the timeout being disabled.aReadyToSendMagicBytes
- The RTS characters to be used to signal a RTS.aReadyToSendTimeoutInMs
- The timeout in milliseconds to wait for a payload response (receiver) from the transmitter after signaling a RTS ("ready-to-receive") to the transmitter.aReadyToSendSegmentPackager
- The RTSSegmentPackager
for packaging RTS responses.aClearToSendMagicBytes
- The CTS characters to be used to signal a CTS.aClearToSendTimeoutInMs
- The timeout in milliseconds to wait for a payload response (receiver) from the transmitter after signaling a CTS ("ready-to-receive") to the transmitter.aClearToSendSegmentPackager
- The CTSSegmentPackager
for packaging CTS responses.- Returns:
- The accordingly created
ReadyToSendSegmentDecorator
.
-
readyToSendSegment
public static <DECORATEE extends Segment> ReadyToSendSegmentDecorator<DECORATEE> readyToSendSegment(DECORATEE aDecoratee, long aEnquiryStandbyTimeInMs, byte[] aReadyToSendMagicBytes, SegmentPackager aReadyToSendSegmentPackager, byte[] aClearToSendMagicBytes, SegmentPackager aClearToSendSegmentPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- The decoratee type describing the according subclass to be enriched.- Parameters:
aDecoratee
- The decoratee to be wrapped by the flow-control decorator.aEnquiryStandbyTimeInMs
- The timeout in milliseconds to wait for an RTS request (receiver) from the transmitter. A value of -1 denotes the timeout being disabled.aReadyToSendMagicBytes
- The RTS characters to be used to signal a RTS.aReadyToSendSegmentPackager
- The RTSSegmentPackager
for packaging RTS responses.aClearToSendMagicBytes
- The CTS characters to be used to signal a CTS.aClearToSendSegmentPackager
- The CTSSegmentPackager
for packaging CTS responses.- Returns:
- The accordingly created
ReadyToSendSegmentDecorator
.
-
readyToSendSegment
public static <DECORATEE extends Segment> ReadyToSendSegmentDecorator<DECORATEE> readyToSendSegment(DECORATEE aDecoratee, long aEnquiryStandbyTimeInMs, int aReadyToSendRetryNumber, long aReadyToSendTimeoutInMs, long aClearToSendTimeoutInMs) Constructs an according flow-control decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- The decoratee type describing the according subclass to be enriched.- Parameters:
aDecoratee
- The decoratee to be wrapped by the flow-control decorator.aEnquiryStandbyTimeInMs
- The timeout in milliseconds to wait for an RTS request (receiver) from the transmitter. A value of -1 denotes the timeout being disabled.aReadyToSendRetryNumber
- The number of retries sending an RTS over the payload (data) channel.aReadyToSendTimeoutInMs
- The timeout in milliseconds to wait for a payload response (receiver) from the transmitter after signaling a RTS ("ready-to-receive") to the transmitter.aClearToSendTimeoutInMs
- The timeout in milliseconds to wait for a payload response (receiver) from the transmitter after signaling a CTS ("ready-to-receive") to the transmitter.- Returns:
- The accordingly created
ReadyToSendSegmentDecorator
.
-
readyToSendSegment
public static <DECORATEE extends Segment> ReadyToSendSegmentDecorator<DECORATEE> readyToSendSegment(DECORATEE aDecoratee, long aEnquiryStandbyTimeInMs, int aReadyToSendRetryNumber, long aReadyToSendTimeoutInMs, SegmentPackager aReadyToSendSegmentPackager, long aClearToSendTimeoutInMs, SegmentPackager aClearToSendSegmentPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- The decoratee type describing the according subclass to be enriched.- Parameters:
aDecoratee
- The decoratee to be wrapped by the flow-control decorator.aEnquiryStandbyTimeInMs
- The timeout in milliseconds to wait for an RTS request (receiver) from the transmitter. A value of -1 denotes the timeout being disabled.aReadyToSendRetryNumber
- The number of retries sending an RTS over the payload (data) channel.aReadyToSendTimeoutInMs
- The timeout in milliseconds to wait for a payload response (receiver) from the transmitter after signaling a RTS ("ready-to-receive") to the transmitter.aReadyToSendSegmentPackager
- The RTSSegmentPackager
for packaging RTS responses.aClearToSendTimeoutInMs
- The timeout in milliseconds to wait for a payload response (receiver) from the transmitter after signaling a CTS ("ready-to-receive") to the transmitter.aClearToSendSegmentPackager
- The CTSSegmentPackager
for packaging CTS responses.- Returns:
- The accordingly created
ReadyToSendSegmentDecorator
.
-
readyToSendSegment
public static <DECORATEE extends Segment> ReadyToSendSegmentDecorator<DECORATEE> readyToSendSegment(DECORATEE aDecoratee, long aEnquiryStandbyTimeInMs, long aReadyToSendTimeoutInMs, long aClearToSendTimeoutInMs) Constructs an according flow-control decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- The decoratee type describing the according subclass to be enriched.- Parameters:
aDecoratee
- The decoratee to be wrapped by the flow-control decorator.aEnquiryStandbyTimeInMs
- The timeout in milliseconds to wait for an RTS request (receiver) from the transmitter. A value of -1 denotes the timeout being disabled.aReadyToSendTimeoutInMs
- The timeout in milliseconds to wait for a payload response (receiver) from the transmitter after signaling a RTS ("ready-to-receive") to the transmitter.aClearToSendTimeoutInMs
- The timeout in milliseconds to wait for a payload response (receiver) from the transmitter after signaling a CTS ("ready-to-receive") to the transmitter.- Returns:
- The accordingly created
ReadyToSendSegmentDecorator
.
-
readyToSendSegment
public static <DECORATEE extends Segment> ReadyToSendSegmentDecorator<DECORATEE> readyToSendSegment(DECORATEE aDecoratee, long aEnquiryStandbyTimeInMs, long aReadyToSendTimeoutInMs, SegmentPackager aReadyToSendSegmentPackager, long aClearToSendTimeoutInMs, SegmentPackager aClearToSendSegmentPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- The decoratee type describing the according subclass to be enriched.- Parameters:
aDecoratee
- The decoratee to be wrapped by the flow-control decorator.aEnquiryStandbyTimeInMs
- The timeout in milliseconds to wait for an RTS request (receiver) from the transmitter. A value of -1 denotes the timeout being disabled.aReadyToSendTimeoutInMs
- The timeout in milliseconds to wait for a payload response (receiver) from the transmitter after signaling a RTS ("ready-to-receive") to the transmitter.aReadyToSendSegmentPackager
- The RTSSegmentPackager
for packaging RTS responses.aClearToSendTimeoutInMs
- The timeout in milliseconds to wait for a payload response (receiver) from the transmitter after signaling a CTS ("ready-to-receive") to the transmitter.aClearToSendSegmentPackager
- The CTSSegmentPackager
for packaging CTS responses.- Returns:
- The accordingly created
ReadyToSendSegmentDecorator
.
-
readyToSendSegment
public static <DECORATEE extends Segment> ReadyToSendSegmentDecorator<DECORATEE> readyToSendSegment(DECORATEE aDecoratee, long aReadyToSendTimeoutInMs, SegmentPackager aReadyToSendSegmentPackager, long aClearToSendTimeoutInMs, SegmentPackager aClearToSendSegmentPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- The decoratee type describing the according subclass to be enriched.- Parameters:
aDecoratee
- The decoratee to be wrapped by the flow-control decorator.aReadyToSendTimeoutInMs
- The timeout in milliseconds to wait for a payload response (receiver) from the transmitter after signaling a RTS ("ready-to-receive") to the transmitter.aReadyToSendSegmentPackager
- The RTSSegmentPackager
for packaging RTS responses.aClearToSendTimeoutInMs
- The timeout in milliseconds to wait for a payload response (receiver) from the transmitter after signaling a CTS ("ready-to-receive") to the transmitter.aClearToSendSegmentPackager
- The CTSSegmentPackager
for packaging CTS responses.- Returns:
- The accordingly created
ReadyToSendSegmentDecorator
.
-
readyToSendSegment
public static <DECORATEE extends Segment> ReadyToSendSegmentDecorator<DECORATEE> readyToSendSegment(DECORATEE aDecoratee, TransmissionMetrics aTransmissionMetrics) Constructs an according control-flow decorator instance wrapping the given decoratee. The configuration attributes are taken from theTransmissionMetrics
configuration object, though only those attributes are supported which are also supported by the other constructors!- Type Parameters:
DECORATEE
- The decoratee type describing the according subclass to be enriched.- Parameters:
aDecoratee
- The decoratee to be wrapped by the control-flow decorator.aTransmissionMetrics
- TheTransmissionMetrics
to be used for configuring this instance.- Returns:
- The accordingly created
ReadyToSendSegmentDecorator
.
-
readyToSendSegmentBuilder
public static <DECORATEE extends Segment> ReadyToSendSegmentDecorator.Builder<DECORATEE> readyToSendSegmentBuilder()Constructs a builder to build an accordingReadyToSendSegmentDecorator
instance.- Type Parameters:
DECORATEE
- The decoratee type describing the according subclass to be wrapped by the according decorator.- Returns:
- The accordingly created
ReadyToSendSegmentDecorator.Builder
.
-
segmentComposite
@SafeVarargs public static <CHILD extends Segment> SegmentComposite<CHILD> segmentComposite(CHILD... aChildren) Constructs aSegmentComposite
containing the providedSegment
elements.- Type Parameters:
CHILD
- TheSegment
type describing the composite'sSegment
children.- Parameters:
aChildren
- TheSegment
elements being contained in this instance.- Returns:
- The accordingly created
SegmentComposite
.
-
segmentComposite
public static <CHILD extends Segment> SegmentComposite<CHILD> segmentComposite(Collection<CHILD> aChildren) Constructs aSegmentComposite
containing the providedSegment
elements.- Type Parameters:
CHILD
- TheSegment
type describing the composite'sSegment
children.- Parameters:
aChildren
- TheSegment
elements being contained in this instance.- Returns:
- The accordingly created
SegmentComposite
.
-
segmentLength
Constructs an empty allocation value with a width ofTransmissionMetrics.DEFAULT_LENGTH_WIDTH
bytes used to specify the referencee's length and aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of the referencee's length.- Type Parameters:
REFERENCEE
- The type of theSegment
referencee.- Returns:
- The accordingly created
LengthSegment
.
-
segmentLength
public static <REFERENCEE extends Transmission> LengthSegment<REFERENCEE> segmentLength(org.refcodes.numerical.Endianess aEndianess) Constructs an empty allocation value with a width ofTransmissionMetrics.DEFAULT_LENGTH_WIDTH
bytes used to specify the referencee's length and the providedEndianess
representation of the referencee's length.- Type Parameters:
REFERENCEE
- The type of theSegment
referencee.- Parameters:
aEndianess
- TheEndianess
to be used for length values.- Returns:
- The accordingly created
LengthSegment
.
-
segmentLength
public static <REFERENCEE extends Transmission> LengthSegment<REFERENCEE> segmentLength(int aLengthWidth) Constructs an empty allocation value with the given number of bytes used to specify the referencee's length and aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of the referencee's length.- Type Parameters:
REFERENCEE
- The type of theSegment
referencee.- Parameters:
aLengthWidth
- The width (in bytes) to be used for length values.- Returns:
- The accordingly created
LengthSegment
.
-
segmentLength
public static <REFERENCEE extends Transmission> LengthSegment<REFERENCEE> segmentLength(int aLengthWidth, org.refcodes.numerical.Endianess aEndianess) Constructs an empty allocation value with the given number of bytes used to specify the referencee's length and the providedEndianess
representation of the referencee's length.- Type Parameters:
REFERENCEE
- The type of theSegment
referencee.- Parameters:
aLengthWidth
- The width (in bytes) to be used for length values.aEndianess
- TheEndianess
to be used for length values.- Returns:
- The accordingly created
LengthSegment
.
-
segmentLength
public static <REFERENCEE extends Transmission> LengthSegment<REFERENCEE> segmentLength(REFERENCEE aReferencee) Constructs the allocation value with the given referencee and a width ofTransmissionMetrics.DEFAULT_LENGTH_WIDTH
bytes used to specify the referencee's length aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of the referencee's length.- Type Parameters:
REFERENCEE
- The type of theSegment
referencee.- Parameters:
aReferencee
- The referencee used for this allocation value.- Returns:
- The accordingly created
LengthSegment
.
-
segmentLength
public static <REFERENCEE extends Transmission> LengthSegment<REFERENCEE> segmentLength(REFERENCEE aReferencee, org.refcodes.numerical.Endianess aEndianess) Constructs the allocation value with the given referencee and a width ofTransmissionMetrics.DEFAULT_LENGTH_WIDTH
bytes used to specify the referencee's length and the providedEndianess
representation of the referencee's length.- Type Parameters:
REFERENCEE
- The type of theSegment
referencee.- Parameters:
aReferencee
- The referencee used for this allocation value.aEndianess
- TheEndianess
to be used for length values.- Returns:
- The accordingly created
LengthSegment
.
-
segmentLength
public static <REFERENCEE extends Transmission> LengthSegment<REFERENCEE> segmentLength(REFERENCEE aReferencee, int aLengthWidth) Constructs the allocation value with the given referencee and with the given number of bytes used to specify the referencee's length and aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of the referencee's length.- Type Parameters:
REFERENCEE
- The type of theSegment
referencee.- Parameters:
aReferencee
- The referencee used for this allocation value.aLengthWidth
- The width (in bytes) to be used for length values.- Returns:
- The accordingly created
LengthSegment
.
-
segmentLength
public static <REFERENCEE extends Transmission> LengthSegment<REFERENCEE> segmentLength(REFERENCEE aReferencee, int aLengthWidth, org.refcodes.numerical.Endianess aEndianess) Constructs the allocation value with the given referencee and with the given number of bytes used to specify the referencee's length and the providedEndianess
representation of the referencee's length.- Type Parameters:
REFERENCEE
- The type of theSegment
referencee.- Parameters:
aReferencee
- The referencee used for this allocation value.aLengthWidth
- The width (in bytes) to be used for length values.aEndianess
- TheEndianess
to be used for length values.- Returns:
- The accordingly created
LengthSegment
.
-
segmentLength
public static <REFERENCEE extends Transmission> LengthSegment<REFERENCEE> segmentLength(REFERENCEE aReferencee, TransmissionMetrics aTransmissionMetrics) Constructs an according instance. The configuration attributes are taken from theTransmissionMetrics
configuration object, though only those attributes are supported which are also supported by the other constructors!- Type Parameters:
REFERENCEE
- The type of theSegment
referencee.- Parameters:
aReferencee
- The referencee used for this allocation value.aTransmissionMetrics
- TheTransmissionMetrics
to be used for configuring this instance.- Returns:
- The accordingly created
LengthSegment
.
-
segmentLength
public static <REFERENCEE extends Transmission> LengthSegment<REFERENCEE> segmentLength(TransmissionMetrics aTransmissionMetrics) Constructs an according instance. The configuration attributes are taken from theTransmissionMetrics
configuration object, though only those attributes are supported which are also supported by the other constructors!- Type Parameters:
REFERENCEE
- The type of theSegment
referencee.- Parameters:
aTransmissionMetrics
- TheTransmissionMetrics
to be used for configuring this instance.- Returns:
- The accordingly created
LengthSegment
.
-
sequenceNumberSegment
public static SequenceNumberSegment 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.- Returns:
- The accordingly created
SequenceNumberSegment
.
-
sequenceNumberSegment
public static SequenceNumberSegment 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.- Returns:
- The accordingly created
SequenceNumberSegment
.
-
sequenceNumberSegment
public static SequenceNumberSegment sequenceNumberSegment(long aValue, TransmissionMetrics aTransmissionMetrics) Constructs an emptySequenceNumberSegment
with aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theSequenceNumberSegment
's value.- Parameters:
aValue
- The payload to be contained by theSequenceNumberSegment
.aTransmissionMetrics
- TheTransmissionMetrics
used to configure theSequenceNumberSegment
.- Returns:
- The accordingly created
SequenceNumberSegment
.
-
sequenceNumberSegment
public static SequenceNumberSegment 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.- Returns:
- The accordingly created
SequenceNumberSegment
.
-
sequenceNumberSegment
public static SequenceNumberSegment 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.- Returns:
- The accordingly created
SequenceNumberSegment
.
-
sequenceNumberSegment
public static SequenceNumberSegment sequenceNumberSegment(String aAlias, long aValue, TransmissionMetrics aTransmissionMetrics) Constructs an emptySequenceNumberSegment
with aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theSequenceNumberSegment
's value.- Parameters:
aAlias
- The alias which identifies the content of this segment.aValue
- The payload to be contained by theSequenceNumberSegment
.aTransmissionMetrics
- TheTransmissionMetrics
used to configure theSequenceNumberSegment
.- Returns:
- The accordingly created
SequenceNumberSegment
.
-
sequenceNumberSegment
public static SequenceNumberSegment sequenceNumberSegment(String aAlias, TransmissionMetrics aTransmissionMetrics) Constructs an emptySequenceNumberSegment
with aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theSequenceNumberSegment
's value.- Parameters:
aAlias
- The alias which identifies the content of this segment.aTransmissionMetrics
- TheTransmissionMetrics
used to configure theSequenceNumberSegment
.- Returns:
- The accordingly created
SequenceNumberSegment
.
-
sequenceNumberSegment
Constructs an emptySequenceNumberSegment
with aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theSequenceNumberSegment
's value.- Parameters:
aTransmissionMetrics
- TheTransmissionMetrics
used to configure theSequenceNumberSegment
.- Returns:
- The accordingly created
SequenceNumberSegment
.
-
sequenceSection
Constructs aSequenceSection
.- Returns:
- The accordingly created
SequenceSection
.
-
sequenceSection
Constructs aSequenceSection
.- Parameters:
aSequenceSize
- The size of theSequence
.- Returns:
- The accordingly created
SequenceSection
.
-
sequenceSection
Constructs aSequenceSection
.- Parameters:
aSequence
- TheSequence
representing thisSequenceSection
.- Returns:
- The accordingly created
SequenceSection
.
-
sequenceSection
Constructs aSequenceSection
.- Parameters:
aAlias
- The alias which identifies the content of thisSection
.- Returns:
- The accordingly created
SequenceSection
.
-
sequenceSection
Constructs aSequenceSection
.- Parameters:
aAlias
- The alias which identifies the content of thisSegment
.aSequenceSize
- The size of theSequence
.- Returns:
- The accordingly created
SequenceSection
.
-
sequenceSection
Constructs aSequenceSection
.- Parameters:
aAlias
- The alias which identifies the content of thisSegment
.aSequence
- TheSequence
representing thisSequenceSection
.- Returns:
- The accordingly created
SequenceSection
.
-
shortArraySection
Constructs an emptyShortArraySection
with aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theSection
's value.- Returns:
- The accordingly created
ShortArraySection
.
-
shortArraySection
Constructs an emptyShortArraySection
with the givenEndianess
.- Parameters:
aEndianess
- TheEndianess
to be used for payload values.- Returns:
- The accordingly created
ShortArraySection
.
-
shortArraySection
public static ShortArraySection shortArraySection(org.refcodes.numerical.Endianess aEndianess, short... aValue) Constructs aShortArraySection
with the given short array payload and the givenEndianess
for the representation of theShortArraySection
's value.- Parameters:
aEndianess
- TheEndianess
to be used for payload values.aValue
- The payload to be contained by theShortArraySection
.- Returns:
- The accordingly created
ShortArraySection
.
-
shortArraySection
public static ShortArraySection shortArraySection(org.refcodes.numerical.Endianess aEndianess, Short... aValue) Constructs aShortArraySection
with the given short array payload and the givenEndianess
for the representation of theShortArraySection
's value.- Parameters:
aEndianess
- TheEndianess
to be used for payload values.aValue
- The payload to be contained by theShortArraySection
.- Returns:
- The accordingly created
ShortArraySection
.
-
shortArraySection
Constructs aShortArraySection
with the given short array payload and aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theShortArraySection
's value.- Parameters:
aValue
- The payload to be contained by theShortArraySection
.- Returns:
- The accordingly created
ShortArraySection
.
-
shortArraySection
Constructs aShortArraySection
with the given short array payload and aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theShortArraySection
's value.- Parameters:
aValue
- The payload to be contained by theShortArraySection
.- Returns:
- The accordingly created
ShortArraySection
.
-
shortArraySection
Constructs an emptyShortArraySection
with aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theSection
's value.- Parameters:
aAlias
- The alias which identifies the content of this segment.- Returns:
- The accordingly created
ShortArraySection
.
-
shortArraySection
public static ShortArraySection shortArraySection(String aAlias, org.refcodes.numerical.Endianess aEndianess) Constructs an emptyShortArraySection
with the givenEndianess
.- Parameters:
aAlias
- The alias which identifies the content of this segment.aEndianess
- TheEndianess
to be used for payload values.- Returns:
- The accordingly created
ShortArraySection
.
-
shortArraySection
public static ShortArraySection shortArraySection(String aAlias, org.refcodes.numerical.Endianess aEndianess, short... aValue) Constructs aShortArraySection
with the given short array payload and the givenEndianess
for the representation of theShortArraySection
's value.- Parameters:
aAlias
- The alias which identifies the content of this segment.aEndianess
- TheEndianess
to be used for payload values.aValue
- The payload to be contained by theShortArraySection
.- Returns:
- The accordingly created
ShortArraySection
.
-
shortArraySection
public static ShortArraySection shortArraySection(String aAlias, org.refcodes.numerical.Endianess aEndianess, Short... aValue) Constructs aShortArraySection
with the given short array payload and the givenEndianess
for the representation of theShortArraySection
's value.- Parameters:
aAlias
- The alias which identifies the content of this segment.aEndianess
- TheEndianess
to be used for payload values.aValue
- The payload to be contained by theShortArraySection
.- Returns:
- The accordingly created
ShortArraySection
.
-
shortArraySection
Constructs aShortArraySection
with the given short array payload and aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theShortArraySection
's value.- Parameters:
aAlias
- The alias which identifies the content of this segment.aValue
- The payload to be contained by theShortArraySection
.- Returns:
- The accordingly created
ShortArraySection
.
-
shortArraySection
Constructs aShortArraySection
with the given short array payload and aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theShortArraySection
's value.- Parameters:
aAlias
- The alias which identifies the content of this segment.aValue
- The payload to be contained by theShortArraySection
.- Returns:
- The accordingly created
ShortArraySection
.
-
shortArraySection
public static ShortArraySection shortArraySection(String aAlias, TransmissionMetrics aTransmissionMetrics) Constructs an according instance from the given configuration. The configuration attributes are taken from theTransmissionMetrics
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
- TheTransmissionMetrics
to be used for configuring this instance.- Returns:
- The accordingly created
ShortArraySection
.
-
shortArraySection
public static ShortArraySection shortArraySection(String aAlias, TransmissionMetrics aTransmissionMetrics, short... aValue) Constructs an according instance from the given configuration. The configuration attributes are taken from theTransmissionMetrics
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
- TheTransmissionMetrics
to be used for configuring this instance.aValue
- The payload to be contained by theShortArraySection
.- Returns:
- The accordingly created
ShortArraySection
.
-
shortArraySection
public static ShortArraySection shortArraySection(String aAlias, TransmissionMetrics aTransmissionMetrics, Short... aValue) Constructs an according instance from the given configuration. The configuration attributes are taken from theTransmissionMetrics
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
- TheTransmissionMetrics
to be used for configuring this instance.aValue
- The payload to be contained by theShortArraySection
.- Returns:
- The accordingly created
ShortArraySection
.
-
shortArraySection
Constructs an according instance from the given configuration. The configuration attributes are taken from theTransmissionMetrics
configuration object, though only those attributes are supported which are also supported by the other constructors!- Parameters:
aTransmissionMetrics
- TheTransmissionMetrics
to be used for configuring this instance.- Returns:
- The accordingly created
ShortArraySection
.
-
shortArraySection
public static ShortArraySection shortArraySection(TransmissionMetrics aTransmissionMetrics, short... aValue) Constructs an according instance from the given configuration. The configuration attributes are taken from theTransmissionMetrics
configuration object, though only those attributes are supported which are also supported by the other constructors!- Parameters:
aTransmissionMetrics
- TheTransmissionMetrics
to be used for configuring this instance.aValue
- The payload to be contained by theShortArraySection
.- Returns:
- The accordingly created
ShortArraySection
.
-
shortArraySection
public static ShortArraySection shortArraySection(TransmissionMetrics aTransmissionMetrics, Short... aValue) Constructs an according instance from the given configuration. The configuration attributes are taken from theTransmissionMetrics
configuration object, though only those attributes are supported which are also supported by the other constructors!- Parameters:
aTransmissionMetrics
- TheTransmissionMetrics
to be used for configuring this instance.aValue
- The payload to be contained by theShortArraySection
.- Returns:
- The accordingly created
ShortArraySection
.
-
shortSegment
Constructs an emptyShortSegment
with aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theShortSegment
's value.- Returns:
- The accordingly created
ShortSegment
.
-
shortSegment
Constructs an emptyShortSegment
with the givenEndianess
endian representation of theShortSegment
's value.- Parameters:
aEndianess
- TheEndianess
to be used for the payload values.- Returns:
- The accordingly created
ShortSegment
.
-
shortSegment
Constructs aShortSegment
with the given short payload and aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theShortSegment
's value.- Parameters:
aValue
- The value (payload) to be contained by theShortSegment
.- Returns:
- The accordingly created
ShortSegment
.
-
shortSegment
Constructs aShortSegment
with the given short payload and the givenEndianess
for the representation of theSegment
's value.- Parameters:
aValue
- The value (payload) to be contained by theShortSegment
.aEndianess
- TheEndianess
to be used for the payload values.- Returns:
- The accordingly created
ShortSegment
.
-
shortSegment
Constructs an according instance from the given configuration. The configuration attributes are taken from theTransmissionMetrics
configuration object, though only those attributes are supported which are also supported by the other constructors!- Parameters:
aValue
- The payload to be contained by theDoubleArraySection
.aTransmissionMetrics
- TheTransmissionMetrics
to be used for configuring this instance.- Returns:
- The accordingly created
ShortSegment
.
-
shortSegment
Constructs an emptyShortSegment
with aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theShortSegment
's value.- Parameters:
aAlias
- The alias which identifies the content of this segment.- Returns:
- The accordingly created
ShortSegment
.
-
shortSegment
Constructs an emptyShortSegment
with the givenEndianess
endian representation of theShortSegment
's value.- Parameters:
aAlias
- The alias which identifies the content of this segment.aEndianess
- TheEndianess
to be used for the payload values.- Returns:
- The accordingly created
ShortSegment
.
-
shortSegment
Constructs aShortSegment
with the given short payload and aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of theShortSegment
's value.- Parameters:
aAlias
- The alias which identifies the content of this segment.aValue
- The value (payload) to be contained by theShortSegment
.- Returns:
- The accordingly created
ShortSegment
.
-
shortSegment
public static ShortSegment shortSegment(String aAlias, Short aValue, org.refcodes.numerical.Endianess aEndianess) Constructs aShortSegment
with the given short payload and the givenEndianess
for the representation of theSegment
's value.- Parameters:
aAlias
- The alias which identifies the content of this segment.aValue
- The value (payload) to be contained by theShortSegment
.aEndianess
- TheEndianess
to be used for the payload values.- Returns:
- The accordingly created
ShortSegment
.
-
shortSegment
public static ShortSegment shortSegment(String aAlias, Short aValue, TransmissionMetrics aTransmissionMetrics) Constructs an according instance from the given configuration. The configuration attributes are taken from theTransmissionMetrics
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 theDoubleArraySection
.aTransmissionMetrics
- TheTransmissionMetrics
to be used for configuring this instance.- Returns:
- The accordingly created
ShortSegment
.
-
shortSegment
Constructs an according instance from the given configuration. The configuration attributes are taken from theTransmissionMetrics
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
- TheTransmissionMetrics
to be used for configuring this instance.- Returns:
- The accordingly created
ShortSegment
.
-
shortSegment
Constructs an according instance from the given configuration. The configuration attributes are taken from theTransmissionMetrics
configuration object, though only those attributes are supported which are also supported by the other constructors!- Parameters:
aTransmissionMetrics
- TheTransmissionMetrics
to be used for configuring this instance.- Returns:
- The accordingly created
ShortSegment
.
-
stopAndWaitPacketStreamSection
public static <DECORATEE extends Section> StopAndWaitPacketStreamSectionDecorator<DECORATEE> stopAndWaitPacketStreamSection(DECORATEE aDecoratee, int aBlockSize, int aPacketLengthWidth, byte[] aPacketMagicBytes, byte[] aLastPacketMagicBytes, int aSequenceNumberInitValue, int aSequenceNumberWidth, org.refcodes.mixin.ConcatenateMode aSequenceNumberConcatenateMode, SegmentPackager aPacketSegmentPackager, byte[] aAcknowledgeMagicBytes, int aAckRetryNumber, long aAckTimeoutInMs, SegmentPackager aAckSegmentPackager, org.refcodes.numerical.Endianess aEndianess) Constructs an according packet-stream decorator instance wrapping the givenOutputStream
.- Type Parameters:
DECORATEE
- The decoratee type describing the according subclass to be chunked into blocks and enriched with a CRC checksum and a sequence number.- Parameters:
aDecoratee
- The decoratee to be wrapped by the packet-stream decorator.aBlockSize
- The block size of a data block for each packet.aPacketLengthWidth
- The width (bytes) for declaring the (max) length of a package.aPacketMagicBytes
- The magic bytes identifying a packet and distinguishing a packet from a last package.aLastPacketMagicBytes
- the a last packet magic bytesaSequenceNumberInitValue
- The initial sequence number from where to start counting the blocks.aSequenceNumberWidth
- The width (in bytes) to be used for sequence number values.aSequenceNumberConcatenateMode
- The mode of concatenation to use when creating aSequence
from thisTransmission
and the decoratedTransmission
.aPacketSegmentPackager
- An (optional)SegmentPackager
used to modify a packet's data e.g. with a CRC checksum.aAcknowledgeMagicBytes
- The ACK character(s) to be used by the return channel to transmit an ACK (acknowledge) response after successful receiving a transmission.aAckRetryNumber
- The number of retries waiting for an ACK from the return channel.aAckTimeoutInMs
- The timeout in milliseconds to pend till the next retry.aAckSegmentPackager
- An (optional)SegmentPackager
used to modify a ACK response data e.g. with a CRC checksum.aEndianess
- TheEndianess
to use for integer (double) numbers and the like.- Returns:
- The accordingly created
StopAndWaitPacketStreamSectionDecorator
.
-
stopAndWaitPacketStreamSection
public static <DECORATEE extends Section> StopAndWaitPacketStreamSectionDecorator<DECORATEE> stopAndWaitPacketStreamSection(DECORATEE aDecoratee, TransmissionMetrics aTransmissionMetrics) Constructs an according packet-stream decorator instance wrapping the givenOutputStream
. The configuration attributes are taken from theTransmissionMetrics
configuration object, though only those attributes are supported which are also supported by the other constructors!- Type Parameters:
DECORATEE
- The decoratee type describing the according subclass to be chunked into blocks and enriched with a CRC checksum and a sequence number.- Parameters:
aDecoratee
- The decoratee to be wrapped by the packet-stream decorator.aTransmissionMetrics
- TheTransmissionMetrics
to be used for configuring this instance.- Returns:
- The accordingly created
StopAndWaitPacketStreamSectionDecorator
.
-
stopAndWaitPacketStreamSectionBuilder
public static <DECORATEE extends Section> StopAndWaitPacketStreamSectionDecorator.Builder<DECORATEE> stopAndWaitPacketStreamSectionBuilder()Constructs a builder to build an accordingStopAndWaitPacketStreamSectionDecorator
instance.- Type Parameters:
DECORATEE
- The decoratee type describing the according subclass to be enriched.- Returns:
- The
StopAndWaitPacketStreamSectionDecorator.Builder
to build aStopAndWaitPacketStreamSectionDecorator
.
-
stopAndWaitPacketStreamSegment
public static <DECORATEE extends Segment> StopAndWaitPacketStreamSegmentDecorator<DECORATEE> stopAndWaitPacketStreamSegment(DECORATEE aDecoratee, int aBlockSize, int aPacketLengthWidth, byte[] aPacketMagicBytes, byte[] aLastPacketMagicBytes, int aSequenceNumberInitValue, int aSequenceNumberWidth, org.refcodes.mixin.ConcatenateMode aSequenceNumberConcatenateMode, SegmentPackager aPacketSegmentPackager, byte[] aAcknowledgeMagicBytes, int aAckRetryNumber, long aAckTimeoutInMs, SegmentPackager aAckSegmentPackager, org.refcodes.numerical.Endianess aEndianess) Constructs an according packet-stream decorator instance wrapping the givenOutputStream
.- Type Parameters:
DECORATEE
- The decoratee type describing the according subclass to be chunked into blocks and enriched with a CRC checksum and a sequence number.- Parameters:
aDecoratee
- The decoratee to be wrapped by the packet-stream decorator.aBlockSize
- The block size of a data block for each packet.aPacketLengthWidth
- The width (bytes) for declaring the (max) length of a package.aPacketMagicBytes
- The magic bytes identifying a packet and distinguishing a packet from a last package.aLastPacketMagicBytes
- the a last packet magic bytesaSequenceNumberInitValue
- the a sequence number init valueaSequenceNumberWidth
- The width (in bytes) to be used for sequence number values.aSequenceNumberConcatenateMode
- The mode of concatenation to use when creating aSequence
from thisTransmission
and the decoratedTransmission
.aPacketSegmentPackager
- An (optional)SegmentPackager
used to modify a packet's data e.g. with a CRC checksum.aAcknowledgeMagicBytes
- The ACK character(s) to be used by the return channel to transmit an ACK (acknowledge) response after successful receiving a transmission.aAckRetryNumber
- The number of retries waiting for an ACK from the return channel.aAckTimeoutInMs
- The timeout in milliseconds to pend till the next retry.aAckSegmentPackager
- An (optional)SegmentPackager
used to modify a ACK response data e.g. with a CRC checksum.aEndianess
- TheEndianess
to use for integer (double) numbers and the like.- Returns:
- The accordingly created
StopAndWaitPacketStreamSegmentDecorator
.
-
stopAndWaitPacketStreamSegment
public static <DECORATEE extends Segment> StopAndWaitPacketStreamSegmentDecorator<DECORATEE> stopAndWaitPacketStreamSegment(DECORATEE aDecoratee, TransmissionMetrics aTransmissionMetrics) Constructs an according packet-stream decorator instance wrapping the givenOutputStream
. The configuration attributes are taken from theTransmissionMetrics
configuration object, though only those attributes are supported which are also supported by the other constructors!- Type Parameters:
DECORATEE
- The decoratee type describing the according subclass to be chunked into blocks and enriched with a CRC checksum and a sequence number.- Parameters:
aDecoratee
- The decoratee to be wrapped by the packet-stream decorator.aTransmissionMetrics
- TheTransmissionMetrics
to be used for configuring this instance.- Returns:
- The accordingly created
StopAndWaitPacketStreamSegmentDecorator
.
-
stopAndWaitPacketStreamSegmentBuilder
public static <DECORATEE extends Segment> StopAndWaitPacketStreamSegmentDecorator.Builder<DECORATEE> stopAndWaitPacketStreamSegmentBuilder()Constructs a builder to build an accordingStopAndWaitPacketStreamSegmentDecorator
instance.- Type Parameters:
DECORATEE
- The decoratee type describing the according subclass to be enriched.- Returns:
- The
StopAndWaitPacketStreamSegmentDecorator.Builder
to build aStopAndWaitPacketStreamSegmentDecorator
.
-
stopAndWaitSection
public static <DECORATEE extends Section> StopAndWaitSectionDecorator<DECORATEE> stopAndWaitSection(DECORATEE aDecoratee) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- TheSection
type describing theSection
subclass decoratee.- Parameters:
aDecoratee
- The decoratee to be wrapped by the stop-and-wait decorator.- Returns:
- The accordingly created
StopAndWaitSectionDecorator
.
-
stopAndWaitSection
public static <DECORATEE extends Section> StopAndWaitSectionDecorator<DECORATEE> stopAndWaitSection(DECORATEE aDecoratee, byte[] aAcknowledgeMagicBytes, int aAckRetryNumber, long aAckTimeoutInMs, org.refcodes.mixin.ConcatenateMode aCrcChecksumConcatenateMode, org.refcodes.numerical.Endianess aEndianess) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- TheSection
type describing theSection
subclass decoratee.- Parameters:
aDecoratee
- The decoratee to be wrapped by the stop-and-wait decorator.aAcknowledgeMagicBytes
- The ACK character(s) to be used by the return channel to transmit an ACK (acknowledge) response after successful receiving a transmission.aAckRetryNumber
- The number of retries waiting for an ACK from the return channel.aAckTimeoutInMs
- The timeout in milliseconds to pend till the next retry.aCrcChecksumConcatenateMode
- The mode of concatenation to use when concatenating the CRC checksum with the transmission'sSequence
.aEndianess
- TheEndianess
to use for integer (double) numbers and the like.- Returns:
- The accordingly created
StopAndWaitSectionDecorator
.
-
stopAndWaitSection
public static <DECORATEE extends Section> StopAndWaitSectionDecorator<DECORATEE> stopAndWaitSection(DECORATEE aDecoratee, byte[] aAcknowledgeMagicBytes, int aAckRetryNumber, long aAckTimeoutInMs, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.mixin.ConcatenateMode aCrcChecksumConcatenateMode, org.refcodes.numerical.ChecksumValidationMode aChecksumValidationMode, org.refcodes.numerical.Endianess aEndianess) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- TheSection
type describing theSection
subclass decoratee.- Parameters:
aDecoratee
- The decoratee to be wrapped by the stop-and-wait decorator.aAcknowledgeMagicBytes
- The ACK character(s) to be used by the return channel to transmit an ACK (acknowledge) response after successful receiving a transmission.aAckRetryNumber
- The number of retries waiting for an ACK from the return channel.aAckTimeoutInMs
- The timeout in milliseconds to pend till the next retry.aCrcAlgorithm
- TheCrcAlgorithm
to be used for CRC checksum calculation.aCrcChecksumConcatenateMode
- The mode of concatenation to use when concatenating the CRC checksum with the transmission'sSequence
.aChecksumValidationMode
- The mode of operation when validating provided CRC checksums against calculated ones.aEndianess
- TheEndianess
to use for integer (double) numbers and the like.- Returns:
- The accordingly created
StopAndWaitSectionDecorator
.
-
stopAndWaitSection
public static <DECORATEE extends Section> StopAndWaitSectionDecorator<DECORATEE> stopAndWaitSection(DECORATEE aDecoratee, byte[] aAcknowledgeMagicBytes, int aAckRetryNumber, long aAckTimeoutInMs, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.mixin.ConcatenateMode aCrcChecksumConcatenateMode, org.refcodes.numerical.Endianess aEndianess) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- TheSection
type describing theSection
subclass decoratee.- Parameters:
aDecoratee
- The decoratee to be wrapped by the stop-and-wait decorator.aAcknowledgeMagicBytes
- The ACK character(s) to be used by the return channel to transmit an ACK (acknowledge) response after successful receiving a transmission.aAckRetryNumber
- The number of retries waiting for an ACK from the return channel.aAckTimeoutInMs
- The timeout in milliseconds to pend till the next retry.aCrcAlgorithm
- TheCrcAlgorithm
to be used for CRC checksum calculation.aCrcChecksumConcatenateMode
- The mode of concatenation to use when concatenating the CRC checksum with the transmission'sSequence
.aEndianess
- TheEndianess
to use for integer (double) numbers and the like.- Returns:
- The accordingly created
StopAndWaitSectionDecorator
.
-
stopAndWaitSection
public static <DECORATEE extends Section> StopAndWaitSectionDecorator<DECORATEE> stopAndWaitSection(DECORATEE aDecoratee, byte[] aAcknowledgeMagicBytes, int aAckRetryNumber, long aAckTimeoutInMs, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.numerical.Endianess aEndianess) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- TheSection
type describing theSection
subclass decoratee.- Parameters:
aDecoratee
- The decoratee to be wrapped by the stop-and-wait decorator.aAcknowledgeMagicBytes
- The ACK character(s) to be used by the return channel to transmit an ACK (acknowledge) response after successful receiving a transmission.aAckRetryNumber
- The number of retries waiting for an ACK from the return channel.aAckTimeoutInMs
- The timeout in milliseconds to pend till the next retry.aCrcAlgorithm
- TheCrcAlgorithm
to be used for CRC checksum calculation.aEndianess
- TheEndianess
to use for integer (double) numbers and the like.- Returns:
- The accordingly created
StopAndWaitSectionDecorator
.
-
stopAndWaitSection
public static <DECORATEE extends Section> StopAndWaitSectionDecorator<DECORATEE> stopAndWaitSection(DECORATEE aDecoratee, byte[] aAcknowledgeMagicBytes, int aAckRetryNumber, long aAckTimeoutInMs, org.refcodes.numerical.Endianess aEndianess) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- TheSection
type describing theSection
subclass decoratee.- Parameters:
aDecoratee
- The decoratee to be wrapped by the stop-and-wait decorator.aAcknowledgeMagicBytes
- The ACK character(s) to be used by the return channel to transmit an ACK (acknowledge) response after successful receiving a transmission.aAckRetryNumber
- The number of retries waiting for an ACK from the return channel.aAckTimeoutInMs
- The timeout in milliseconds to pend till the next retry.aEndianess
- TheEndianess
to use for integer (double) numbers and the like.- Returns:
- The accordingly created
StopAndWaitSectionDecorator
.
-
stopAndWaitSection
public static <DECORATEE extends Section> StopAndWaitSectionDecorator<DECORATEE> stopAndWaitSection(DECORATEE aDecoratee, byte[] aAcknowledgeMagicBytes, int aAckRetryNumber, long aAckTimeoutInMs, SegmentPackager aAckSegmentPackager, org.refcodes.numerical.Endianess aEndianess) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- TheSection
type describing theSection
subclass decoratee.- Parameters:
aDecoratee
- The decoratee to be wrapped by the stop-and-wait decorator.aAcknowledgeMagicBytes
- The ACK character(s) to be used by the return channel to transmit an ACK (acknowledge) response after successful receiving a transmission.aAckRetryNumber
- The number of retries waiting for an ACK from the return channel.aAckTimeoutInMs
- The timeout in milliseconds to pend till the next retry.aAckSegmentPackager
- the ack segment packageraEndianess
- TheEndianess
to use for integer (double) numbers and the like.- Returns:
- The accordingly created
StopAndWaitSectionDecorator
.
-
stopAndWaitSection
public static <DECORATEE extends Section> StopAndWaitSectionDecorator<DECORATEE> stopAndWaitSection(DECORATEE aDecoratee, org.refcodes.mixin.ConcatenateMode aCrcChecksumConcatenateMode) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- TheSection
type describing theSection
subclass decoratee.- Parameters:
aDecoratee
- The decoratee to be wrapped by the stop-and-wait decorator.aCrcChecksumConcatenateMode
- The mode of concatenation to use when concatenating the CRC checksum with the transmission'sSequence
.- Returns:
- The accordingly created
StopAndWaitSectionDecorator
.
-
stopAndWaitSection
public static <DECORATEE extends Section> StopAndWaitSectionDecorator<DECORATEE> stopAndWaitSection(DECORATEE aDecoratee, org.refcodes.mixin.ConcatenateMode aSequenceNumberConcatenateMode, byte[] aAcknowledgeMagicBytes, int aAckRetryNumber, long aAckTimeoutInMs, org.refcodes.mixin.ConcatenateMode aCrcChecksumConcatenateMode, org.refcodes.numerical.Endianess aEndianess) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- TheSection
type describing theSection
subclass decoratee.- Parameters:
aDecoratee
- The decoratee to be wrapped by the stop-and-wait decorator.aSequenceNumberConcatenateMode
- The mode of concatenation to use when creating aSequence
from thisTransmission
and the decoratedTransmission
.aAcknowledgeMagicBytes
- The ACK character(s) to be used by the return channel to transmit an ACK (acknowledge) response after successful receiving a transmission.aAckRetryNumber
- The number of retries waiting for an ACK from the return channel.aAckTimeoutInMs
- The timeout in milliseconds to pend till the next retry.aCrcChecksumConcatenateMode
- The mode of concatenation to use when concatenating the CRC checksum with the transmission'sSequence
.aEndianess
- TheEndianess
to use for integer (double) numbers and the like.- Returns:
- The accordingly created
StopAndWaitSectionDecorator
.
-
stopAndWaitSection
public static <DECORATEE extends Section> StopAndWaitSectionDecorator<DECORATEE> stopAndWaitSection(DECORATEE aDecoratee, org.refcodes.mixin.ConcatenateMode aSequenceNumberConcatenateMode, byte[] aAcknowledgeMagicBytes, int aAckRetryNumber, long aAckTimeoutInMs, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.mixin.ConcatenateMode aCrcChecksumConcatenateMode, org.refcodes.numerical.ChecksumValidationMode aChecksumValidationMode, org.refcodes.numerical.Endianess aEndianess) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- TheSection
type describing theSection
subclass decoratee.- Parameters:
aDecoratee
- The decoratee to be wrapped by the stop-and-wait decorator.aSequenceNumberConcatenateMode
- The mode of concatenation to use when creating aSequence
from thisTransmission
and the decoratedTransmission
.aAcknowledgeMagicBytes
- The ACK character(s) to be used by the return channel to transmit an ACK (acknowledge) response after successful receiving a transmission.aAckRetryNumber
- The number of retries waiting for an ACK from the return channel.aAckTimeoutInMs
- The timeout in milliseconds to pend till the next retry.aCrcAlgorithm
- TheCrcAlgorithm
to be used for CRC checksum calculation.aCrcChecksumConcatenateMode
- The mode of concatenation to use when concatenating the CRC checksum with the transmission'sSequence
.aChecksumValidationMode
- The mode of operation when validating provided CRC checksums against calculated ones.aEndianess
- TheEndianess
to use for integer (double) numbers and the like.- Returns:
- The accordingly created
StopAndWaitSectionDecorator
.
-
stopAndWaitSection
public static <DECORATEE extends Section> StopAndWaitSectionDecorator<DECORATEE> stopAndWaitSection(DECORATEE aDecoratee, org.refcodes.mixin.ConcatenateMode aSequenceNumberConcatenateMode, byte[] aAcknowledgeMagicBytes, int aAckRetryNumber, long aAckTimeoutInMs, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.mixin.ConcatenateMode aCrcChecksumConcatenateMode, org.refcodes.numerical.Endianess aEndianess) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- TheSection
type describing theSection
subclass decoratee.- Parameters:
aDecoratee
- The decoratee to be wrapped by the stop-and-wait decorator.aSequenceNumberConcatenateMode
- The mode of concatenation to use when creating aSequence
from thisTransmission
and the decoratedTransmission
.aAcknowledgeMagicBytes
- The ACK character(s) to be used by the return channel to transmit an ACK (acknowledge) response after successful receiving a transmission.aAckRetryNumber
- The number of retries waiting for an ACK from the return channel.aAckTimeoutInMs
- The timeout in milliseconds to pend till the next retry.aCrcAlgorithm
- TheCrcAlgorithm
to be used for CRC checksum calculation.aCrcChecksumConcatenateMode
- The mode of concatenation to use when concatenating the CRC checksum with the transmission'sSequence
.aEndianess
- TheEndianess
to use for integer (double) numbers and the like.- Returns:
- The accordingly created
StopAndWaitSectionDecorator
.
-
stopAndWaitSection
public static <DECORATEE extends Section> StopAndWaitSectionDecorator<DECORATEE> stopAndWaitSection(DECORATEE aDecoratee, org.refcodes.mixin.ConcatenateMode aSequenceNumberConcatenateMode, byte[] aAcknowledgeMagicBytes, int aAckRetryNumber, long aAckTimeoutInMs, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.numerical.Endianess aEndianess) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- TheSection
type describing theSection
subclass decoratee.- Parameters:
aDecoratee
- The decoratee to be wrapped by the stop-and-wait decorator.aSequenceNumberConcatenateMode
- The mode of concatenation to use when creating aSequence
from thisTransmission
and the decoratedTransmission
.aAcknowledgeMagicBytes
- The ACK character(s) to be used by the return channel to transmit an ACK (acknowledge) response after successful receiving a transmission.aAckRetryNumber
- The number of retries waiting for an ACK from the return channel.aAckTimeoutInMs
- The timeout in milliseconds to pend till the next retry.aCrcAlgorithm
- TheCrcAlgorithm
to be used for CRC checksum calculation.aEndianess
- TheEndianess
to use for integer (double) numbers and the like.- Returns:
- The accordingly created
StopAndWaitSectionDecorator
.
-
stopAndWaitSection
public static <DECORATEE extends Section> StopAndWaitSectionDecorator<DECORATEE> stopAndWaitSection(DECORATEE aDecoratee, org.refcodes.mixin.ConcatenateMode aSequenceNumberConcatenateMode, byte[] aAcknowledgeMagicBytes, int aAckRetryNumber, long aAckTimeoutInMs, org.refcodes.numerical.Endianess aEndianess) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- TheSection
type describing theSection
subclass decoratee.- Parameters:
aDecoratee
- The decoratee to be wrapped by the stop-and-wait decorator.aSequenceNumberConcatenateMode
- The mode of concatenation to use when creating aSequence
from thisTransmission
and the decoratedTransmission
.aAcknowledgeMagicBytes
- The ACK character(s) to be used by the return channel to transmit an ACK (acknowledge) response after successful receiving a transmission.aAckRetryNumber
- The number of retries waiting for an ACK from the return channel.aAckTimeoutInMs
- The timeout in milliseconds to pend till the next retry.aEndianess
- TheEndianess
to use for integer (double) numbers and the like.- Returns:
- The accordingly created
StopAndWaitSectionDecorator
.
-
stopAndWaitSection
public static <DECORATEE extends Section> StopAndWaitSectionDecorator<DECORATEE> stopAndWaitSection(DECORATEE aDecoratee, org.refcodes.mixin.ConcatenateMode aSequenceNumberConcatenateMode, byte[] aAcknowledgeMagicBytes, int aAckRetryNumber, long aAckTimeoutInMs, SegmentPackager aAckSegmentPackager, org.refcodes.numerical.Endianess aEndianess) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- TheSection
type describing theSection
subclass decoratee.- Parameters:
aDecoratee
- The decoratee to be wrapped by the stop-and-wait decorator.aSequenceNumberConcatenateMode
- The mode of concatenation to use when creating aSequence
from thisTransmission
and the decoratedTransmission
.aAcknowledgeMagicBytes
- The ACK character(s) to be used by the return channel to transmit an ACK (acknowledge) response after successful receiving a transmission.aAckRetryNumber
- The number of retries waiting for an ACK from the return channel.aAckTimeoutInMs
- The timeout in milliseconds to pend till the next retry.aAckSegmentPackager
- the ack segment packageraEndianess
- TheEndianess
to use for integer (double) numbers and the like.- Returns:
- The accordingly created
StopAndWaitSectionDecorator
.
-
stopAndWaitSection
public static <DECORATEE extends Section> StopAndWaitSectionDecorator<DECORATEE> stopAndWaitSection(DECORATEE aDecoratee, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- TheSection
type describing theSection
subclass decoratee.- Parameters:
aDecoratee
- The decoratee to be wrapped by the stop-and-wait decorator.aCrcAlgorithm
- TheCrcAlgorithm
to be used for CRC checksum calculation.- Returns:
- The accordingly created
StopAndWaitSectionDecorator
.
-
stopAndWaitSection
public static <DECORATEE extends Section> StopAndWaitSectionDecorator<DECORATEE> stopAndWaitSection(DECORATEE aDecoratee, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.mixin.ConcatenateMode aCrcChecksumConcatenateMode) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- TheSection
type describing theSection
subclass decoratee.- Parameters:
aDecoratee
- The decoratee to be wrapped by the stop-and-wait decorator.aCrcAlgorithm
- TheCrcAlgorithm
to be used for CRC checksum calculation.aCrcChecksumConcatenateMode
- The mode of concatenation to use when concatenating the CRC checksum with the transmission'sSequence
.- Returns:
- The accordingly created
StopAndWaitSectionDecorator
.
-
stopAndWaitSection
public static <DECORATEE extends Section> StopAndWaitSectionDecorator<DECORATEE> stopAndWaitSection(DECORATEE aDecoratee, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.mixin.ConcatenateMode aCrcChecksumConcatenateMode, org.refcodes.numerical.ChecksumValidationMode aChecksumValidationMode) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- TheSection
type describing theSection
subclass decoratee.- Parameters:
aDecoratee
- The decoratee to be wrapped by the stop-and-wait decorator.aCrcAlgorithm
- TheCrcAlgorithm
to be used for CRC checksum calculation.aCrcChecksumConcatenateMode
- The mode of concatenation to use when concatenating the CRC checksum with the transmission'sSequence
.aChecksumValidationMode
- The mode of operation when validating provided CRC checksums against calculated ones.- Returns:
- The accordingly created
StopAndWaitSectionDecorator
.
-
stopAndWaitSection
public static <DECORATEE extends Section> StopAndWaitSectionDecorator<DECORATEE> stopAndWaitSection(DECORATEE aDecoratee, int aSequenceNumberInitValue, int aSequenceNumberWidth, org.refcodes.mixin.ConcatenateMode aSequenceNumberConcatenateMode, byte[] aAcknowledgeMagicBytes, int aAckRetryNumber, long aAckTimeoutInMs, org.refcodes.mixin.ConcatenateMode aCrcChecksumConcatenateMode, org.refcodes.numerical.Endianess aEndianess) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- TheSection
type describing theSection
subclass decoratee.- Parameters:
aDecoratee
- The decoratee to be wrapped by the stop-and-wait decorator.aSequenceNumberInitValue
- The initial sequence number from where to start counting the blocks.aSequenceNumberWidth
- The width (in bytes) to be used for sequence number values.aSequenceNumberConcatenateMode
- The mode of concatenation to use when creating aSequence
from thisTransmission
and the decoratedTransmission
.aAcknowledgeMagicBytes
- The ACK character(s) to be used by the return channel to transmit an ACK (acknowledge) response after successful receiving a transmission.aAckRetryNumber
- The number of retries waiting for an ACK from the return channel.aAckTimeoutInMs
- The timeout in milliseconds to pend till the next retry.aCrcChecksumConcatenateMode
- The mode of concatenation to use when concatenating the CRC checksum with the transmission'sSequence
.aEndianess
- TheEndianess
to use for integer (double) numbers and the like.- Returns:
- The accordingly created
StopAndWaitSectionDecorator
.
-
stopAndWaitSection
public static <DECORATEE extends Section> StopAndWaitSectionDecorator<DECORATEE> stopAndWaitSection(DECORATEE aDecoratee, int aSequenceNumberInitValue, int aSequenceNumberWidth, org.refcodes.mixin.ConcatenateMode aSequenceNumberConcatenateMode, byte[] aAcknowledgeMagicBytes, int aAckRetryNumber, long aAckTimeoutInMs, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.mixin.ConcatenateMode aCrcChecksumConcatenateMode, org.refcodes.numerical.ChecksumValidationMode aChecksumValidationMode, org.refcodes.numerical.Endianess aEndianess) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- TheSection
type describing theSection
subclass decoratee.- Parameters:
aDecoratee
- The decoratee to be wrapped by the stop-and-wait decorator.aSequenceNumberInitValue
- The initial sequence number from where to start counting the blocks.aSequenceNumberWidth
- The width (in bytes) to be used for sequence number values.aSequenceNumberConcatenateMode
- The mode of concatenation to use when creating aSequence
from thisTransmission
and the decoratedTransmission
.aAcknowledgeMagicBytes
- The ACK character(s) to be used by the return channel to transmit an ACK (acknowledge) response after successful receiving a transmission.aAckRetryNumber
- The number of retries waiting for an ACK from the return channel.aAckTimeoutInMs
- The timeout in milliseconds to pend till the next retry.aCrcAlgorithm
- TheCrcAlgorithm
to be used for CRC checksum calculation.aCrcChecksumConcatenateMode
- The mode of concatenation to use when concatenating the CRC checksum with the transmission'sSequence
.aChecksumValidationMode
- The mode of operation when validating provided CRC checksums against calculated ones.aEndianess
- TheEndianess
to use for integer (double) numbers and the like.- Returns:
- The accordingly created
StopAndWaitSectionDecorator
.
-
stopAndWaitSection
public static <DECORATEE extends Section> StopAndWaitSectionDecorator<DECORATEE> stopAndWaitSection(DECORATEE aDecoratee, int aSequenceNumberInitValue, int aSequenceNumberWidth, org.refcodes.mixin.ConcatenateMode aSequenceNumberConcatenateMode, byte[] aAcknowledgeMagicBytes, int aAckRetryNumber, long aAckTimeoutInMs, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.mixin.ConcatenateMode aCrcChecksumConcatenateMode, org.refcodes.numerical.Endianess aEndianess) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- TheSection
type describing theSection
subclass decoratee.- Parameters:
aDecoratee
- The decoratee to be wrapped by the stop-and-wait decorator.aSequenceNumberInitValue
- The initial sequence number from where to start counting the blocks.aSequenceNumberWidth
- The width (in bytes) to be used for sequence number values.aSequenceNumberConcatenateMode
- The mode of concatenation to use when creating aSequence
from thisTransmission
and the decoratedTransmission
.aAcknowledgeMagicBytes
- The ACK character(s) to be used by the return channel to transmit an ACK (acknowledge) response after successful receiving a transmission.aAckRetryNumber
- The number of retries waiting for an ACK from the return channel.aAckTimeoutInMs
- The timeout in milliseconds to pend till the next retry.aCrcAlgorithm
- TheCrcAlgorithm
to be used for CRC checksum calculation.aCrcChecksumConcatenateMode
- The mode of concatenation to use when concatenating the CRC checksum with the transmission'sSequence
.aEndianess
- TheEndianess
to use for integer (double) numbers and the like.- Returns:
- The accordingly created
StopAndWaitSectionDecorator
.
-
stopAndWaitSection
public static <DECORATEE extends Section> StopAndWaitSectionDecorator<DECORATEE> stopAndWaitSection(DECORATEE aDecoratee, int aSequenceNumberInitValue, int aSequenceNumberWidth, org.refcodes.mixin.ConcatenateMode aSequenceNumberConcatenateMode, byte[] aAcknowledgeMagicBytes, int aAckRetryNumber, long aAckTimeoutInMs, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.numerical.Endianess aEndianess) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- TheSection
type describing theSection
subclass decoratee.- Parameters:
aDecoratee
- The decoratee to be wrapped by the stop-and-wait decorator.aSequenceNumberInitValue
- The initial sequence number from where to start counting the blocks.aSequenceNumberWidth
- The width (in bytes) to be used for sequence number values.aSequenceNumberConcatenateMode
- The mode of concatenation to use when creating aSequence
from thisTransmission
and the decoratedTransmission
.aAcknowledgeMagicBytes
- The ACK character(s) to be used by the return channel to transmit an ACK (acknowledge) response after successful receiving a transmission.aAckRetryNumber
- The number of retries waiting for an ACK from the return channel.aAckTimeoutInMs
- The timeout in milliseconds to pend till the next retry.aCrcAlgorithm
- TheCrcAlgorithm
to be used for CRC checksum calculation.aEndianess
- TheEndianess
to use for integer (double) numbers and the like.- Returns:
- The accordingly created
StopAndWaitSectionDecorator
.
-
stopAndWaitSection
public static <DECORATEE extends Section> StopAndWaitSectionDecorator<DECORATEE> stopAndWaitSection(DECORATEE aDecoratee, int aSequenceNumberInitValue, int aSequenceNumberWidth, org.refcodes.mixin.ConcatenateMode aSequenceNumberConcatenateMode, byte[] aAcknowledgeMagicBytes, int aAckRetryNumber, long aAckTimeoutInMs, org.refcodes.numerical.Endianess aEndianess) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- TheSection
type describing theSection
subclass decoratee.- Parameters:
aDecoratee
- The decoratee to be wrapped by the stop-and-wait decorator.aSequenceNumberInitValue
- The initial sequence number from where to start counting the blocks.aSequenceNumberWidth
- The width (in bytes) to be used for sequence number values.aSequenceNumberConcatenateMode
- The mode of concatenation to use when creating aSequence
from thisTransmission
and the decoratedTransmission
.aAcknowledgeMagicBytes
- The ACK character(s) to be used by the return channel to transmit an ACK (acknowledge) response after successful receiving a transmission.aAckRetryNumber
- The number of retries waiting for an ACK from the return channel.aAckTimeoutInMs
- The timeout in milliseconds to pend till the next retry.aEndianess
- TheEndianess
to use for integer (double) numbers and the like.- Returns:
- The accordingly created
StopAndWaitSectionDecorator
.
-
stopAndWaitSection
public static <DECORATEE extends Section> StopAndWaitSectionDecorator<DECORATEE> stopAndWaitSection(DECORATEE aDecoratee, int aSequenceNumberInitValue, int aSequenceNumberWidth, org.refcodes.mixin.ConcatenateMode aSequenceNumberConcatenateMode, byte[] aAcknowledgeMagicBytes, int aAckRetryNumber, long aAckTimeoutInMs, SegmentPackager aAckSegmentPackager, org.refcodes.numerical.Endianess aEndianess) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- TheSection
type describing theSection
subclass decoratee.- Parameters:
aDecoratee
- The decoratee to be wrapped by the stop-and-wait decorator.aSequenceNumberInitValue
- The initial sequence number from where to start counting the blocks.aSequenceNumberWidth
- The width (in bytes) to be used for sequence number values.aSequenceNumberConcatenateMode
- The mode of concatenation to use when creating aSequence
from thisTransmission
and the decoratedTransmission
.aAcknowledgeMagicBytes
- The ACK character(s) to be used by the return channel to transmit an ACK (acknowledge) response after successful receiving a transmission.aAckRetryNumber
- The number of retries waiting for an ACK from the return channel.aAckTimeoutInMs
- The timeout in milliseconds to pend till the next retry.aAckSegmentPackager
- the ack segment packageraEndianess
- TheEndianess
to use for integer (double) numbers and the like.- Returns:
- The accordingly created
StopAndWaitSectionDecorator
.
-
stopAndWaitSection
public static <DECORATEE extends Section> StopAndWaitSectionDecorator<DECORATEE> stopAndWaitSection(DECORATEE aDecoratee, SegmentPackager aAckSegmentPackager) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- TheSection
type describing theSection
subclass decoratee.- Parameters:
aDecoratee
- The decoratee to be wrapped by the stop-and-wait decorator.aAckSegmentPackager
- the ack segment packager- Returns:
- The accordingly created
StopAndWaitSectionDecorator
.
-
stopAndWaitSection
public static <DECORATEE extends Section> StopAndWaitSectionDecorator<DECORATEE> stopAndWaitSection(DECORATEE aDecoratee, TransmissionMetrics aTransmissionMetrics) Constructs an according stop-and-wait decorator instance wrapping the given decoratee. The configuration attributes are taken from theTransmissionMetrics
configuration object, though only those attributes are supported which are also supported by the other constructors!- Type Parameters:
DECORATEE
- TheSection
type describing theSection
subclass decoratee.- Parameters:
aDecoratee
- The decoratee to be wrapped by the stop-and-wait decorator.aTransmissionMetrics
- TheTransmissionMetrics
to be used for configuring this instance.- Returns:
- The accordingly created
StopAndWaitSectionDecorator
.
-
stopAndWaitSectionBuilder
public static <DECORATEE extends Section> StopAndWaitSectionDecorator.Builder<DECORATEE> stopAndWaitSectionBuilder()Constructs a builder to build an accordingStopAndWaitSectionDecorator
instance.- Type Parameters:
DECORATEE
- The decoratee type describing the according subclass to be enriched.- Returns:
- The
StopAndWaitSectionDecorator.Builder
to build aStopAndWaitSectionDecorator
. The accordingly createdStopAndWaitSectionDecorator
.
-
stopAndWaitSegment
public static <DECORATEE extends Segment> StopAndWaitSegmentDecorator<DECORATEE> stopAndWaitSegment(DECORATEE aDecoratee) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- TheSegment
type describing theSegment
subclass decoratee.- Parameters:
aDecoratee
- The decoratee to be wrapped by the stop-and-wait decorator.- Returns:
- The accordingly created
StopAndWaitSegmentDecorator
.
-
stopAndWaitSegment
public static <DECORATEE extends Segment> StopAndWaitSegmentDecorator<DECORATEE> stopAndWaitSegment(DECORATEE aDecoratee, byte[] aAcknowledgeMagicBytes, int aAckRetryNumber, long aAckTimeoutInMs, org.refcodes.mixin.ConcatenateMode aCrcChecksumConcatenateMode, org.refcodes.numerical.Endianess aEndianess) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- TheSegment
type describing theSegment
subclass decoratee.- Parameters:
aDecoratee
- The decoratee to be wrapped by the stop-and-wait decorator.aAcknowledgeMagicBytes
- The ACK character(s) to be used by the return channel to transmit an ACK (acknowledge) response after successful receiving a transmission.aAckRetryNumber
- The number of retries waiting for an ACK from the return channel.aAckTimeoutInMs
- The timeout in milliseconds to pend till the next retry.aCrcChecksumConcatenateMode
- The mode of concatenation to use when concatenating the CRC checksum with the transmission'sSequence
.aEndianess
- TheEndianess
to use for integer (double) numbers and the like.- Returns:
- The accordingly created
StopAndWaitSegmentDecorator
.
-
stopAndWaitSegment
public static <DECORATEE extends Segment> StopAndWaitSegmentDecorator<DECORATEE> stopAndWaitSegment(DECORATEE aDecoratee, byte[] aAcknowledgeMagicBytes, int aAckRetryNumber, long aAckTimeoutInMs, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.mixin.ConcatenateMode aCrcChecksumConcatenateMode, org.refcodes.numerical.ChecksumValidationMode aChecksumValidationMode, org.refcodes.numerical.Endianess aEndianess) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- TheSegment
type describing theSegment
subclass decoratee.- Parameters:
aDecoratee
- The decoratee to be wrapped by the stop-and-wait decorator.aAcknowledgeMagicBytes
- The ACK character(s) to be used by the return channel to transmit an ACK (acknowledge) response after successful receiving a transmission.aAckRetryNumber
- The number of retries waiting for an ACK from the return channel.aAckTimeoutInMs
- The timeout in milliseconds to pend till the next retry.aCrcAlgorithm
- TheCrcAlgorithm
to be used for CRC checksum calculation.aCrcChecksumConcatenateMode
- The mode of concatenation to use when concatenating the CRC checksum with the transmission'sSequence
.aChecksumValidationMode
- The mode of operation when validating provided CRC checksums against calculated ones.aEndianess
- TheEndianess
to use for integer (double) numbers and the like.- Returns:
- The accordingly created
StopAndWaitSegmentDecorator
.
-
stopAndWaitSegment
public static <DECORATEE extends Segment> StopAndWaitSegmentDecorator<DECORATEE> stopAndWaitSegment(DECORATEE aDecoratee, byte[] aAcknowledgeMagicBytes, int aAckRetryNumber, long aAckTimeoutInMs, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.mixin.ConcatenateMode aCrcChecksumConcatenateMode, org.refcodes.numerical.Endianess aEndianess) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- TheSegment
type describing theSegment
subclass decoratee.- Parameters:
aDecoratee
- The decoratee to be wrapped by the stop-and-wait decorator.aAcknowledgeMagicBytes
- The ACK character(s) to be used by the return channel to transmit an ACK (acknowledge) response after successful receiving a transmission.aAckRetryNumber
- The number of retries waiting for an ACK from the return channel.aAckTimeoutInMs
- The timeout in milliseconds to pend till the next retry.aCrcAlgorithm
- TheCrcAlgorithm
to be used for CRC checksum calculation.aCrcChecksumConcatenateMode
- The mode of concatenation to use when concatenating the CRC checksum with the transmission'sSequence
.aEndianess
- TheEndianess
to use for integer (double) numbers and the like.- Returns:
- The accordingly created
StopAndWaitSegmentDecorator
.
-
stopAndWaitSegment
public static <DECORATEE extends Segment> StopAndWaitSegmentDecorator<DECORATEE> stopAndWaitSegment(DECORATEE aDecoratee, byte[] aAcknowledgeMagicBytes, int aAckRetryNumber, long aAckTimeoutInMs, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.numerical.Endianess aEndianess) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- TheSegment
type describing theSegment
subclass decoratee.- Parameters:
aDecoratee
- The decoratee to be wrapped by the stop-and-wait decorator.aAcknowledgeMagicBytes
- The ACK character(s) to be used by the return channel to transmit an ACK (acknowledge) response after successful receiving a transmission.aAckRetryNumber
- The number of retries waiting for an ACK from the return channel.aAckTimeoutInMs
- The timeout in milliseconds to pend till the next retry.aCrcAlgorithm
- TheCrcAlgorithm
to be used for CRC checksum calculation.aEndianess
- TheEndianess
to use for integer (double) numbers and the like.- Returns:
- The accordingly created
StopAndWaitSegmentDecorator
.
-
stopAndWaitSegment
public static <DECORATEE extends Segment> StopAndWaitSegmentDecorator<DECORATEE> stopAndWaitSegment(DECORATEE aDecoratee, byte[] aAcknowledgeMagicBytes, int aAckRetryNumber, long aAckTimeoutInMs, org.refcodes.numerical.Endianess aEndianess) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- TheSegment
type describing theSegment
subclass decoratee.- Parameters:
aDecoratee
- The decoratee to be wrapped by the stop-and-wait decorator.aAcknowledgeMagicBytes
- The ACK character(s) to be used by the return channel to transmit an ACK (acknowledge) response after successful receiving a transmission.aAckRetryNumber
- The number of retries waiting for an ACK from the return channel.aAckTimeoutInMs
- The timeout in milliseconds to pend till the next retry.aEndianess
- TheEndianess
to use for integer (double) numbers and the like.- Returns:
- The accordingly created
StopAndWaitSegmentDecorator
.
-
stopAndWaitSegment
public static <DECORATEE extends Segment> StopAndWaitSegmentDecorator<DECORATEE> stopAndWaitSegment(DECORATEE aDecoratee, byte[] aAcknowledgeMagicBytes, int aAckRetryNumber, long aAckTimeoutInMs, SegmentPackager aAckSegmentPackager, org.refcodes.numerical.Endianess aEndianess) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- TheSegment
type describing theSegment
subclass decoratee.- Parameters:
aDecoratee
- The decoratee to be wrapped by the stop-and-wait decorator.aAcknowledgeMagicBytes
- The ACK character(s) to be used by the return channel to transmit an ACK (acknowledge) response after successful receiving a transmission.aAckRetryNumber
- The number of retries waiting for an ACK from the return channel.aAckTimeoutInMs
- The timeout in milliseconds to pend till the next retry.aAckSegmentPackager
- the ack segment packageraEndianess
- TheEndianess
to use for integer (double) numbers and the like.- Returns:
- The accordingly created
StopAndWaitSegmentDecorator
.
-
stopAndWaitSegment
public static <DECORATEE extends Segment> StopAndWaitSegmentDecorator<DECORATEE> stopAndWaitSegment(DECORATEE aDecoratee, org.refcodes.mixin.ConcatenateMode aCrcChecksumConcatenateMode) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- TheSegment
type describing theSegment
subclass decoratee.- Parameters:
aDecoratee
- The decoratee to be wrapped by the stop-and-wait decorator.aCrcChecksumConcatenateMode
- The mode of concatenation to use when concatenating the CRC checksum with the transmission'sSequence
.- Returns:
- The accordingly created
StopAndWaitSegmentDecorator
.
-
stopAndWaitSegment
public static <DECORATEE extends Segment> StopAndWaitSegmentDecorator<DECORATEE> stopAndWaitSegment(DECORATEE aDecoratee, org.refcodes.mixin.ConcatenateMode aSequenceNumberConcatenateMode, byte[] aAcknowledgeMagicBytes, int aAckRetryNumber, long aAckTimeoutInMs, org.refcodes.mixin.ConcatenateMode aCrcChecksumConcatenateMode, org.refcodes.numerical.Endianess aEndianess) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- TheSegment
type describing theSegment
subclass decoratee.- Parameters:
aDecoratee
- The decoratee to be wrapped by the stop-and-wait decorator.aSequenceNumberConcatenateMode
- The mode of concatenation to use when creating aSequence
from thisTransmission
and the decoratedTransmission
.aAcknowledgeMagicBytes
- The ACK character(s) to be used by the return channel to transmit an ACK (acknowledge) response after successful receiving a transmission.aAckRetryNumber
- The number of retries waiting for an ACK from the return channel.aAckTimeoutInMs
- The timeout in milliseconds to pend till the next retry.aCrcChecksumConcatenateMode
- The mode of concatenation to use when concatenating the CRC checksum with the transmission'sSequence
.aEndianess
- TheEndianess
to use for integer (double) numbers and the like.- Returns:
- The accordingly created
StopAndWaitSegmentDecorator
.
-
stopAndWaitSegment
public static <DECORATEE extends Segment> StopAndWaitSegmentDecorator<DECORATEE> stopAndWaitSegment(DECORATEE aDecoratee, org.refcodes.mixin.ConcatenateMode aSequenceNumberConcatenateMode, byte[] aAcknowledgeMagicBytes, int aAckRetryNumber, long aAckTimeoutInMs, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.mixin.ConcatenateMode aCrcChecksumConcatenateMode, org.refcodes.numerical.ChecksumValidationMode aChecksumValidationMode, org.refcodes.numerical.Endianess aEndianess) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- TheSegment
type describing theSegment
subclass decoratee.- Parameters:
aDecoratee
- The decoratee to be wrapped by the stop-and-wait decorator.aSequenceNumberConcatenateMode
- The mode of concatenation to use when creating aSequence
from thisTransmission
and the decoratedTransmission
.aAcknowledgeMagicBytes
- The ACK character(s) to be used by the return channel to transmit an ACK (acknowledge) response after successful receiving a transmission.aAckRetryNumber
- The number of retries waiting for an ACK from the return channel.aAckTimeoutInMs
- The timeout in milliseconds to pend till the next retry.aCrcAlgorithm
- TheCrcAlgorithm
to be used for CRC checksum calculation.aCrcChecksumConcatenateMode
- The mode of concatenation to use when concatenating the CRC checksum with the transmission'sSequence
.aChecksumValidationMode
- The mode of operation when validating provided CRC checksums against calculated ones.aEndianess
- TheEndianess
to use for integer (double) numbers and the like.- Returns:
- The accordingly created
StopAndWaitSegmentDecorator
.
-
stopAndWaitSegment
public static <DECORATEE extends Segment> StopAndWaitSegmentDecorator<DECORATEE> stopAndWaitSegment(DECORATEE aDecoratee, org.refcodes.mixin.ConcatenateMode aSequenceNumberConcatenateMode, byte[] aAcknowledgeMagicBytes, int aAckRetryNumber, long aAckTimeoutInMs, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.mixin.ConcatenateMode aCrcChecksumConcatenateMode, org.refcodes.numerical.Endianess aEndianess) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- TheSegment
type describing theSegment
subclass decoratee.- Parameters:
aDecoratee
- The decoratee to be wrapped by the stop-and-wait decorator.aSequenceNumberConcatenateMode
- The mode of concatenation to use when creating aSequence
from thisTransmission
and the decoratedTransmission
.aAcknowledgeMagicBytes
- The ACK character(s) to be used by the return channel to transmit an ACK (acknowledge) response after successful receiving a transmission.aAckRetryNumber
- The number of retries waiting for an ACK from the return channel.aAckTimeoutInMs
- The timeout in milliseconds to pend till the next retry.aCrcAlgorithm
- TheCrcAlgorithm
to be used for CRC checksum calculation.aCrcChecksumConcatenateMode
- The mode of concatenation to use when concatenating the CRC checksum with the transmission'sSequence
.aEndianess
- TheEndianess
to use for integer (double) numbers and the like.- Returns:
- The accordingly created
StopAndWaitSegmentDecorator
.
-
stopAndWaitSegment
public static <DECORATEE extends Segment> StopAndWaitSegmentDecorator<DECORATEE> stopAndWaitSegment(DECORATEE aDecoratee, org.refcodes.mixin.ConcatenateMode aSequenceNumberConcatenateMode, byte[] aAcknowledgeMagicBytes, int aAckRetryNumber, long aAckTimeoutInMs, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.numerical.Endianess aEndianess) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- TheSegment
type describing theSegment
subclass decoratee.- Parameters:
aDecoratee
- The decoratee to be wrapped by the stop-and-wait decorator.aSequenceNumberConcatenateMode
- The mode of concatenation to use when creating aSequence
from thisTransmission
and the decoratedTransmission
.aAcknowledgeMagicBytes
- The ACK character(s) to be used by the return channel to transmit an ACK (acknowledge) response after successful receiving a transmission.aAckRetryNumber
- The number of retries waiting for an ACK from the return channel.aAckTimeoutInMs
- The timeout in milliseconds to pend till the next retry.aCrcAlgorithm
- TheCrcAlgorithm
to be used for CRC checksum calculation.aEndianess
- TheEndianess
to use for integer (double) numbers and the like.- Returns:
- The accordingly created
StopAndWaitSegmentDecorator
.
-
stopAndWaitSegment
public static <DECORATEE extends Segment> StopAndWaitSegmentDecorator<DECORATEE> stopAndWaitSegment(DECORATEE aDecoratee, org.refcodes.mixin.ConcatenateMode aSequenceNumberConcatenateMode, byte[] aAcknowledgeMagicBytes, int aAckRetryNumber, long aAckTimeoutInMs, org.refcodes.numerical.Endianess aEndianess) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- TheSegment
type describing theSegment
subclass decoratee.- Parameters:
aDecoratee
- The decoratee to be wrapped by the stop-and-wait decorator.aSequenceNumberConcatenateMode
- The mode of concatenation to use when creating aSequence
from thisTransmission
and the decoratedTransmission
.aAcknowledgeMagicBytes
- The ACK character(s) to be used by the return channel to transmit an ACK (acknowledge) response after successful receiving a transmission.aAckRetryNumber
- The number of retries waiting for an ACK from the return channel.aAckTimeoutInMs
- The timeout in milliseconds to pend till the next retry.aEndianess
- TheEndianess
to use for integer (double) numbers and the like.- Returns:
- The accordingly created
StopAndWaitSegmentDecorator
.
-
stopAndWaitSegment
public static <DECORATEE extends Segment> StopAndWaitSegmentDecorator<DECORATEE> stopAndWaitSegment(DECORATEE aDecoratee, org.refcodes.mixin.ConcatenateMode aSequenceNumberConcatenateMode, byte[] aAcknowledgeMagicBytes, int aAckRetryNumber, long aAckTimeoutInMs, SegmentPackager aAckSegmentPackager, org.refcodes.numerical.Endianess aEndianess) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- TheSegment
type describing theSegment
subclass decoratee.- Parameters:
aDecoratee
- The decoratee to be wrapped by the stop-and-wait decorator.aSequenceNumberConcatenateMode
- The mode of concatenation to use when creating aSequence
from thisTransmission
and the decoratedTransmission
.aAcknowledgeMagicBytes
- The ACK character(s) to be used by the return channel to transmit an ACK (acknowledge) response after successful receiving a transmission.aAckRetryNumber
- The number of retries waiting for an ACK from the return channel.aAckTimeoutInMs
- The timeout in milliseconds to pend till the next retry.aAckSegmentPackager
- the ack segment packageraEndianess
- TheEndianess
to use for integer (double) numbers and the like.- Returns:
- The accordingly created
StopAndWaitSegmentDecorator
.
-
stopAndWaitSegment
public static <DECORATEE extends Segment> StopAndWaitSegmentDecorator<DECORATEE> stopAndWaitSegment(DECORATEE aDecoratee, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- TheSegment
type describing theSegment
subclass decoratee.- Parameters:
aDecoratee
- The decoratee to be wrapped by the stop-and-wait decorator.aCrcAlgorithm
- TheCrcAlgorithm
to be used for CRC checksum calculation.- Returns:
- The accordingly created
StopAndWaitSegmentDecorator
.
-
stopAndWaitSegment
public static <DECORATEE extends Segment> StopAndWaitSegmentDecorator<DECORATEE> stopAndWaitSegment(DECORATEE aDecoratee, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.mixin.ConcatenateMode aCrcChecksumConcatenateMode) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- TheSegment
type describing theSegment
subclass decoratee.- Parameters:
aDecoratee
- The decoratee to be wrapped by the stop-and-wait decorator.aCrcAlgorithm
- TheCrcAlgorithm
to be used for CRC checksum calculation.aCrcChecksumConcatenateMode
- The mode of concatenation to use when concatenating the CRC checksum with the transmission'sSequence
.- Returns:
- The accordingly created
StopAndWaitSegmentDecorator
.
-
stopAndWaitSegment
public static <DECORATEE extends Segment> StopAndWaitSegmentDecorator<DECORATEE> stopAndWaitSegment(DECORATEE aDecoratee, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.mixin.ConcatenateMode aCrcChecksumConcatenateMode, org.refcodes.numerical.ChecksumValidationMode aChecksumValidationMode) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- TheSegment
type describing theSegment
subclass decoratee.- Parameters:
aDecoratee
- The decoratee to be wrapped by the stop-and-wait decorator.aCrcAlgorithm
- TheCrcAlgorithm
to be used for CRC checksum calculation.aCrcChecksumConcatenateMode
- The mode of concatenation to use when concatenating the CRC checksum with the transmission'sSequence
.aChecksumValidationMode
- The mode of operation when validating provided CRC checksums against calculated ones.- Returns:
- The accordingly created
StopAndWaitSegmentDecorator
.
-
stopAndWaitSegment
public static <DECORATEE extends Segment> StopAndWaitSegmentDecorator<DECORATEE> stopAndWaitSegment(DECORATEE aDecoratee, int aSequenceNumberInitValue, int aSequenceNumberWidth, org.refcodes.mixin.ConcatenateMode aSequenceNumberConcatenateMode, byte[] aAcknowledgeMagicBytes, int aAckRetryNumber, long aAckTimeoutInMs, org.refcodes.mixin.ConcatenateMode aCrcChecksumConcatenateMode, org.refcodes.numerical.Endianess aEndianess) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- TheSegment
type describing theSegment
subclass decoratee.- Parameters:
aDecoratee
- The decoratee to be wrapped by the stop-and-wait decorator.aSequenceNumberInitValue
- The initial sequence number from where to start counting the blocks.aSequenceNumberWidth
- The width (in bytes) to be used for sequence number values.aSequenceNumberConcatenateMode
- The mode of concatenation to use when creating aSequence
from thisTransmission
and the decoratedTransmission
.aAcknowledgeMagicBytes
- The ACK character(s) to be used by the return channel to transmit an ACK (acknowledge) response after successful receiving a transmission.aAckRetryNumber
- The number of retries waiting for an ACK from the return channel.aAckTimeoutInMs
- The timeout in milliseconds to pend till the next retry.aCrcChecksumConcatenateMode
- The mode of concatenation to use when concatenating the CRC checksum with the transmission'sSequence
.aEndianess
- TheEndianess
to use for integer (double) numbers and the like.- Returns:
- The accordingly created
StopAndWaitSegmentDecorator
.
-
stopAndWaitSegment
public static <DECORATEE extends Segment> StopAndWaitSegmentDecorator<DECORATEE> stopAndWaitSegment(DECORATEE aDecoratee, int aSequenceNumberInitValue, int aSequenceNumberWidth, org.refcodes.mixin.ConcatenateMode aSequenceNumberConcatenateMode, byte[] aAcknowledgeMagicBytes, int aAckRetryNumber, long aAckTimeoutInMs, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.mixin.ConcatenateMode aCrcChecksumConcatenateMode, org.refcodes.numerical.ChecksumValidationMode aChecksumValidationMode, org.refcodes.numerical.Endianess aEndianess) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- TheSegment
type describing theSegment
subclass decoratee.- Parameters:
aDecoratee
- The decoratee to be wrapped by the stop-and-wait decorator.aSequenceNumberInitValue
- The initial sequence number from where to start counting the blocks.aSequenceNumberWidth
- The width (in bytes) to be used for sequence number values.aSequenceNumberConcatenateMode
- The mode of concatenation to use when creating aSequence
from thisTransmission
and the decoratedTransmission
.aAcknowledgeMagicBytes
- The ACK character(s) to be used by the return channel to transmit an ACK (acknowledge) response after successful receiving a transmission.aAckRetryNumber
- The number of retries waiting for an ACK from the return channel.aAckTimeoutInMs
- The timeout in milliseconds to pend till the next retry.aCrcAlgorithm
- TheCrcAlgorithm
to be used for CRC checksum calculation.aCrcChecksumConcatenateMode
- The mode of concatenation to use when concatenating the CRC checksum with the transmission'sSequence
.aChecksumValidationMode
- The mode of operation when validating provided CRC checksums against calculated ones.aEndianess
- TheEndianess
to use for integer (double) numbers and the like.- Returns:
- The accordingly created
StopAndWaitSegmentDecorator
.
-
stopAndWaitSegment
public static <DECORATEE extends Segment> StopAndWaitSegmentDecorator<DECORATEE> stopAndWaitSegment(DECORATEE aDecoratee, int aSequenceNumberInitValue, int aSequenceNumberWidth, org.refcodes.mixin.ConcatenateMode aSequenceNumberConcatenateMode, byte[] aAcknowledgeMagicBytes, int aAckRetryNumber, long aAckTimeoutInMs, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.mixin.ConcatenateMode aCrcChecksumConcatenateMode, org.refcodes.numerical.Endianess aEndianess) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- TheSegment
type describing theSegment
subclass decoratee.- Parameters:
aDecoratee
- The decoratee to be wrapped by the stop-and-wait decorator.aSequenceNumberInitValue
- The initial sequence number from where to start counting the blocks.aSequenceNumberWidth
- The width (in bytes) to be used for sequence number values.aSequenceNumberConcatenateMode
- The mode of concatenation to use when creating aSequence
from thisTransmission
and the decoratedTransmission
.aAcknowledgeMagicBytes
- The ACK character(s) to be used by the return channel to transmit an ACK (acknowledge) response after successful receiving a transmission.aAckRetryNumber
- The number of retries waiting for an ACK from the return channel.aAckTimeoutInMs
- The timeout in milliseconds to pend till the next retry.aCrcAlgorithm
- TheCrcAlgorithm
to be used for CRC checksum calculation.aCrcChecksumConcatenateMode
- The mode of concatenation to use when concatenating the CRC checksum with the transmission'sSequence
.aEndianess
- TheEndianess
to use for integer (double) numbers and the like.- Returns:
- The accordingly created
StopAndWaitSegmentDecorator
.
-
stopAndWaitSegment
public static <DECORATEE extends Segment> StopAndWaitSegmentDecorator<DECORATEE> stopAndWaitSegment(DECORATEE aDecoratee, int aSequenceNumberInitValue, int aSequenceNumberWidth, org.refcodes.mixin.ConcatenateMode aSequenceNumberConcatenateMode, byte[] aAcknowledgeMagicBytes, int aAckRetryNumber, long aAckTimeoutInMs, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.numerical.Endianess aEndianess) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- TheSegment
type describing theSegment
subclass decoratee.- Parameters:
aDecoratee
- The decoratee to be wrapped by the stop-and-wait decorator.aSequenceNumberInitValue
- The initial sequence number from where to start counting the blocks.aSequenceNumberWidth
- The width (in bytes) to be used for sequence number values.aSequenceNumberConcatenateMode
- The mode of concatenation to use when creating aSequence
from thisTransmission
and the decoratedTransmission
.aAcknowledgeMagicBytes
- The ACK character(s) to be used by the return channel to transmit an ACK (acknowledge) response after successful receiving a transmission.aAckRetryNumber
- The number of retries waiting for an ACK from the return channel.aAckTimeoutInMs
- The timeout in milliseconds to pend till the next retry.aCrcAlgorithm
- TheCrcAlgorithm
to be used for CRC checksum calculation.aEndianess
- TheEndianess
to use for integer (double) numbers and the like.- Returns:
- The accordingly created
StopAndWaitSegmentDecorator
.
-
stopAndWaitSegment
public static <DECORATEE extends Segment> StopAndWaitSegmentDecorator<DECORATEE> stopAndWaitSegment(DECORATEE aDecoratee, int aSequenceNumberInitValue, int aSequenceNumberWidth, org.refcodes.mixin.ConcatenateMode aSequenceNumberConcatenateMode, byte[] aAcknowledgeMagicBytes, int aAckRetryNumber, long aAckTimeoutInMs, org.refcodes.numerical.Endianess aEndianess) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- TheSegment
type describing theSegment
subclass decoratee.- Parameters:
aDecoratee
- The decoratee to be wrapped by the stop-and-wait decorator.aSequenceNumberInitValue
- The initial sequence number from where to start counting the blocks.aSequenceNumberWidth
- The width (in bytes) to be used for sequence number values.aSequenceNumberConcatenateMode
- The mode of concatenation to use when creating aSequence
from thisTransmission
and the decoratedTransmission
.aAcknowledgeMagicBytes
- The ACK character(s) to be used by the return channel to transmit an ACK (acknowledge) response after successful receiving a transmission.aAckRetryNumber
- The number of retries waiting for an ACK from the return channel.aAckTimeoutInMs
- The timeout in milliseconds to pend till the next retry.aEndianess
- TheEndianess
to use for integer (double) numbers and the like.- Returns:
- The accordingly created
StopAndWaitSegmentDecorator
.
-
stopAndWaitSegment
public static <DECORATEE extends Segment> StopAndWaitSegmentDecorator<DECORATEE> stopAndWaitSegment(DECORATEE aDecoratee, int aSequenceNumberInitValue, int aSequenceNumberWidth, org.refcodes.mixin.ConcatenateMode aSequenceNumberConcatenateMode, byte[] aAcknowledgeMagicBytes, int aAckRetryNumber, long aAckTimeoutInMs, SegmentPackager aAckSegmentPackager, org.refcodes.numerical.Endianess aEndianess) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- TheSegment
type describing theSegment
subclass decoratee.- Parameters:
aDecoratee
- The decoratee to be wrapped by the stop-and-wait decorator.aSequenceNumberInitValue
- The initial sequence number from where to start counting the blocks.aSequenceNumberWidth
- The width (in bytes) to be used for sequence number values.aSequenceNumberConcatenateMode
- The mode of concatenation to use when creating aSequence
from thisTransmission
and the decoratedTransmission
.aAcknowledgeMagicBytes
- The ACK character(s) to be used by the return channel to transmit an ACK (acknowledge) response after successful receiving a transmission.aAckRetryNumber
- The number of retries waiting for an ACK from the return channel.aAckTimeoutInMs
- The timeout in milliseconds to pend till the next retry.aAckSegmentPackager
- the ack segment packageraEndianess
- TheEndianess
to use for integer (double) numbers and the like.- Returns:
- The accordingly created
StopAndWaitSegmentDecorator
.
-
stopAndWaitSegment
public static <DECORATEE extends Segment> StopAndWaitSegmentDecorator<DECORATEE> stopAndWaitSegment(DECORATEE aDecoratee, SegmentPackager aAckSegmentPackager) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.- Type Parameters:
DECORATEE
- TheSegment
type describing theSegment
subclass decoratee.- Parameters:
aDecoratee
- The decoratee to be wrapped by the stop-and-wait decorator.aAckSegmentPackager
- the ack segment packager- Returns:
- The accordingly created
StopAndWaitSegmentDecorator
.
-
stopAndWaitSegment
public static <DECORATEE extends Segment> StopAndWaitSegmentDecorator<DECORATEE> stopAndWaitSegment(DECORATEE aDecoratee, TransmissionMetrics aTransmissionMetrics) Constructs an according stop-and-wait decorator instance wrapping the given decoratee. The configuration attributes are taken from theTransmissionMetrics
configuration object, though only those attributes are supported which are also supported by the other constructors!- Type Parameters:
DECORATEE
- TheSegment
type describing theSegment
subclass decoratee.- Parameters:
aDecoratee
- The decoratee to be wrapped by the stop-and-wait decorator.aTransmissionMetrics
- TheTransmissionMetrics
to be used for configuring this instance.- Returns:
- The accordingly created
StopAndWaitSegmentDecorator
.
-
stopAndWaitSegmentBuilder
public static <DECORATEE extends Segment> StopAndWaitSegmentDecorator.Builder<DECORATEE> stopAndWaitSegmentBuilder()Constructs a builder to build an accordingStopAndWaitSegmentDecorator
instance.- Type Parameters:
DECORATEE
- The decoratee type describing the according subclass to be enriched.- Returns:
- The
StopAndWaitSegmentDecorator.Builder
to build aStopAndWaitSegmentDecorator
. The accordingly createdStopAndWaitSegmentDecorator
.
-
stringArraySection
Constructs an emptyStringArraySection
using theTransmissionMetrics.DEFAULT_LENGTH_WIDTH
, theTransmissionMetrics.DEFAULT_ENDIANESS
as well as theTransmissionMetrics.DEFAULT_ENCODING
.- Returns:
- The accordingly created
StringArraySection
.
-
stringArraySection
Constructs aStringArraySection
containing the provided payload and using theTransmissionMetrics.DEFAULT_LENGTH_WIDTH
, as well as theTransmissionMetrics.DEFAULT_ENDIANESS
.- Parameters:
aCharset
- TheCharset
to use when encoding or decoding theString
instances.aValue
- TheString
elements being contained in this instance.- Returns:
- The accordingly created
StringArraySection
.
-
stringArraySection
public static StringArraySection stringArraySection(int aLengthWidth, org.refcodes.numerical.Endianess aEndianess, Charset aCharset, String... aValue) Constructs aStringArraySection
using containing the providedStringSection
elements and using the providedSegment
class for creatingSegment
instances.- Parameters:
aLengthWidth
- The width (in bytes) to be used for size values.aEndianess
- TheEndianess
to be used for size values.aCharset
- TheCharset
to use when encoding or decoding theString
instances.aValue
- TheString
elements being contained in this instance.- Returns:
- The accordingly created
StringArraySection
.
-
stringArraySection
Constructs aStringArraySection
containing the provided payload and using theTransmissionMetrics.DEFAULT_LENGTH_WIDTH
, theTransmissionMetrics.DEFAULT_ENDIANESS
as well as theTransmissionMetrics.DEFAULT_ENCODING
.- Parameters:
aValue
- TheString
elements being contained in this instance.- Returns:
- The accordingly created
StringArraySection
.
-
stringArraySection
Constructs an emptyStringArraySection
using theTransmissionMetrics.DEFAULT_LENGTH_WIDTH
, theTransmissionMetrics.DEFAULT_ENDIANESS
as well as theTransmissionMetrics.DEFAULT_ENCODING
.- Parameters:
aAlias
- The alias which identifies the content of this segment.- Returns:
- The accordingly created
StringArraySection
.
-
stringArraySection
public static StringArraySection stringArraySection(String aAlias, Charset aCharset, String... aValue) Constructs aStringArraySection
containing the provided payload and using theTransmissionMetrics.DEFAULT_LENGTH_WIDTH
, as well as theTransmissionMetrics.DEFAULT_ENDIANESS
.- Parameters:
aAlias
- The alias which identifies the content of this segment.aCharset
- TheCharset
to use when encoding or decoding theString
instances.aValue
- TheString
elements being contained in this instance.- Returns:
- The accordingly created
StringArraySection
.
-
stringArraySection
public static StringArraySection stringArraySection(String aAlias, int aLengthWidth, org.refcodes.numerical.Endianess aEndianess, Charset aCharset, String... aValue) Constructs aStringArraySection
using containing the providedStringSection
elements and using the providedSegment
class for creatingSegment
instances.- Parameters:
aAlias
- The alias which identifies the content of this segment.aLengthWidth
- The width (in bytes) to be used for size values.aEndianess
- TheEndianess
to be used for size values.aCharset
- TheCharset
to use when encoding or decoding theString
instances.aValue
- TheString
elements being contained in this instance.- Returns:
- The accordingly created
StringArraySection
.
-
stringArraySection
Constructs aStringArraySection
containing the provided payload and using theTransmissionMetrics.DEFAULT_LENGTH_WIDTH
, theTransmissionMetrics.DEFAULT_ENDIANESS
as well as theTransmissionMetrics.DEFAULT_ENCODING
.- Parameters:
aAlias
- The alias which identifies the content of this segment.aValue
- TheString
elements being contained in this instance.- Returns:
- The accordingly created
StringArraySection
.
-
stringArraySection
public static StringArraySection stringArraySection(String aAlias, TransmissionMetrics aTransmissionMetrics) Constructs an according instance from the given configuration. The configuration attributes are taken from theTransmissionMetrics
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
- TheTransmissionMetrics
to be used for configuring this instance.- Returns:
- The accordingly created
StringArraySection
.
-
stringArraySection
public static StringArraySection stringArraySection(String aAlias, TransmissionMetrics aTransmissionMetrics, String... aValue) Constructs an according instance from the given configuration. The configuration attributes are taken from theTransmissionMetrics
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
- TheTransmissionMetrics
to be used for configuring this instance.aValue
- The payload to be contained by theStringArraySection
.- Returns:
- The accordingly created
StringArraySection
.
-
stringArraySection
Constructs an according instance from the given configuration. The configuration attributes are taken from theTransmissionMetrics
configuration object, though only those attributes are supported which are also supported by the other constructors!- Parameters:
aTransmissionMetrics
- TheTransmissionMetrics
to be used for configuring this instance.- Returns:
- The accordingly created
StringArraySection
.
-
stringArraySection
public static StringArraySection stringArraySection(TransmissionMetrics aTransmissionMetrics, String... aValue) Constructs an according instance from the given configuration. The configuration attributes are taken from theTransmissionMetrics
configuration object, though only those attributes are supported which are also supported by the other constructors!- Parameters:
aTransmissionMetrics
- TheTransmissionMetrics
to be used for configuring this instance.aValue
- The payload to be contained by theStringArraySection
.- Returns:
- The accordingly created
StringArraySection
.
-
stringSection
Constructs an emptyStringSection
using theTransmissionMetrics.DEFAULT_ENCODING
encoding for the payload.- Returns:
- The accordingly created
StringSection
.
-
stringSection
Constructs aStringSection
with a payload expected to be encoded with the givenCharset
.- Parameters:
aCharset
- TheCharset
to be used for encoding and decodingString
instances.- Returns:
- The accordingly created
StringSection
.
-
stringSection
Constructs aStringSection
with the givenString
payload being encoded with theTransmissionMetrics.DEFAULT_ENCODING
.- Parameters:
aValue
- The payload to be contained by thisStringSection
.- Returns:
- The accordingly created
StringSection
.
-
stringSection
- Parameters:
aValue
- The payload to be contained by thisStringSection
.aCharset
- TheCharset
to be used for encoding theString
.- Returns:
- The accordingly created
StringSection
.
-
stringSection
Constructs aStringSection
with the givenString
payload being encoded with theTransmissionMetrics.DEFAULT_ENCODING
.- Parameters:
aAlias
- The alias which identifies the content of this segment.aValue
- The payload to be contained by thisStringSection
.- Returns:
- The accordingly created
StringSection
.
-
stringSection
- Parameters:
aAlias
- The alias which identifies the content of this segment.aValue
- The payload to be contained by thisStringSection
.aCharset
- TheCharset
to be used for encoding theString
.- Returns:
- The accordingly created
StringSection
.
-
stringSection
public static StringSection stringSection(String aAlias, String aValue, TransmissionMetrics aTransmissionMetrics) Constructs an according instance from the given configuration. The configuration attributes are taken from theTransmissionMetrics
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 theStringSection
.aTransmissionMetrics
- TheTransmissionMetrics
to be used for configuring this instance.- Returns:
- The accordingly created
StringSection
.
-
stringSection
Constructs an according instance from the given configuration. The configuration attributes are taken from theTransmissionMetrics
configuration object, though only those attributes are supported which are also supported by the other constructors!- Parameters:
aValue
- The payload to be contained by theStringSection
.aTransmissionMetrics
- TheTransmissionMetrics
to be used for configuring this instance.- Returns:
- The accordingly created
StringSection
.
-
stringSection
Constructs an according instance from the given configuration. The configuration attributes are taken from theTransmissionMetrics
configuration object, though only those attributes are supported which are also supported by the other constructors!- Parameters:
aTransmissionMetrics
- TheTransmissionMetrics
to be used for configuring this instance.- Returns:
- The accordingly created
StringSection
.
-
stringSegment
Constructs aStringSegment
.- Returns:
- The accordingly created
StringSegment
.
-
stringSegment
Constructs aStringSegment
with a payload expected to be encoded with the givenCharset
.- Parameters:
aEncoding
- TheCharset
to be used for encoding and decodingString
instances.- Returns:
- The accordingly created
StringSegment
.
-
stringSegment
public static StringSegment stringSegment(Charset aEncoding, org.refcodes.numerical.Endianess aEndianess) Constructs aStringSegment
with a payload expected to be encoded with the givenCharset
.- Parameters:
aEncoding
- TheCharset
to be used for encoding and decodingString
instances.aEndianess
- TheEndianess
to be used for length values.- Returns:
- The accordingly created
StringSegment
.
-
stringSegment
Constructs aStringSegment
with a payload expected to be encoded with the givenCharset
.- Parameters:
aEncoding
- TheCharset
to be used for encoding and decodingString
instances.aLengthWidth
- The width (in bytes) to be used for length values.- Returns:
- The accordingly created
StringSegment
.
-
stringSegment
public static StringSegment stringSegment(Charset aEncoding, int aLengthWidth, org.refcodes.numerical.Endianess aEndianess) Constructs aStringSegment
with a payload expected to be encoded with the givenCharset
.- Parameters:
aEncoding
- TheCharset
to be used for encoding and decodingString
instances.aLengthWidth
- The width (in bytes) to be used for length values.aEndianess
- TheEndianess
to be used for length values.- Returns:
- The accordingly created
StringSegment
.
-
stringSegment
Constructs an empty allocation value with a width ofTransmissionMetrics.DEFAULT_LENGTH_WIDTH
bytes used to specify the decoratee's length and the providedEndianess
representation of the decoratee's length.- Parameters:
aEndianess
- TheEndianess
to be used for length values.- Returns:
- The accordingly created
StringSegment
.
-
stringSegment
Constructs an empty allocation value with the given number of bytes used to specify the decoratee's length and aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of the decoratee's length.- Parameters:
aLengthWidth
- The width (in bytes) to be used for length values.- Returns:
- The accordingly created
StringSegment
.
-
stringSegment
public static StringSegment stringSegment(int aLengthWidth, org.refcodes.numerical.Endianess aEndianess) Constructs an empty allocation value with the given number of bytes used to specify the decoratee's length and the providedEndianess
representation of the decoratee's length.- Parameters:
aLengthWidth
- The width (in bytes) to be used for length values.aEndianess
- TheEndianess
to be used for length values.- Returns:
- The accordingly created
StringSegment
.
-
stringSegment
Constructs aStringSegment
with the givenString
payload being encoded with theTransmissionMetrics.DEFAULT_ENCODING
.- Parameters:
aValue
- The payload to be contained by thisStringSegment
.- Returns:
- The accordingly created
StringSegment
.
-
stringSegment
- Parameters:
aValue
- The payload to be contained by thisStringSegment
.aEncoding
- TheCharset
to be used for encoding theString
.- Returns:
- The accordingly created
StringSegment
.
-
stringSegment
public static StringSegment stringSegment(String aValue, Charset aEncoding, org.refcodes.numerical.Endianess aEndianess) - Parameters:
aValue
- The payload to be contained by thisStringSegment
.aEncoding
- TheCharset
to be used for encoding theString
.aEndianess
- TheEndianess
to be used for length values.- Returns:
- The accordingly created
StringSegment
.
-
stringSegment
- Parameters:
aValue
- The payload to be contained by thisStringSegment
.aEncoding
- TheCharset
to be used for encoding theString
.aLengthWidth
- The width (in bytes) to be used for length values.- Returns:
- The accordingly created
StringSegment
.
-
stringSegment
public static StringSegment stringSegment(String aValue, Charset aEncoding, int aLengthWidth, org.refcodes.numerical.Endianess aEndianess) - Parameters:
aValue
- The payload to be contained by thisStringSegment
.aEncoding
- TheCharset
to be used for encoding theString
.aLengthWidth
- The width (in bytes) to be used for length values.aEndianess
- TheEndianess
to be used for length values.- Returns:
- The accordingly created
StringSegment
.
-
stringSegment
public static StringSegment stringSegment(String aValue, org.refcodes.numerical.Endianess aEndianess) Constructs aStringSegment
with the givenString
payload being encoded with theTransmissionMetrics.DEFAULT_ENCODING
.- Parameters:
aValue
- The payload to be contained by thisStringSegment
.aEndianess
- TheEndianess
to be used for length values.- Returns:
- The accordingly created
StringSegment
.
-
stringSegment
Constructs aStringSegment
with the givenString
payload* being encoded with theTransmissionMetrics.DEFAULT_ENCODING
.**- Parameters:
aValue
- The payload to be contained by thisStringSegment
.aLengthWidth
- The width (in bytes) to be used for length values.- Returns:
- The accordingly created
StringSegment
.
-
stringSegment
public static StringSegment stringSegment(String aValue, int aLengthWidth, org.refcodes.numerical.Endianess aEndianess) Constructs aStringSegment
with the givenString
payload being encoded with theTransmissionMetrics.DEFAULT_ENCODING
.- Parameters:
aValue
- The payload to be contained by thisStringSegment
.aLengthWidth
- The width (in bytes) to be used for length values.aEndianess
- TheEndianess
to be used for length values.- Returns:
- The accordingly created
StringSegment
.
-
stringSegment
Constructs aStringSegment
with the givenString
payload being encoded with theTransmissionMetrics.DEFAULT_ENCODING
.- Parameters:
aAlias
- The alias which identifies the content of this segment.aValue
- The payload to be contained by thisStringSegment
.- Returns:
- The accordingly created
StringSegment
.
-
stringSegment
- Parameters:
aAlias
- The alias which identifies the content of this segment.aValue
- The payload to be contained by thisStringSegment
.aEncoding
- TheCharset
to be used for encoding theString
.- Returns:
- The accordingly created
StringSegment
.
-
stringSegment
public static StringSegment stringSegment(String aAlias, String aValue, Charset aEncoding, org.refcodes.numerical.Endianess aEndianess) - Parameters:
aAlias
- The alias which identifies the content of this segment.aValue
- The payload to be contained by thisStringSegment
.aEncoding
- TheCharset
to be used for encoding theString
.aEndianess
- TheEndianess
to be used for length values.- Returns:
- The accordingly created
StringSegment
.
-
stringSegment
public static StringSegment stringSegment(String aAlias, String aValue, Charset aEncoding, int aLengthWidth) - Parameters:
aAlias
- The alias which identifies the content of this segment.aValue
- The payload to be contained by thisStringSegment
.aEncoding
- TheCharset
to be used for encoding theString
.aLengthWidth
- The width (in bytes) to be used for length values.- Returns:
- The accordingly created
StringSegment
.
-
stringSegment
public static StringSegment stringSegment(String aAlias, String aValue, Charset aEncoding, int aLengthWidth, org.refcodes.numerical.Endianess aEndianess) - Parameters:
aAlias
- The alias which identifies the content of this segment.aValue
- The payload to be contained by thisStringSegment
.aEncoding
- TheCharset
to be used for encoding theString
.aLengthWidth
- The width (in bytes) to be used for length values.aEndianess
- TheEndianess
to be used for length values.- Returns:
- The accordingly created
StringSegment
.
-
stringSegment
public static StringSegment stringSegment(String aAlias, String aValue, org.refcodes.numerical.Endianess aEndianess) Constructs aStringSegment
with the givenString
payload being encoded with theTransmissionMetrics.DEFAULT_ENCODING
.- Parameters:
aAlias
- The alias which identifies the content of this segment.aValue
- The payload to be contained by thisStringSegment
.aEndianess
- TheEndianess
to be used for length values.- Returns:
- The accordingly created
StringSegment
.
-
stringSegment
Constructs aStringSegment
with the givenString
payload being encoded with theTransmissionMetrics.DEFAULT_ENCODING
.- Parameters:
aAlias
- The alias which identifies the content of this segment.aValue
- The payload to be contained by thisStringSegment
.aLengthWidth
- The width (in bytes) to be used for length values.- Returns:
- The accordingly created
StringSegment
.
-
stringSegment
public static StringSegment stringSegment(String aAlias, String aValue, int aLengthWidth, org.refcodes.numerical.Endianess aEndianess) Constructs aStringSegment
with the givenString
payload being encoded with theTransmissionMetrics.DEFAULT_ENCODING
.- Parameters:
aAlias
- The alias which identifies the content of this segment.aValue
- The payload to be contained by thisStringSegment
.aLengthWidth
- The width (in bytes) to be used for length values.aEndianess
- TheEndianess
to be used for length values.- Returns:
- The accordingly created
StringSegment
.
-
stringSegment
public static StringSegment stringSegment(String aAlias, String aValue, TransmissionMetrics aTransmissionMetrics) Constructs an according instance from the given configuration. The configuration attributes are taken from theTransmissionMetrics
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 theStringSegment
.aTransmissionMetrics
- TheTransmissionMetrics
to be used for configuring this instance.- Returns:
- The accordingly created
StringSegment
.
-
stringSegment
Constructs an according instance from the given configuration. The configuration attributes are taken from theTransmissionMetrics
configuration object, though only those attributes are supported which are also supported by the other constructors!- Parameters:
aValue
- The payload to be contained by theStringSegment
.aTransmissionMetrics
- TheTransmissionMetrics
to be used for configuring this instance.- Returns:
- The accordingly created
StringSegment
.
-
stringSegment
Constructs an according instance from the given configuration. The configuration attributes are taken from theTransmissionMetrics
configuration object, though only those attributes are supported which are also supported by the other constructors!- Parameters:
aTransmissionMetrics
- TheTransmissionMetrics
to be used for configuring this instance.- Returns:
- The accordingly created
StringSegment
.
-
stringSegmentBuilder
Constructs a builder to build an accordingStringSegment
instance.- Returns:
- The accordingly created
StringSegment.Builder
.
-