Uses of Interface
puzzle.State

Packages that use State
Package
Description
Package for representing and solving puzzles.
Package for solving puzzles.
  • Uses of State in puzzle

    Subinterfaces of State in puzzle
    Modifier and Type
    Interface
    Description
    interface 
    Represents the state of a puzzle whose moves are described by two objects, i.e., from and to.
    Methods in puzzle that return State
    Modifier and Type
    Method
    Description
    State.clone()
    Returns a copy of the state.
  • Uses of State in puzzle.solver

    Methods in puzzle.solver that return State
    Modifier and Type
    Method
    Description
    Node.getState()
    Returns the state represented by the node.
    Methods in puzzle.solver with parameters of type State
    Modifier and Type
    Method
    Description
    BreadthFirstSearch.solve(State<T> state)
    Searches for the shortest solution for the puzzle starting from the state provided.
    BreadthFirstSearch.solveAndPrintSolution(State<T> state)
    Searches for the shortest solution for the puzzle starting from the state provided, and it also prints the solution to the standard output.
    Constructors in puzzle.solver with parameters of type State
    Modifier
    Constructor
    Description
     
    Node(State<T> state)
    Creates a Node without a parent, i.e., a root node.
     
    Node(State<T> state, Node<T> parent, T move)
    Creates a Node with a parent node.