edu.iu.iv.search.p2p.bfs
Class SearchQueue

java.lang.Object
  |
  +--edu.iu.iv.search.p2p.bfs.SearchQueue

public class SearchQueue
extends java.lang.Object

This method provides the queue functionality for BreadthFirstSearch.

Author:
Hardik Sheth (hsheth@indiana.edu)

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

SearchQueue

public SearchQueue()
Method Detail

Enqueue

public void Enqueue(int value)
Insert an element in the queue

Parameters:
value -

isEmpty

public boolean isEmpty()
Check if the queue if empty

Returns:

Dequeue

public int Dequeue()
Return the value of first element in the queue

Returns:
value of first element