aima.search.framework
Class PrioritySearch

java.lang.Object
  extended by aima.search.framework.PrioritySearch
All Implemented Interfaces:
Search
Direct Known Subclasses:
BestFirstSearch, UniformCostSearch

public abstract class PrioritySearch
extends java.lang.Object
implements Search


Field Summary
protected  QueueSearch search
           
 
Constructor Summary
PrioritySearch()
           
 
Method Summary
protected abstract  java.util.Comparator<Node> getComparator(Problem p)
           
 Metrics getMetrics()
           
 java.util.List search(Problem p)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

search

protected QueueSearch search
Constructor Detail

PrioritySearch

public PrioritySearch()
Method Detail

search

public java.util.List search(Problem p)
                      throws java.lang.Exception
Specified by:
search in interface Search
Throws:
java.lang.Exception

getMetrics

public Metrics getMetrics()
Specified by:
getMetrics in interface Search

getComparator

protected abstract java.util.Comparator<Node> getComparator(Problem p)