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
-
LVL
-
-
Capsule()
-
-
create(Class, Xdr)
-
-
decode()
-
-
encode()
-
-
evaluate(Node)
-
-
findExtension(String)
- Access point to initialze capsule extension indexes
-
findGID(String)
- Access point to initialze capsule groupIDs
-
findMID(String)
- Access point to initialze capsule methodIDs
-
findPID(String)
- Access point to initialze capsule protocolIDs
-
getDst()
-
-
getPrevious()
-
-
getResources()
-
-
getSrc()
-
-
length()
-
-
mid()
-
-
pid()
-
-
prime(Capsule)
- Prime a capsule created within the network for transmission
-
setDst(int)
-
LVL
protected static final int LVL
Capsule
public Capsule()
mid
protected abstract byte[] mid()
pid
protected abstract byte[] pid()
getPrevious
public int getPrevious()
getResources
public int getResources()
findMID
public static byte[] findMID(String name)
- Access point to initialze capsule methodIDs
findGID
public static byte[] findGID(String name)
- Access point to initialze capsule groupIDs
findPID
public static byte[] findPID(String name)
- Access point to initialze capsule protocolIDs
findExtension
public static int findExtension(String name)
- Access point to initialze capsule extension indexes
evaluate
public abstract boolean evaluate(Node n)
getSrc
public int getSrc()
getDst
public int getDst()
setDst
public void setDst(int dst)
length
public int length()
encode
public Xdr encode()
decode
public Xdr decode()
prime
public final void prime(Capsule parent)
- Prime a capsule created within the network for transmission
create
public static Capsule create(Class cl,
Xdr xdr)
All Packages Class Hierarchy This Package Previous Next Index