|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectZeroHeuristic
This is a trivial heuristic function that always returns zero.
Constructor Summary | |
ZeroHeuristic(Puzzle puzzle)
A vacuous constructor, provided in this form for consistancy with the other Heuristic implementations. |
Method Summary | |
int |
getValue(State state)
Returns the value of the heuristic, which is always zero. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ZeroHeuristic(Puzzle puzzle)
Method Detail |
public int getValue(State state)
getValue
in interface Heuristic
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |