All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class ants.Capsule

java.lang.Object
   |
   +----ants.Capsule

public abstract class Capsule
extends Object
Base class for all types of capsules and their processing


Variable Index

 o LVL

Constructor Index

 o Capsule()

Method Index

 o create(Class, Xdr)
 o decode()
 o encode()
 o evaluate(Node)
 o findExtension(String)
Access point to initialze capsule extension indexes
 o findGID(String)
Access point to initialze capsule groupIDs
 o findMID(String)
Access point to initialze capsule methodIDs
 o findPID(String)
Access point to initialze capsule protocolIDs
 o getDst()
 o getPrevious()
 o getResources()
 o getSrc()
 o length()
 o mid()
 o pid()
 o prime(Capsule)
Prime a capsule created within the network for transmission
 o setDst(int)

Variables

 o LVL
 protected static final int LVL

Constructors

 o Capsule
 public Capsule()

Methods

 o mid
 protected abstract byte[] mid()
 o pid
 protected abstract byte[] pid()
 o getPrevious
 public int getPrevious()
 o getResources
 public int getResources()
 o findMID
 public static byte[] findMID(String name)
Access point to initialze capsule methodIDs

 o findGID
 public static byte[] findGID(String name)
Access point to initialze capsule groupIDs

 o findPID
 public static byte[] findPID(String name)
Access point to initialze capsule protocolIDs

 o findExtension
 public static int findExtension(String name)
Access point to initialze capsule extension indexes

 o evaluate
 public abstract boolean evaluate(Node n)
 o getSrc
 public int getSrc()
 o getDst
 public int getDst()
 o setDst
 public void setDst(int dst)
 o length
 public int length()
 o encode
 public Xdr encode()
 o decode
 public Xdr decode()
 o prime
 public final void prime(Capsule parent)
Prime a capsule created within the network for transmission

 o create
 public static Capsule create(Class cl,
                              Xdr xdr)

All Packages  Class Hierarchy  This Package  Previous  Next  Index