|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjist.swans.route.RouteAodv.RouteErrorMessage
private static class RouteAodv.RouteErrorMessage
Represents a Route Error (RERR) message class.
| Field Summary | |
|---|---|
private static int |
MESSAGE_SIZE
RERR Message size in bytes. |
private java.util.LinkedList |
unreachableList
List of net addresses for destinations that have become unreachable. |
| Fields inherited from interface jist.swans.misc.Message |
|---|
NULL |
| Constructor Summary | |
|---|---|
RouteAodv.RouteErrorMessage()
Constructs a new Route Error (RERR) Message object with an empty unreachable list. |
|
RouteAodv.RouteErrorMessage(java.util.LinkedList list)
Constructs a new Route Error (RERR) Message object with a given unreachable list. |
|
| Method Summary | |
|---|---|
void |
addUnreachable(NetAddress node)
Add an unreachable node. |
void |
getBytes(byte[] msg,
int offset)
Store packet into byte array. |
int |
getSize()
Return packet size. |
java.util.LinkedList |
getUnreachableList()
Returns the unreachable list. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final int MESSAGE_SIZE
private java.util.LinkedList unreachableList
| Constructor Detail |
|---|
public RouteAodv.RouteErrorMessage()
public RouteAodv.RouteErrorMessage(java.util.LinkedList list)
list - List of net addresses for destinations that have become unreachable| Method Detail |
|---|
public java.util.LinkedList getUnreachableList()
public void addUnreachable(NetAddress node)
node - netAddress of node to be addedpublic int getSize()
getSize in interface Message
public void getBytes(byte[] msg,
int offset)
getBytes in interface Messagemsg - destination byte arrayoffset - byte array starting offset
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||