Class AStarIterator.AStarFunctions

Object
AStarFunctions
Enclosing class:
AStarIterator

public abstract static class AStarIterator.AStarFunctions extends Object
Defines the functions needed by A Star.
Author:
German E. Trouillet, Francisco G. Malbrán. Universidad Nacional de Córdoba (UNC)
  • Constructor Details

    • AStarFunctions

      public AStarFunctions(Node destination)
      Creates a new instance and sets up the destination node for the algorithm
  • Method Details

    • setDestination

      public void setDestination(Node destination)
      Sets up the destination node for the algorithm
    • cost

      public abstract double cost(AStarIterator.AStarNode n1, AStarIterator.AStarNode n2)
      Defines the cost of going from one node to another
    • h

      public abstract double h(Node n)
      Defines the heuristic function for n
    • getDest

      public Node getDest()