nodeNet
Class InputChannelVector

java.lang.Object
  |
  +--nodeNet.InputChannelVector

public class InputChannelVector
extends java.lang.Object

InputChannelVector is something which acts like a Vector of InputChannels instead of Objects.

Copyright (c) 1998 Massachusetts Institute of Technology


Constructor Summary
InputChannelVector()
          Constructs a new InputChannelVector.
 
Method Summary
 void addElement(java.lang.Object obj)
          Adds an object to the InputChannelVector.
 boolean contains(java.lang.Object elem)
          Checks to see if it contains an element.
 InputChannel elementAt(int index)
          Returns the InputChannel at a certain index.
 java.util.Enumeration elements()
          Transforms InputChannelVector into yet another type of collection of objects, called an Enumeration.
 InputChannel firstElement()
          Returns the first InputChannel in the InputChannelVector.
 boolean isEmpty()
          Returns true if the InputChannelVector is empty.
 InputChannel lastElement()
          Returns the last InputChannel in the InputChannelVector.
 void removeAllElements()
          Removes all elements from the InputChannelVector.
 boolean removeElement(java.lang.Object obj)
          Removes a specific element from the InputChannelVector.
 int size()
          Returns the size of the InputChannelVector.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InputChannelVector

public InputChannelVector()
Constructs a new InputChannelVector.
Method Detail

addElement

public final void addElement(java.lang.Object obj)
Adds an object to the InputChannelVector.

contains

public final boolean contains(java.lang.Object elem)
Checks to see if it contains an element.

elementAt

public final InputChannel elementAt(int index)
Returns the InputChannel at a certain index.
Parameters:
index - index of the InputChannel being looked up

elements

public final java.util.Enumeration elements()
Transforms InputChannelVector into yet another type of collection of objects, called an Enumeration.

firstElement

public final InputChannel firstElement()
Returns the first InputChannel in the InputChannelVector.

isEmpty

public final boolean isEmpty()
Returns true if the InputChannelVector is empty.

lastElement

public final InputChannel lastElement()
Returns the last InputChannel in the InputChannelVector.

removeAllElements

public final void removeAllElements()
Removes all elements from the InputChannelVector.

removeElement

public final boolean removeElement(java.lang.Object obj)
Removes a specific element from the InputChannelVector.
Parameters:
obj - the object being removed

size

public final int size()
Returns the size of the InputChannelVector.