All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class ants.Channel

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Window
                           |
                           +----java.awt.Frame
                                   |
                                   +----ants.Entity
                                           |
                                           +----ants.ManagedObject
                                                   |
                                                   +----ants.Channel

public abstract class Channel
extends ManagedObject
Channel used by nodes to exchanged capsule with one another. Might also add a scavenger thread to free long-lived threads before the queue is full but during idle time.


Variable Index

 o client
 o clientAddress
 o rxbuf
 o source
 o txbuf

Constructor Index

 o Channel(Manager, String, ChannelAddress)
 o Channel(Manager, String, ChannelAddress, int)

Method Index

 o attachNode(Node)
 o decode(Xdr)
 o encode(Capsule)
 o New(Manager, String, String)
 o send(Capsule, ChannelAddress)
 o start()
a one-time start of the channel only

Variables

 o source
 public ChannelAddress source
 o client
 public Node client
 o clientAddress
 public int clientAddress
 o txbuf
 protected Xdr txbuf
 o rxbuf
 protected Xdr rxbuf

Constructors

 o Channel
 public Channel(Manager b,
                String n,
                ChannelAddress src)
 o Channel
 public Channel(Manager b,
                String n,
                ChannelAddress src,
                int q)

Methods

 o encode
 public Xdr encode(Capsule cap)
 o decode
 public Capsule decode(Xdr xdr) throws Exception
 o attachNode
 public void attachNode(Node c)
 o send
 public final boolean send(Capsule cap,
                           ChannelAddress dst)
 o start
 public void start()
a one-time start of the channel only

Overrides:
start in class Entity
 o New
 public static Channel New(Manager b,
                           String n,
                           String src) throws Exception

All Packages  Class Hierarchy  This Package  Previous  Next  Index