implementation.gridpuzzle
Class AbstractHeuristic

java.lang.Object
  extended by implementation.gridpuzzle.AbstractHeuristic
Direct Known Subclasses:
HeuristicOne, HeuristicThree, HeuristicTwo

public abstract class AbstractHeuristic
extends java.lang.Object

Author:
Eden_06

Constructor Summary
AbstractHeuristic()
           
 
Method Summary
abstract  double get(GameGrid current, GameGrid target)
           
 boolean isCompatible(GameGrid current, GameGrid target)
           
 boolean isCorrect(GameGrid current, GameGrid target)
           
 boolean isCorrect(GameGrid current, GameGrid target, int x, int y)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractHeuristic

public AbstractHeuristic()
Method Detail

isCompatible

public boolean isCompatible(GameGrid current,
                            GameGrid target)

isCorrect

public boolean isCorrect(GameGrid current,
                         GameGrid target)

isCorrect

public boolean isCorrect(GameGrid current,
                         GameGrid target,
                         int x,
                         int y)

get

public abstract double get(GameGrid current,
                           GameGrid target)