aima.core.search.informed.HeuristicEvaluationFunction Maven / Gradle / Ivy
package aima.core.search.informed;
import aima.core.search.framework.SearchUtils;
import aima.core.search.framework.evalfunc.EvaluationFunction;
import aima.core.search.framework.evalfunc.HeuristicFunction;
/**
* Super class for all evaluation functions which make use of heuristics.
* Informed search algorithms use heuristics to estimate remaining costs to
* reach a goal state from a given node. Their evaluation functions only differ
* in the way how they combine the estimated remaining costs with the costs of
* the already known path to the node.
*
* @author Ruediger Lunde
*
*/
public abstract class HeuristicEvaluationFunction implements EvaluationFunction {
protected HeuristicFunction hf = SearchUtils.getZeroHeuristic();
public HeuristicFunction getHeuristicFunction() {
return hf;
}
public void setHeuristicFunction(HeuristicFunction hf) {
this.hf = hf;
}
}