public final class ProximitySearchMessage extends AntMessageFromHost
| Modifier and Type | Field and Description | 
|---|---|
static int | 
MAX_SEARCH_THRESHOLD
The maximum bin number accepted by ANT 
 | 
static int | 
MIN_SEARCH_THRESHOLD
The minimum bin number accepted by ANT 
 | 
static int | 
OFFSET_SEARCH_THRESHOLD
The message content offset to the search threshold value 
 | 
static int | 
PROXIMITY_SEARCH_DISABLED
The value that will disable proximity search for the channel 
 | 
static int | 
SIZE_SEARCH_THRESHOLD
The number of bytes to be used for the search threshold 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 | 
|---|
ProximitySearchMessage(int searchThreshold)
Constructs the message from the given search threshold. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
byte[] | 
getMessageContent(int channelNumber,
                 int networkNumbe)
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 | 
getSearchThreshold()
Gets the search threshold for the message. 
 | 
java.lang.String | 
toString()  | 
createAntMessage, getMessageContent, getMessageContent, getMessageId, getRawMessageequals, getMessageContentString, getMessageIdString, hashCode, maskChannelNumberpublic static final int SIZE_SEARCH_THRESHOLD
public static final int OFFSET_SEARCH_THRESHOLD
public static final int PROXIMITY_SEARCH_DISABLED
public static final int MIN_SEARCH_THRESHOLD
public static final int MAX_SEARCH_THRESHOLD
public ProximitySearchMessage(int searchThreshold)
searchThreshold - The bin number. ANT will discover devices in bins
            less than or equal to the bin number.public int getSearchThreshold()
public byte[] getMessageContent(int channelNumber,
                       int networkNumbe)
AntMessageFromHostgetMessageContent in class AntMessageFromHostchannelNumber - Written to the channel number byte if requirednetworkNumbe - 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.