Builder

class Builder(messageBinaryFormat: AdasisMessageBinaryFormat)

Builder for AdasisDataSendingConfig.

Parameters

messageBinaryFormat

Binary format in which ADASIS message will be sent

Constructors

Link copied to clipboard
fun Builder(messageBinaryFormat: AdasisMessageBinaryFormat)

Functions

Link copied to clipboard
fun build(): AdasisDataSendingConfig
Link copied to clipboard
fun enableRetransmission(enableRetransmission: Boolean): AdasisDataSendingConfig.Builder

If true, retransmission will be enabled. (package will be appended with retransmission data, messages from previous cycles)

Link copied to clipboard
fun messageIntervalMs(messageIntervalMs: Int): AdasisDataSendingConfig.Builder

Interval between sending messages in milliseconds

Link copied to clipboard
fun messagesInPackage(messagesInPackage: Int): AdasisDataSendingConfig.Builder

Number of messages in one package (one message is 8 bytes)

Link copied to clipboard
fun metadataCycleSeconds(metadataCycleSeconds: Int): AdasisDataSendingConfig.Builder

Time in seconds between repetition of META-DATA message

Link copied to clipboard
fun retransmissionMeters(retransmissionMeters: Int): AdasisDataSendingConfig.Builder

After passing this distance, messages will not be retransmitted

Link copied to clipboard
fun treeTrailingLength(treeTrailingLength: Int): AdasisDataSendingConfig.Builder

The trailing length of the path tree, relative to the map-matched position, in the ADASIS provider