aima.search.uninformed
Class BidirectionalSearch

java.lang.Object
  extended by aima.search.uninformed.BidirectionalSearch
All Implemented Interfaces:
Search

public class BidirectionalSearch
extends java.lang.Object
implements Search


Nested Class Summary
static class BidirectionalSearch.SearchOutcome
           
 
Field Summary
protected  Metrics metrics
           
 
Constructor Summary
BidirectionalSearch()
           
 
Method Summary
 void clearInstrumentation()
           
 int getMaxQueueSize()
           
 Metrics getMetrics()
           
 int getNodesExpanded()
           
 double getPathCost()
           
 int getQueueSize()
           
 BidirectionalSearch.SearchOutcome getSearchOutcome()
           
 java.util.List<java.lang.String> search(Problem p)
           
 void setNodesExpanded(int nodesExpanded)
           
 void setPathCost(java.lang.Double pathCost)
           
 void setQueueSize(int queueSize)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

metrics

protected Metrics metrics
Constructor Detail

BidirectionalSearch

public BidirectionalSearch()
Method Detail

search

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

getSearchOutcome

public BidirectionalSearch.SearchOutcome getSearchOutcome()

getMetrics

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

clearInstrumentation

public void clearInstrumentation()

getNodesExpanded

public int getNodesExpanded()

setNodesExpanded

public void setNodesExpanded(int nodesExpanded)

getQueueSize

public int getQueueSize()

setQueueSize

public void setQueueSize(int queueSize)

getMaxQueueSize

public int getMaxQueueSize()

getPathCost

public double getPathCost()

setPathCost

public void setPathCost(java.lang.Double pathCost)