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.


Constructor Index

 o Protocol()

Method Index

 o addCapsule(String)
 o endGroupDefn()
 o endProtocolDefn()
 o main(String[])
Test with a subclass-like constructor.
 o startGroupDefn()
 o startProtocolDefn()
 o toString()

Constructors

 o Protocol
 protected Protocol()

Methods

 o startProtocolDefn
 protected void startProtocolDefn()
 o endProtocolDefn
 protected void endProtocolDefn()
 o startGroupDefn
 protected void startGroupDefn()
 o endGroupDefn
 protected void endGroupDefn() throws Exception
 o addCapsule
 protected void addCapsule(String name) throws Exception
 o toString
 public String toString()
Overrides:
toString in class Object
 o 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