|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjsim.queue.Queue
jsim.queue.LIFO_Queue
public class LIFO_Queue
LIFO_Queue class implements the Last_In_First_Out queue (or stack).
| Field Summary |
|---|
| Fields inherited from class jsim.queue.Queue |
|---|
capacity, root, size |
| Constructor Summary | |
|---|---|
LIFO_Queue()
Constructs an empty LIFO queue with unlimited capacity. |
|
LIFO_Queue(int capacity)
Constructs an empty LIFO queue with limited capacity. |
|
| Method Summary | |
|---|---|
Q_Node |
addAt(java.lang.Object item)
Insert an element into the queue. |
| Methods inherited from class jsim.queue.Queue |
|---|
add, add, addAll, addAll, cancel, clear, contains, containsAll, first, get, indexOf, isEmpty, isFull, iterator, lastIndexOf, listIterator, listIterator, remove, remove, remove, removeAll, removeMin, retainAll, set, size, subList, toArray, toArray |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.List |
|---|
equals, hashCode |
| Constructor Detail |
|---|
public LIFO_Queue()
public LIFO_Queue(int capacity)
capacity - the maximum number of items queue can hold.| Method Detail |
|---|
public Q_Node addAt(java.lang.Object item)
throws FullQueueException
addAt in class Queueitem - new item to be inserted
FullQueueException - if the queue is full
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||