|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectaima.search.eightpuzzle.ManhattanHeuristicFunction
public class ManhattanHeuristicFunction
| Constructor Summary | |
|---|---|
ManhattanHeuristicFunction()
|
|
| Method Summary | |
|---|---|
int |
evaluateManhattanDistanceOf(int i,
XYLocation loc)
|
int |
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 |
|---|
public ManhattanHeuristicFunction()
| Method Detail |
|---|
public int getHeuristicValue(java.lang.Object state)
getHeuristicValue in interface HeuristicFunction
public int evaluateManhattanDistanceOf(int i,
XYLocation loc)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||