Notification message for received frame.
Constructor and description |
---|
RxFrameNtf
() |
RxFrameNtf
(AgentID recipient) |
Type Params | Return Type | Name and description |
---|---|---|
|
int |
getBits() Gets the number of bits in the data frame. |
|
float |
getCfo() Gets the carrier frequency offset. |
|
int |
getErrors() Gets the number of erroneous bits corrected in the data frame. |
|
double[] |
getLocation() Gets the location where this frame was received. |
|
float |
getRssi() Gets the received signal strength. |
|
Long |
getRxTime() Returns timestamp in us at which frame was received (indicates the start of reception). |
|
Long |
getTxTime() Returns the frame transmission timestamp. indicates the start of transmission. |
|
int |
getType() Gets the channel type Physical.DATA or Physical.CONTROL. |
|
boolean |
is16BitTS() Checks if msg contains 16 bit timestamp. |
|
void |
set16BitTS(boolean is16BitRx) Sets 16 bit timestamp. |
|
void |
setBits(int bits) Sets the number of bits in the data frame. |
|
void |
setCfo(float cfo) Sets the carrier frequency offset. |
|
void |
setErrors(int bits) Sets the number of erroneous bits corrected in the data frame. |
|
void |
setLocation(double[] location) Sets the location where this frame was received. |
|
void |
setRssi(float rssi) Sets the received signal strength. |
|
void |
setRxTime(Long time) Sets the reception timestamp in us. |
|
void |
setTxTime(Long time) Sets the transmission timestamp. |
|
void |
setType(int type) Sets the channel type. |
|
String |
toString() |
Methods inherited from class | Name |
---|---|
class DatagramNtf |
getData, getFrom, getPriority, getProtocol, getTo, getTtl, setData, setFrom, setPriority, setProtocol, setTo, setTtl, toString |
class Message |
toString, setRecipient, setPerformative, getPerformative, getRecipient, setSender, getSender, setMessageID, getMessageID, setInReplyTo, getInReplyTo, wait, wait, wait, equals, hashCode, getClass, notify, notifyAll |
Gets the number of bits in the data frame.
Gets the carrier frequency offset.
Gets the number of erroneous bits corrected in the data frame.
Gets the location where this frame was received.
Gets the received signal strength.
Returns timestamp in us at which frame was received (indicates the start of reception).
Returns the frame transmission timestamp. indicates the start of transmission.
Gets the channel type Physical.DATA or Physical.CONTROL.
Checks if msg contains 16 bit timestamp.
Sets 16 bit timestamp.
is16BitRx
- true if 16 bit timestampSets the number of bits in the data frame.
bits
- number of bitsSets the carrier frequency offset.
cfo
- carrier frequency offsetSets the number of erroneous bits corrected in the data frame.
bits
- number of erroneous bitsSets the location where this frame was received.
location
- coordinates (x, y) or (x, y, z), or null if unavailableSets the received signal strength.
rssi
- RSSI in dBSets the reception timestamp in us.
time
- reception timestamp (us), null if unspecified.Sets the transmission timestamp.
time
- timestamp in us, null if unspecified.Sets the channel type.
type
- channel typeCopyright 2013-19, Acoustic Research Laboratory, National University of Singapore, and Subnero Pte Ltd