All Packages This Package Class Hierarchy Class Search Index
Class edu.utah.janos.antsr.apps.mobile.MobileUpdateCapsule
java.lang.Object
|
+----edu.utah.janos.antsr.core.Capsule
|
+----edu.utah.janos.antsr.apps.mobile.MobileUpdateCapsule
public class MobileUpdateCapsule
extends edu.utah.janos.antsr.core.Capsule
{
// Fields 4
private static final byte[] MID;
private static final byte[] PID;
int forward;
int next;
// Constructors 2
public MobileUpdateCapsule();
public MobileUpdateCapsule(int, int, int);
// Methods 6
public Xdr decode();
public Xdr encode();
public boolean evaluate(Node);
public int length();
protected byte[] mid();
protected byte[] pid();
}
Mobile update capsule processor - This will update forwarding information
on routers so that MobileCapsules can direct themselves to the proper
destination
- Author:
-
David Wetherall
private static final byte[] MID
private static final byte[] PID
int next
The next place to ship a packet
int forward
The forwarding address to leave behind on the router
public MobileUpdateCapsule()
public MobileUpdateCapsule(int dst,
int next,
int forward)
Construct an update capsule
Parameter | Description |
dst | The address of the home router |
next | The address of the foreign router |
forward | The address of the mobile on the foreign network |
protected byte[] mid()
- Overrides:
- mid in class Capsule
protected byte[] pid()
- Overrides:
- pid in class Capsule
public int length()
- Overrides:
- length in class Capsule
public Xdr encode()
- Overrides:
- encode in class Capsule
public Xdr decode()
- Overrides:
- decode in class Capsule
public boolean evaluate(Node n)
Update the forwarding information on the foreign and home routers.
The MobileCapsules then use this forwarding information to get to
the right location.
- Overrides:
- evaluate in class Capsule
All Packages This Package Class Hierarchy Class Search Index
Freshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7