|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjist.swans.route.RouteAodv.MessageQueue
private static class RouteAodv.MessageQueue
A MessageQueue object temporarily stores transport-layer messages while routes are being determined. When route information becomes available, the messages are then sent along the routes.
| Field Summary | |
|---|---|
private java.util.LinkedList |
list
list of IP messages (with type NetMessage.Ip). |
private RouteAodv |
thisNode
reference to this RouteAodv instance. |
| Constructor Summary | |
|---|---|
RouteAodv.MessageQueue(RouteAodv thisNode)
Constructs a MessageQueue object, with an empty list. |
|
| Method Summary | |
|---|---|
void |
add(NetMessage.Ip msg)
Adds a NetMessage.Ip to the queue. |
void |
dequeueAndSend(NetAddress dest,
MacAddress nextHop)
Sends all messages in queue destined for a given destination via a given next hop. |
void |
removeMsgsForDest(NetAddress dest)
Removes all messages bound for a given destination. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private java.util.LinkedList list
private RouteAodv thisNode
| Constructor Detail |
|---|
public RouteAodv.MessageQueue(RouteAodv thisNode)
thisNode - reference to this RouteAodv instance| Method Detail |
|---|
public void add(NetMessage.Ip msg)
msg - message to add to queue
public void dequeueAndSend(NetAddress dest,
MacAddress nextHop)
dest - destination addressnextHop - next hop addresspublic void removeMsgsForDest(NetAddress dest)
dest - destination net address
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||