public class AStarEvaluationFunction extends HeuristicEvaluationFunction
f(n) = g(n) + h(n).
hf| Constructor and Description |
|---|
AStarEvaluationFunction()
Note: Do not forget to heuristic function before starting the search!
|
AStarEvaluationFunction(HeuristicFunction hf) |
| Modifier and Type | Method and Description |
|---|---|
double |
f(Node n)
Returns g(n) the cost to reach the node, plus h(n) the
heuristic cost to get from the specified node to the goal.
|
getHeuristicFunction, setHeuristicFunctionpublic AStarEvaluationFunction(HeuristicFunction hf)
public AStarEvaluationFunction()
public double f(Node n)
n - a node