public final class ConfigIdListMessage extends AntMessageFromHost
| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_LIST_SIZE
The maximum list size accepted by ANT
|
static int |
MIN_LIST_SIZE
The minimum list size accepted by ANT
|
static int |
OFFSET_EXCLUDE
The message content offset to the exclude flag value
|
static int |
OFFSET_LIST_SIZE
The message content offset to the list size value
|
static int |
SIZE_EXCLUDE
The number of bytes used for exclude flag value
|
static int |
SIZE_LIST_SIZE
The number of bytes used for the list size value
|
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 |
|---|
ConfigIdListMessage(int listSize,
boolean exclude)
Constructs the message from the given list size and exlude flag.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
getExclude()
Checks if the list is an exclusion or inclusion list.
|
int |
getListSize()
Gets the size of the list.
|
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.
|
java.lang.String |
toString() |
createAntMessage, getMessageContent, getMessageContent, getMessageId, getRawMessageequals, getMessageContentString, getMessageIdString, hashCode, maskChannelNumberpublic static final int SIZE_LIST_SIZE
public static final int SIZE_EXCLUDE
public static final int OFFSET_LIST_SIZE
public static final int OFFSET_EXCLUDE
public static final int MIN_LIST_SIZE
public static final int MAX_LIST_SIZE
public ConfigIdListMessage(int listSize,
boolean exclude)
listSize - The size of the list.exclude - True, if the list is an exclusion list. False, if the list
is an inclusion list.public int getListSize()
public boolean getExclude()
public byte[] getMessageContent(int channelNumber,
int networkNumber)
AntMessageFromHostgetMessageContent in class AntMessageFromHostchannelNumber - Written to the channel number byte if requirednetworkNumber - Written to the network number byte if requiredpublic MessageFromHostType getMessageType()
AntMessageFromHostIt is recommended to use this rather than the raw message ID.
getMessageType in class AntMessageFromHostpublic java.lang.String toString()
toString in class AntMessageFromHostCopyright © 2015 Dynastream Innovations Inc. All Rights Reserved.