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

  Summary

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




  Fields

· MID

Summary  |  Top

   private static final byte[] MID


· PID

Summary  |  Top
   private static final byte[] PID


· next

Summary  |  Top
   int next

The next place to ship a packet


· forward

Summary  |  Top
   int forward

The forwarding address to leave behind on the router


  Constructors

· MobileUpdateCapsule

Summary  |  Top

   public MobileUpdateCapsule() 


· MobileUpdateCapsule

Summary  |  Top
   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



  Methods

· mid

Summary  |  Top
   protected byte[] mid() 
Overrides:
mid in class Capsule


· pid

Summary  |  Top
   protected byte[] pid() 
Overrides:
pid in class Capsule


· length

Summary  |  Top
   public int length() 
Overrides:
length in class Capsule


· encode

Summary  |  Top
   public Xdr encode() 
Overrides:
encode in class Capsule


· decode

Summary  |  Top
   public Xdr decode() 
Overrides:
decode in class Capsule


· evaluate

Summary  |  Top
   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