Class ForwardHeuristic

java.lang.Object
edu.uky.ai.planning.ss.ForwardHeuristic
All Implemented Interfaces:
Heuristic<ForwardNode>

public class ForwardHeuristic extends Object implements Heuristic<ForwardNode>
A wrapper around a StateSpaceHeuristic which uses the given heuristic to estimate the distance from the current state in a forward search to the problem's goal.
Author:
Stephen G. Ware
  • Field Details

  • Constructor Details

    • ForwardHeuristic

      public ForwardHeuristic(StateSpaceHeuristic heuristic)
      Constructs a new forward heuristic.
      Parameters:
      heuristic - the state space heuristic to use
  • Method Details

    • evaluate

      public double evaluate(ForwardNode node)
      Description copied from interface: Heuristic
      Returns an estimate of how much work remains to be done to convert the partial solution into a complete solution.
      Specified by:
      evaluate in interface Heuristic<ForwardNode>
      Parameters:
      node - the partial solution
      Returns:
      an estimate of remaining work