All Packages Class Hierarchy This Package Previous Next Index
Class VisiModel.FIFO
java.lang.Object
|
+----VisiModel.FIFO
- public class FIFO
- extends Object
Implements a first-in-first-out (FIFO) list of objects.
- Version:
- $Revision: 1.8 $, $Date: 2000/10/12 14:09:12 $
- Author:
- Mike Spengler, Joseph Thomas
-
count
- The number of components in the FIFO.
-
maxcount
- The high-water mark of components in the FIFO.
-
name
- A name identifying the creator of this queue.
-
queue
- Internal fifo list
XXX for performance we should convert to a non-Vector implementation
-
FIFO()
- Class constructor.
-
FIFO(String)
- Class constructor.
-
delete(Object)
-
-
dequeue()
- Removes and returns the first object in this FIFO.
-
drain()
- Removes all objects in this FIFO.
-
elementAt(int)
-
-
enqueue(Object)
- Adds the specified object to the end of this FIFO.
-
getQueueIteration()
-
-
size()
- Gets the number of objects in this FIFO.
queue
private VectorIter queue
- Internal fifo list
XXX for performance we should convert to a non-Vector implementation
name
private String name
- A name identifying the creator of this queue.
count
private int count
- The number of components in the FIFO.
maxcount
private int maxcount
- The high-water mark of components in the FIFO.
FIFO
public FIFO(String name)
- Class constructor.
FIFO
public FIFO()
- Class constructor.
enqueue
public synchronized void enqueue(Object o)
- Adds the specified object to the end of this FIFO.
- Parameters:
- o - the object to be placed at the end of the FIFO
dequeue
public synchronized Object dequeue() throws NoSuchElementException
- Removes and returns the first object in this FIFO.
- Returns:
- the first component in this FIFO
drain
public synchronized void drain()
- Removes all objects in this FIFO.
size
public int size()
- Gets the number of objects in this FIFO.
- Returns:
- the number of object in this FIFO
getQueueIteration
public synchronized VIteration getQueueIteration()
delete
public synchronized void delete(Object o)
elementAt
public Object elementAt(int idx)
All Packages Class Hierarchy This Package Previous Next Index