public final class SearchTimeoutMessage extends AntMessageFromHost
Modifier and Type | Field and Description |
---|---|
static int |
OFFSET_SEARCH_TIMEOUT
The message content offset to the search timeout
|
static int |
SIZE_SEARCH_TIMEOUT
The number of bytes to be used for the search timeout
|
BITMASK_CHANNEL_NUMBER, FILLER_BYTE, OFFSET_CHANNEL_NUMBER, RAW_OFFSET_MESSAGE_CONTENT_START, RAW_OFFSET_MESSAGE_ID, RAW_OFFSET_MESSAGE_SIZE, SIZE_CHANNEL_NUMBER, SIZE_FILLER_BYTE
Constructor and Description |
---|
SearchTimeoutMessage(HighPrioritySearchTimeout searchTimeout)
Constructs the message from the given high priority search timeout value.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getMessageContent(int channelNumber,
int networkNumber)
The content of the message with specified channel number and network number set if required.
|
MessageFromHostType |
getMessageType()
The unique type of this message based on its message id, contents, and intended channel
type.
|
int |
getRawSearchTimeout()
Returns the raw search timeout value.
|
java.lang.String |
toString() |
createAntMessage, getMessageContent, getMessageContent, getMessageId, getRawMessage
equals, getMessageContentString, getMessageIdString, hashCode, maskChannelNumber
public static final int OFFSET_SEARCH_TIMEOUT
public static final int SIZE_SEARCH_TIMEOUT
public SearchTimeoutMessage(HighPrioritySearchTimeout searchTimeout)
searchTimeout
- The search timeout the channel will use.public int getRawSearchTimeout()
HighPrioritySearchTimeout
public byte[] getMessageContent(int channelNumber, int networkNumber)
AntMessageFromHost
getMessageContent
in class AntMessageFromHost
channelNumber
- Written to the channel number byte if requirednetworkNumber
- Written to the network number byte if requiredpublic MessageFromHostType getMessageType()
AntMessageFromHost
It is recommended to use this rather than the raw message ID.
getMessageType
in class AntMessageFromHost
public java.lang.String toString()
toString
in class AntMessageFromHost
Copyright © 2015 Dynastream Innovations Inc. All Rights Reserved.