/* * OutputChannel.java * Part of the BinSort problem set. * * Developed for "Rethinking CS101", a project of Lynn Andrea Stein's AP Group. * For more information, see http://www.ai.mit.edu/projects/cs101, the * CS101 homepage or email las@ai.mit.edu. * * Copyright (C) 1998 Massachusetts Institute of Technology. * Please do not redistribute without obtaining permission. */ package binsort; /** * This is the interface to put objects into a channel. It defines one * method, writeObject().

* * Copyright (c) 1998 Massachusetts Institute of Techonology * * @author Todd C. Parnell, tparnell@ai.mit.edu * @version $Id: OutputChannel.java,v 1.2 2002/06/17 17:44:05 gus Exp $ */ public interface OutputChannel { /** * 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. * * @param o the object to insert * * @throws ChannelFullException if the channel is full and cannot * accept more objects * * @throws ChannelDisabledException if the user has disabled the * channel */ public void writeObject(Object o) throws ChannelFullException, ChannelDisabledException; } /* * $Log: OutputChannel.java,v $ * Revision 1.2 2002/06/17 17:44:05 gus * Fixed package statements. * * Revision 1.1 2002/06/14 19:50:49 gus * Moved files down into binsort package to match other problemsets. * * Revision 1.1.1.1 2002/06/05 21:56:26 root * CS101 comes to Olin finally. * * Revision 1.3 1998/08/12 19:29:40 tparnell * Another pass after comments from las & natashao. Added support to * dynamically add NodeBehaviors. Add keyboard shortcuts to menus. Added * workaround to jdk bug relating to lighweight components. Misc other * bugfixes. * * Revision 1.3 1998/08/10 17:45:50 tparnell * Revision to use JDK1.2 and Swing. Redesign of GUI. Removed old kludge * for file I/O and replaced with object serialization. Channel no longer * requires animacy. Removed unnessary dependencies between classes. * Added ability to configure channel's latency and capacity. Added * javadoc to all files. General code cleanup. * */