|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectSim.Routing.DSR.FloodingHeader
Sim.Routing.DSR.RouteRequest
public class RouteRequest
RouteRequest is a flooded protocol header to request a route from the originator to a target.
Constructor Summary | |
---|---|
RouteRequest(PacketId id,
int hopsRemaining,
int originator,
int target)
|
|
RouteRequest(PacketId id,
int hopsRemaining,
int originator,
int target,
RouteError error)
|
|
RouteRequest(PacketId id,
int hopsRemaining,
Route pathTaken,
int target,
RouteError error)
|
Method Summary | |
---|---|
RouteError |
getError()
Returns the RouteError associated with this RouteRequest, if there is one, or null if there is not. |
PacketId |
getId()
|
int |
getOriginator()
|
Route |
getPathTaken()
|
Route |
getPathToSource()
|
int |
getSize()
Returns the "serialized" size of this portion of the packet. |
int |
getTarget()
|
RouteRequest |
makeRepeat(int myAddress)
Constructs a new RouteRequest with the address given appended to the path, suitable for forwarding. |
boolean |
shouldRepeat(int myAddress)
|
Route |
terminate()
Terminates the RouteRequest, returning the complete route obtained. |
java.lang.String |
toString()
|
Methods inherited from class Sim.Routing.DSR.FloodingHeader |
---|
getHopsRemaining |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RouteRequest(PacketId id, int hopsRemaining, int originator, int target, RouteError error)
public RouteRequest(PacketId id, int hopsRemaining, int originator, int target)
public RouteRequest(PacketId id, int hopsRemaining, Route pathTaken, int target, RouteError error)
Method Detail |
---|
public int getOriginator()
public PacketId getId()
public int getTarget()
public boolean shouldRepeat(int myAddress)
public RouteRequest makeRepeat(int myAddress)
public Route getPathToSource()
public Route terminate()
public Route getPathTaken()
public RouteError getError()
public int getSize()
getSize
in interface ProtocolFrame
getSize
in class FloodingHeader
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |