Sim.Routing.DSR
Class RouteError

java.lang.Object
  extended by Sim.Routing.DSR.RouteError
All Implemented Interfaces:
ProtocolFrame

public class RouteError
extends java.lang.Object
implements ProtocolFrame

RouteError tells nodes about a broken link from one point to another.


Constructor Summary
RouteError(int linkStart, int linkEnd)
           
 
Method Summary
 int getLinkEnd()
          Returns the second (ending) node of the broken link.
 int getLinkStart()
          Returns the first (starting) node of the broken link.
 int getSize()
          Returns the "serialized" size of this portion of the packet, in bytes.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RouteError

public RouteError(int linkStart,
                  int linkEnd)
Method Detail

getLinkStart

public int getLinkStart()
Returns the first (starting) node of the broken link.


getLinkEnd

public int getLinkEnd()
Returns the second (ending) node of the broken link.


getSize

public int getSize()
Returns the "serialized" size of this portion of the packet, in bytes.

Specified by:
getSize in interface ProtocolFrame

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object