Request to discover route to specified node. A discovery request is repeated a specified number of times to establish reliability of discovered routes.
Constructor and description |
---|
RouteDiscoveryReq
() Create a route discovery request. |
RouteDiscoveryReq
(int to) Create a route discovery request to a specified node. |
Type Params | Return Type | Name and description |
---|---|---|
|
int |
getCount() Gets the number of discovery attempts. |
|
float |
getInterval() Gets the interval between discovery attempts. |
|
int |
getMaxHops() Gets the maximum number of hops allowed. |
|
int |
getTo() Gets the destination node address. |
|
void |
setCount(int count) Sets the number of discovery attempts. |
|
void |
setInterval(float interval) Sets the interval between discovery attempts. |
|
void |
setMaxHops(int maxHops) Sets the maximum number of hops allowed. |
|
void |
setTo(int to) Sets the destination node address. |
|
String |
toString() |
Methods inherited from class | Name |
---|---|
class Message |
setPerformative, toString, getSender, setMessageID, getSentAt, setRecipient, getInReplyTo, setSentAt, setSender, getPerformative, getRecipient, getMessageID, setInReplyTo, wait, wait, wait, equals, hashCode, getClass, notify, notifyAll |
Create a route discovery request.
Create a route discovery request to a specified node.
to
- node addressGets the number of discovery attempts.
Gets the interval between discovery attempts.
Gets the maximum number of hops allowed.
Gets the destination node address.
Sets the number of discovery attempts.
count
- discovery attempt countSets the interval between discovery attempts.
interval
- interval in secondsSets the maximum number of hops allowed.
maxHops
- maximum hop countSets the destination node address.
to
- destination node addressCopyright 2013-21, Acoustic Research Laboratory, National University of Singapore, and Subnero Pte Ltd