Class AStarNode

  • All Implemented Interfaces:
    QueueElement

    public class AStarNode
    extends SearchNode
    Created by IntelliJ IDEA. User: pereira Date: Jun 19, 2005 Time: 1:07:17 PM Search node in an A* search.
    • Constructor Detail

      • AStarNode

        public AStarNode​(AStarState state,
                         AStarNode parent,
                         double cost)
        Create an A* search node with given state, parent, and cost.
        Parameters:
        state - the state
        parent - the parent
        cost - the cost
    • Method Detail

      • completionCost

        public double completionCost()
        Get the completion cost for the underlying state.
        Returns:
        the completion cost