|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EvaluationFunction<K extends AgentAction,S extends AgentState>
A function f(n) which rates nodes on whether they should be expanded next; nodes with lower f(n) will generally be expanded first.
Evaluation function implementations depend on a heuristic function, in which case a constructor that accepts a heuristic function should be provided.
Method Summary | |
---|---|
double |
estimate(SearchNode<K,S> theNode)
Returns an evaluation of a search node, guiding the choice of which node to expand. |
HeuristicFunction<K,S,? extends SearchProblem<K,S>> |
getHeuristicFunction()
Returns the heuristic function used in this evaluation function. |
Method Detail |
---|
double estimate(SearchNode<K,S> theNode)
theNode
-
HeuristicFunction<K,S,? extends SearchProblem<K,S>> getHeuristicFunction()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |