Class ZeroHeuristic

java.lang.Object
  extended byZeroHeuristic
All Implemented Interfaces:
Heuristic

public class ZeroHeuristic
extends java.lang.Object
implements Heuristic

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

ZeroHeuristic

public ZeroHeuristic(Puzzle puzzle)
A vacuous constructor, provided in this form for consistancy with the other Heuristic implementations.

Method Detail

getValue

public int getValue(State state)
Returns the value of the heuristic, which is always zero.

Specified by:
getValue in interface Heuristic