lojix/search/src/main/com/thesett/aima/search/impl/BaseQueueSearch.java
public void reset()
    {
        // Clear out the start states.
        startStates.clear();
        enqueuedOnce = false;

        // Reset the queue to a fresh empty queue.
        queue = createQueue();

        // Clear the goal predicate.
        goalPredicate = null;

        // Reset the maximum steps limit
        maxSteps = 0;

        // Reset the number of steps taken
        searchSteps = 0;

        // Reset the repeated state filter if there is one.
        if (repeatedStateFilter != null)
        {
            repeatedStateFilter.reset();
        }

        // Reset the search alogorithm if it requires resettting.
        searchAlgorithm.reset();
    }
public void reset()
    {
        // Clear out the start states.
        startStates.clear();
        enqueuedOnce = false;

        // Reset the queue to a fresh empty queue.
        queue = createQueue();

        // Clear the goal predicate.
        goalPredicate = null;

        // Reset the maximum steps limit
        maxSteps = 0;

        // Reset the number of steps taken
        searchSteps = 0;

        // Reset the repeated state filter if there is one.
        if (repeatedStateFilter != null)
        {
            repeatedStateFilter.reset();
        }

        // Reset the search alogorithm if it requires resettting.
        searchAlgorithm.reset();
    }
public void reset ( ) { // Clear out the start states. startStates . clear ( ) ; enqueuedOnce = false ; // Reset the queue to a fresh empty queue. queue = createQueue ( ) ; // Clear the goal predicate. goalPredicate = null ; // Reset the maximum steps limit maxSteps = 0 ; // Reset the number of steps taken searchSteps = 0 ; // Reset the repeated state filter if there is one. if ( repeatedStateFilter != null ) { repeatedStateFilter . reset ( ) ; } // Reset the search alogorithm if it requires resettting. searchAlgorithm . reset ( ) ; }
Resets the search, clearing out the queue and setting it to contain just the start state node.
Resets the search clearing out the queue and setting it to contain just the start state node .