public abstract class AntMessage
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
BITMASK_CHANNEL_NUMBER
The mask to be used to get the channel number from the byte containing
the channel number
|
static byte |
FILLER_BYTE
The value used as filler
|
static int |
OFFSET_CHANNEL_NUMBER
The message content offest to the channel number
|
static int |
RAW_OFFSET_MESSAGE_CONTENT_START
The offset for the entire raw message for message content start
|
static int |
RAW_OFFSET_MESSAGE_ID
The offset for the entire raw message for message ID
|
static int |
RAW_OFFSET_MESSAGE_SIZE
The offset for the entire raw message for message size
|
static int |
SIZE_CHANNEL_NUMBER
The number of bytes for the channel number
|
static int |
SIZE_FILLER_BYTE
The number of bytes for the filler value
|
Constructor and Description |
---|
AntMessage() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object other) |
abstract byte[] |
getMessageContent()
The content of the message.
|
java.lang.String |
getMessageContentString()
Get message content as a hex string
|
abstract int |
getMessageId()
Get the ANT message ID.
|
java.lang.String |
getMessageIdString()
Get message ID as a hex string
|
int |
hashCode() |
static int |
maskChannelNumber(int channelNumber)
Returns the channel number from the given channel number byte.
|
java.lang.String |
toString() |
public static final int OFFSET_CHANNEL_NUMBER
public static final int RAW_OFFSET_MESSAGE_SIZE
public static final int RAW_OFFSET_MESSAGE_ID
public static final int RAW_OFFSET_MESSAGE_CONTENT_START
public static final byte FILLER_BYTE
public static final int SIZE_CHANNEL_NUMBER
public static final int SIZE_FILLER_BYTE
public static final int BITMASK_CHANNEL_NUMBER
public static final int maskChannelNumber(int channelNumber)
channelNumber
- The byte that contains the channel numberpublic boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public abstract int getMessageId()
public java.lang.String getMessageIdString()
public abstract byte[] getMessageContent()
public java.lang.String getMessageContentString()
Copyright © 2015 Dynastream Innovations Inc. All Rights Reserved.