aima.search.eightpuzzle
Class ManhattanHeuristicFunction

java.lang.Object
  extended by aima.search.eightpuzzle.ManhattanHeuristicFunction
All Implemented Interfaces:
HeuristicFunction

public class ManhattanHeuristicFunction
extends java.lang.Object
implements HeuristicFunction


Constructor Summary
ManhattanHeuristicFunction()
           
 
Method Summary
 int evaluateManhattanDistanceOf(int i, XYLocation loc)
           
 double getHeuristicValue(java.lang.Object state)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ManhattanHeuristicFunction

public ManhattanHeuristicFunction()
Method Detail

getHeuristicValue

public double getHeuristicValue(java.lang.Object state)
Specified by:
getHeuristicValue in interface HeuristicFunction

evaluateManhattanDistanceOf

public int evaluateManhattanDistanceOf(int i,
                                       XYLocation loc)