Package edu.uky.ai.planning.ss
Class ForwardHeuristic
java.lang.Object
edu.uky.ai.planning.ss.ForwardHeuristic
- All Implemented Interfaces:
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 Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionForwardHeuristic
(StateSpaceHeuristic heuristic) Constructs a new forward heuristic. -
Method Summary
Modifier and TypeMethodDescriptiondouble
evaluate
(ForwardNode node) Returns an estimate of how much work remains to be done to convert the partial solution into a complete solution.
-
Field Details
-
heuristic
The heuristic to use
-
-
Constructor Details
-
ForwardHeuristic
Constructs a new forward heuristic.- Parameters:
heuristic
- the state space heuristic to use
-
-
Method Details
-
evaluate
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 interfaceHeuristic<ForwardNode>
- Parameters:
node
- the partial solution- Returns:
- an estimate of remaining work
-