byucc.jhdl.base
Class ConnectionList

java.lang.Object
  extended bybyucc.jhdl.base.list.VectorList
      extended bybyucc.jhdl.base.ConnectionList
All Implemented Interfaces:
java.util.Enumeration, List

public class ConnectionList
extends VectorList
implements java.util.Enumeration

Holds a list of Connections, and can be iterated.


Constructor Summary
ConnectionList()
           
 
Method Summary
 void append(Connection c)
          Controls what can go on the list
 Connection getConnection()
          Returns the connection at the current list position
 boolean hasMoreElements()
          Used to check if there are more elements remaining in the list.
 void insert(Connection c)
          Controls what can go on the list
 void merge(ConnectionList list)
          Merges the parameter list into this list (each unique element only appears once in the result).
 java.lang.Object nextElement()
          Returns the current element and then moves to the next element.
 
Methods inherited from class byucc.jhdl.base.list.VectorList
append, appendList, atEnd, delete, deleteAll, deleteCurrent, elementCount, empty, filter, getElt, init, inList, insert, insertAfterCurrent, insertBeforeCurrent, insertList, intersect, iterator, merge, next, prev, size, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConnectionList

public ConnectionList()
Method Detail

insert

public void insert(Connection c)
Controls what can go on the list

Parameters:
c - the connection to insert

append

public void append(Connection c)
Controls what can go on the list

Parameters:
c - the connection to insert

getConnection

public Connection getConnection()
Returns the connection at the current list position

Returns:
the current connection

nextElement

public java.lang.Object nextElement()
Returns the current element and then moves to the next element.

Specified by:
nextElement in interface java.util.Enumeration
Returns:
the current element in the list.
Throws:
java.util.NoSuchElementException - if already at end

hasMoreElements

public boolean hasMoreElements()
Used to check if there are more elements remaining in the list.

Specified by:
hasMoreElements in interface java.util.Enumeration
Returns:
true if there are more elements, false otherwise.

merge

public void merge(ConnectionList list)
Merges the parameter list into this list (each unique element only appears once in the result).

Parameters:
list - The list to merge in to this list


Copyright ? 2006 Brigham Young University, Configurable Computing Laboratory. All Rights Reserved.