|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcode.space.Queue
public class Queue
Queue of the computations in the narrowing space. The queue is circular, i.e., every time the first element in the queue is processed, it is placed back into the queue.
| Nested Class Summary | |
|---|---|
class |
Queue.UnderflowException
|
| Field Summary | |
|---|---|
private int |
first
Index of element last requested (was first) in the queue. |
private java.util.Vector |
vector
Vector holding the computations in the queue. |
| Constructor Summary | |
|---|---|
Queue()
|
|
| Method Summary | |
|---|---|
Computation |
dequeue()
Take out the last returned (was first) computation of the queue. |
java.util.Enumeration |
elements()
Return an enumeration of the computations in this queue. |
void |
enqueue(Computation computation)
Place a computation in the queue. |
int |
first()
This is needed by the pre and post debugging choice and narrow instructions to see all of the computations that were created by the choice or narrow instruction. |
Computation |
next()
Return the first computation in the queue. |
Computation |
remove(Computation c)
|
int |
size()
Return the number of computations in the queue. |
java.lang.String |
toString()
Return a printable representation of this queue. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private java.util.Vector vector
private int first
| Constructor Detail |
|---|
public Queue()
| Method Detail |
|---|
public int first()
public void enqueue(Computation computation)
computation - the computation to place in the queue.
public Computation next()
throws Queue.UnderflowException
Queue.UnderflowExceptionpublic Computation dequeue()
public Computation remove(Computation c)
public int size()
public java.util.Enumeration elements()
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||