public class ExtendedData
extends java.lang.Object
ExtendedData
contains data members parsed from extended messages. Stores default values unless an extended
data is received to set.Modifier and Type | Class and Description |
---|---|
class |
ExtendedData.Flag
The flags in the raw flag byte, which indicate what data is held within the extended
message.
|
Modifier and Type | Field and Description |
---|---|
static int |
OFFSET_FLAG_BYTE
The index at which the flag byte is within AntMessage contents for flagged extended messages.
|
Constructor and Description |
---|
ExtendedData(DataMessage dataMessage)
Constructs the Extended Data object from a received data message.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
ChannelId |
getChannelId()
Gets the channel ID in the extended data.
|
Rssi |
getRssi()
Gets the RSSI data in the extended data.
|
Timestamp |
getTimestamp()
Gets the timestamp in the extended data
|
boolean |
hasChannelId()
Checks if channel ID is included in the extended data.
|
static boolean |
hasExtendedData(AntMessageFromAnt antMessage)
Checks if the received message from ANT contains extended data.
|
int |
hashCode() |
boolean |
hasRssi()
Checks if RSSI data is included in the extended data.
|
boolean |
hasTimestamp()
Checks if timestamp is included in the extended data.
|
java.lang.String |
toString() |
public static final int OFFSET_FLAG_BYTE
public ExtendedData(DataMessage dataMessage)
dataMessage
- A data message received from ANT.public static boolean hasExtendedData(AntMessageFromAnt antMessage)
antMessage
- The message received from ANT.public boolean hasChannelId()
public boolean hasRssi()
public boolean hasTimestamp()
public ChannelId getChannelId()
public Rssi getRssi()
public Timestamp getTimestamp()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2015 Dynastream Innovations Inc. All Rights Reserved.