Nodenet Problem Set Javadocs

nodenet
Interface OutputChannel

All Known Implementing Classes:
Channel

public interface OutputChannel

This is the interface to put objects into a channel. It defines one method, writeObject().

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

Method Summary
 void writeObject(java.lang.Object o)
          Attempt to place an object into the channel.
 

Method Detail

writeObject

public void writeObject(java.lang.Object o)
                 throws ChannelFullException,
                        ChannelDisabledException
Attempt to place an object into the channel. Note that you can place any object into a channel, though you probably only want to deal with the packets Generators create.

Parameters:
o - the object to insert
Throws:
ChannelFullException - if the channel is full and cannot accept more objects
ChannelDisabledException - if the user has disabled the channel

Nodenet Problem Set Javadocs