|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectai.search.informed.IntCostHeuristic<S>
public abstract class IntCostHeuristic<S extends SearchStateForIntCostFn>
This class represents a heuristic function that can be used to estimate the distance to the closest goal node for a given search state. Needless to say, heuristics are problem-specific.
Constructor Summary | |
---|---|
IntCostHeuristic()
|
Method Summary | |
---|---|
protected java.lang.Object |
clone()
This class does not support cloning and an Exception will be thrown if this method is called. |
abstract int |
goalDistance(S state)
This function returns an estimate of the distance from the given state to the closest goal state. |
abstract boolean |
isConsistent()
This function returns whether this heuristic is consistent. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IntCostHeuristic()
Method Detail |
---|
protected java.lang.Object clone() throws java.lang.CloneNotSupportedException
This class does not support cloning and an Exception will be thrown if this method is called.
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
- will be thrownpublic abstract boolean isConsistent()
This function returns whether this heuristic is consistent. A heuristic h(n) is consistent if, for every node n and every successor n’ of n generated by any action a, the estimated cost of reaching the goal from n is no greater than the step cost of getting to n’ plus the estimated cost of reaching the goal from n’: h(n) ≤ c(n, a, n’) + h(n’)
public abstract int goalDistance(S state)
This function returns an estimate of the distance from the given state to the closest goal state.
state
- the SearchStateForIntCostFn from which to estimate the
distance
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |