Skip to content

Commit e6e7dd8

Browse files
committed
readability improved.
1 parent e064a9e commit e6e7dd8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

aima-core/src/main/java/aima/core/search/online/LRTAStarAgent.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
*
4949
* @author Ciaran O'Reilly
5050
* @author Mike Stampone
51+
* @author Ruediger Lunde
5152
*/
5253
public class LRTAStarAgent<S, A extends Action> extends AbstractAgent {
5354

@@ -211,7 +212,7 @@ private void init() {
211212
private double lrtaCost(S s, A action, S sDelta) {
212213
// if s' is undefined then return h(s)
213214
if (null == sDelta) {
214-
return getHeuristicFunction().applyAsDouble(s);
215+
return h.applyAsDouble(s);
215216
}
216217
// else return c(s, a, s') + H[s']
217218
return problem.getStepCosts(s, action, sDelta)

0 commit comments

Comments
 (0)