All Packages  This Package  Class Hierarchy  Class Search  Index

Class edu.utah.janos.antsr.apps.mobile.MobileCapsule
java.lang.Object
   |
   +----edu.utah.janos.antsr.core.Capsule
           |
           +----edu.utah.janos.antsr.apps.mobile.MobileCapsule

  Summary

public class  MobileCapsule
     extends edu.utah.janos.antsr.core.Capsule
{
          // Fields 6
     private static final byte[] MID;
     private static final byte[] PID;
     ByteArray data;
     short dpt;
     int next;
     short spt;

          // Constructors 2
     public MobileCapsule();
     public MobileCapsule(int, short, short, ByteArray);

          // Methods 6
     public Xdr decode();
     public Xdr encode();
     public boolean evaluate(Node);
     public int length();
     protected byte[] mid();
     protected byte[] pid();
}

mobile capsule processing - The mobile capsule is used to carry a payload. Its able to lookup any forwarding information on a router to direct itself properly.

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 destination for the capsule. First, points to the original destination, and then to a forwarding address if there is one.


· spt

Summary  |  Top
   short spt

Source and destination port...


· dpt

Summary  |  Top
   short dpt


· data

Summary  |  Top
   ByteArray data

The data we're sending


  Constructors

· MobileCapsule

Summary  |  Top

   public MobileCapsule() 


· MobileCapsule

Summary  |  Top
   public MobileCapsule(int na, 
                        short sa, 
                        short da, 
                        ByteArray d) 


  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) 

Check for a forwarding address and then ship the packet

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