|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--edu.iu.iv.search.p2p.bfs.SearchQueue
This method provides the queue functionality for BreadthFirstSearch.
| Constructor Summary | |
SearchQueue()
|
|
| Method Summary | |
int |
Dequeue()
Return the value of first element in the queue |
void |
Enqueue(int value)
Insert an element in the queue |
boolean |
isEmpty()
Check if the queue if empty |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SearchQueue()
| Method Detail |
public void Enqueue(int value)
value - public boolean isEmpty()
public int Dequeue()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||