Package rushhour
Class MovesFinder
java.lang.Object
search.GraphSearcher<State,Node,Frontier>
search.PriorityQueueSearcher<State,Node,Frontier>
search.AStarFrontierSearcher<State,Node,Frontiers.PriorityQueue<Node>>
- All Implemented Interfaces:
Runners
public class MovesFinder extends AStarSearcher<BoardState,BoardNode> implements Runners
Superclass for the various A* approaches to be tested in this
homework. The constructor takes the heuristic function, and plugs
it into the general A* framework.
Note that if we override
toString
in the
concrete subclasses with nice and distinct names, it will help the
output of AbstractSolution.run()
to be a bit more readable.-
Nested Class Summary
Nested classes/interfaces inherited from class search.AStarSearcher
AStarSearcher.PathNodes<State>, AStarSearcher.SimpleNodes<State>
-
Constructor Summary
Constructors Constructor Description MovesFinder(Function<BoardState,Double> heuristic)
-
Method Summary
Methods inherited from class search.AStarFrontierSearcher
debugFrontierAddition, debugFrontierRemoval
Methods inherited from class search.GraphSearcher
debugExpansion, debugFrontier, debugFrontierExhausted, debugFrontierNonaddition, debugGoalFound, debugInitialNode, getDebug, getLastAddedToFrontier, getLastExpandedFromFrontier, getLastNotAddedToFrontier, getLastUnexpandedInFrontier, search, setDebug, solvable
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface rushhour.Runners
getLastAddedToFrontier, getLastExpandedFromFrontier, runSampleBoards, runSearch, search