All Implemented Interfaces:
SearchStrategy, StateSpaceSearch, Serializable

public final class AStar extends AbstractStateSpaceSearch
This class implements A* search strategy.
See Also:
Serialized Form
  • Constructor Details

    • AStar

      public AStar()
      Creates a new AStar search strategy with default parameters.
    • AStar

      public AStar(int timeout, StateHeuristic.Name heuristic, double weight)
      Creates a new AStar search strategy.
      Parameters:
      timeout - the time out of the planner.
      heuristic - the heuristic to use to solve the planning problem.
      weight - the weight set to the heuristic.
  • Method Details

    • search

      public Node search(Problem codedProblem)
      Solves the planning problem and returns the first solution search found.
      Parameters:
      codedProblem - the problem to be solved. The problem cannot be null.
      Returns:
      a solution search or null if it does not exist.