Nodenet Problem Set Javadocs

nodenet
Interface InputChannel

All Known Implementing Classes:
Channel

public interface InputChannel

This is the interface to recieve objects from a channel. It defines one method, readObject().

Version:
$Id: InputChannel.java,v 1.3 2004/01/14 21:43:17 gus Exp $
Author:
Todd C. Parnell, tparnell@ai.mit.edu

Method Summary
 java.lang.Object readObject()
          Attempt to get an object in the channel.
 

Method Detail

readObject

public java.lang.Object readObject()
                            throws ChannelEmptyException,
                                   ChannelDisabledException
Attempt to get an object in the channel.

Returns:
the oldest object in the channel
Throws:
ChannelEmptyException - if no objects are available in the channel
ChannelDisabledException - if the user has disabled the channel

Nodenet Problem Set Javadocs