edu.nyu.cs.pdsg.switchboard.sbmux
Class SbChannel

java.lang.Object
  extended byedu.nyu.cs.pdsg.switchboard.sbmux.SbChannel

class SbChannel
extends java.lang.Object


Field Summary
protected  int channelNumber
           
protected  boolean openFlag
           
protected  java.util.LinkedList q
           
private  long timeout
           
 
Constructor Summary
(package private) SbChannel(int _channelNumber)
           
 
Method Summary
 void add(java.lang.Object obj)
           
protected  void close()
           
 int getChannelNumber()
           
 boolean isOpen()
           
protected  void open(int _channel)
           
 java.lang.Object remove()
           
 java.lang.Object remove(boolean blocking)
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

openFlag

protected boolean openFlag

q

protected java.util.LinkedList q

channelNumber

protected int channelNumber

timeout

private long timeout
Constructor Detail

SbChannel

SbChannel(int _channelNumber)
Method Detail

getChannelNumber

public int getChannelNumber()

size

public int size()

add

public void add(java.lang.Object obj)

remove

public java.lang.Object remove()
                        throws java.io.IOException
Throws:
java.io.IOException

remove

public java.lang.Object remove(boolean blocking)
                        throws java.io.IOException,
                               java.util.NoSuchElementException
Throws:
java.io.IOException
java.util.NoSuchElementException

isOpen

public boolean isOpen()

close

protected void close()

open

protected void open(int _channel)


Copyright (c) 2002-2003 New York University RLAB