Class PDPuzzleNode


  • public class PDPuzzleNode
    extends ai.libs.jaicore.problems.npuzzle.NPuzzleState
    • Field Summary

      • Fields inherited from class ai.libs.jaicore.problems.npuzzle.NPuzzleState

        board, emptyX, emptyY
    • Constructor Summary

      Constructors 
      Constructor Description
      PDPuzzleNode​(int[][] board, int emptyX, int emptyY)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      double getDistance()  
      int hashCode()  
      • Methods inherited from class ai.libs.jaicore.problems.npuzzle.NPuzzleState

        getBoard, getEmptyX, getEmptyY, getNumberOfWrongTiles, toString
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • PDPuzzleNode

        public PDPuzzleNode​(int[][] board,
                            int emptyX,
                            int emptyY)
    • Method Detail

      • getDistance

        public double getDistance()
        Overrides:
        getDistance in class ai.libs.jaicore.problems.npuzzle.NPuzzleState
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class ai.libs.jaicore.problems.npuzzle.NPuzzleState
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class ai.libs.jaicore.problems.npuzzle.NPuzzleState