All Packages Class Hierarchy This Package Previous Next Index
Class ants.Protocol
java.lang.Object
|
+----ants.Protocol
- public class Protocol
- extends Object
Base class for all protocols. Intended to be subclassed
for each user-defined protocol for the purpose of collecting
capsules into a protocol and registering it at the local node.
-
Protocol()
-
-
addCapsule(String)
-
-
endGroupDefn()
-
-
endProtocolDefn()
-
-
main(String[])
- Test with a subclass-like constructor.
-
startGroupDefn()
-
-
startProtocolDefn()
-
-
toString()
-
Protocol
protected Protocol()
startProtocolDefn
protected void startProtocolDefn()
endProtocolDefn
protected void endProtocolDefn()
startGroupDefn
protected void startGroupDefn()
endGroupDefn
protected void endGroupDefn() throws Exception
addCapsule
protected void addCapsule(String name) throws Exception
toString
public String toString()
- Overrides:
- toString in class Object
main
public static void main(String args[]) throws Exception
- Test with a subclass-like constructor. The need to create a
generic protocol here is the only reason this class isn't abstract.
All Packages Class Hierarchy This Package Previous Next Index