Class MazeState

java.lang.Object
mazealgo.model.algorithms.search.AState
mazealgo.model.algorithms.search.MazeState
All Implemented Interfaces:
Serializable

public class MazeState extends AState
A state in the maze search problem: a (row, column) cell. Equality is based on the cell coordinates so the same cell reached via different paths is treated as one state.
See Also:
  • Constructor Details

    • MazeState

      public MazeState(int row, int column)
  • Method Details

    • getRow

      public int getRow()
    • getColumn

      public int getColumn()
    • equals

      public boolean equals(Object other)
      Specified by:
      equals in class AState
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in class AState
    • toString

      public String toString()
      Specified by:
      toString in class AState