Notification message for providing ranging information.
Constructor and description |
---|
RangeNtf
() |
Type Params | Return Type | Name and description |
---|---|---|
|
int |
getFrom() Gets the from address. |
|
Long |
getOffset() Gets clock offset in us. |
|
float |
getRange() Gets range in meters. |
|
int |
getTo() Gets the to address. |
|
boolean |
isValid() Checks if range information is valid. |
|
void |
setFrom(int from) Sets from address. |
|
void |
setOffset(Long dt) Sets clock offset in us. |
|
void |
setRange(float range) Sets range in meters. |
|
void |
setTo(int to) Sets to address. |
|
void |
setValid(boolean valid) Sets the validity. |
|
String |
toString() |
Methods inherited from class | Name |
---|---|
class Message |
toString, setRecipient, setPerformative, getPerformative, getRecipient, setSender, getSender, setMessageID, getMessageID, setInReplyTo, getInReplyTo, wait, wait, wait, equals, hashCode, getClass, notify, notifyAll |
class Object |
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Gets the from address.
Gets clock offset in us.
Gets range in meters.
Gets the to address.
Checks if range information is valid.
Sets from address.
from
- addressSets clock offset in us.
dt
- offset in us, null if unknownSets range in meters.
range
- in meters, NaN if unknownSets to address.
to
- addressSets the validity.
valid
- validityCopyright 2013-19, Acoustic Research Laboratory, National University of Singapore, and Subnero Pte Ltd