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

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

public class QueueElement
extends java.lang.Object

This class provides an element in a search queue

Author:
Hardik Sheth (hsheth@indiana.edu)

Constructor Summary
QueueElement()
           
QueueElement(int value)
          Constructor for QueueElement.
 
Method Summary
 QueueElement getNext()
          This method returns the next element
 QueueElement getPrev()
          This method returns the previous element
 int getValue()
          This method returns the value of the element
 void setNext(QueueElement element)
          This method sets the next element
 void setPrev(QueueElement element)
          This method sets the previous element
 void setValue(int value)
          This method sets the value of the element
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueueElement

public QueueElement(int value)
Constructor for QueueElement. Sets the value of the QueueElement


QueueElement

public QueueElement()
Method Detail

getValue

public int getValue()
This method returns the value of the element

Returns:
value

setValue

public void setValue(int value)
This method sets the value of the element

Parameters:
value -

getNext

public QueueElement getNext()
This method returns the next element

Returns:
next element

getPrev

public QueueElement getPrev()
This method returns the previous element

Returns:
previous element

setNext

public void setNext(QueueElement element)
This method sets the next element

Parameters:
element -

setPrev

public void setPrev(QueueElement element)
This method sets the previous element

Parameters:
element -