Notification sent to inform other agents of newly discovered route.
Constructor and description |
---|
RouteDiscoveryNtf
() Create a new route dicovery notification. |
Type Params | Return Type | Name and description |
---|---|---|
|
int |
getHops() Gets the hop count to destination. |
|
AgentID |
getLink() Gets the next hop link to use. |
|
int |
getNextHop() Gets the next hop node address. |
|
boolean |
getReliability() Gets the reliability of the next hop link. |
|
List<Integer> |
getRoute() Gets the detailed route to destination. |
|
int |
getTo() Gets the destination node address. |
|
void |
setHops(int hops) Sets the hop count to destination. |
|
void |
setLink(AgentID link) Sets the next hop link to use. |
|
void |
setNextHop(int nextHop) Sets the next hop node address. |
|
void |
setReliability(boolean reliability) Sets the reliability of the next hop link. |
|
void |
setRoute(List<Integer> route) Sets the detailed route to destination. |
|
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 |
Gets the hop count to destination.
Gets the next hop link to use.
Gets the next hop node address.
Gets the reliability of the next hop link.
Gets the detailed route to destination.
Gets the destination node address.
Sets the hop count to destination.
hops
- hop countSets the next hop link to use.
link
- agent id of next hop linkSets the next hop node address.
nextHop
- next hop node addressSets the reliability of the next hop link.
reliability
- true if reliable, false otherwiseSets the detailed route to destination.
route
- list of nodes forming a route to destinationSets the destination node address.
to
- destination node addressCopyright 2013-21, Acoustic Research Laboratory, National University of Singapore, and Subnero Pte Ltd