Skip to content

Commit ce3196b

Browse files
Ruediger.LundeRuediger.Lunde
authored andcommitted
Return value of execute method fixed (NoOP).
1 parent 2ef8918 commit ce3196b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/aima/basic/vaccum/ModelBasedTVEVaccumAgentProgram.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package aima.basic.vaccum;
22

3+
import aima.basic.Agent;
34
import aima.basic.AgentProgram;
45
import aima.basic.Percept;
56

@@ -21,7 +22,7 @@ public String execute(Percept percept) {
2122
myModel.setLocationStatus(location, locationStatus);
2223

2324
if (myModel.bothLocationsClean()) {
24-
return "NoOp";
25+
return Agent.NO_OP;
2526
} else if (locationStatus.equals("Dirty")) {
2627
return "Suck";
2728
} else if (location.equals("A")) {

0 commit comments

Comments
 (0)