/**
 * BreadthFirstSearchAlgorithm.java
 *
 * Expands on the generic SearchAlgorithm to search for a specified
 * string within a tree.
 */

/**
 * Extends SearchAlgorithm class to use Breadth-First method, searching
 * through all nodes on a particular level of the tree before going deeper.
 */
public class BreadthFirstSearchAlgorithm extends SearchAlgorithm {

    /**
     * This method will be called to enqueue a new node.
     * BreadthFirstSearch: enqueue new nodes at the end.
     */
    protected void enqueue(WNode newNode) {
    	this.nodeQueue.addElement(newNode);
    }

}
