File tree Expand file tree Collapse file tree 1 file changed +24
-2
lines changed
src/main/java/nl/uu/cs/aplib/mainConcepts Expand file tree Collapse file tree 1 file changed +24
-2
lines changed Original file line number Diff line number Diff line change @@ -276,7 +276,7 @@ PrimitiveGoal getDeepestFirstPrimGoal_andAllocateBudget() {
276
276
}
277
277
278
278
279
- private void makeInProgressAgain () {
279
+ void makeInProgressAgain () {
280
280
status .resetToInProgress ();
281
281
for (GoalStructure G : subgoals ) G .makeInProgressAgain ();
282
282
}
@@ -382,6 +382,28 @@ public PrimitiveGoal(Goal g) {
382
382
goal = g ;
383
383
}
384
384
385
+
386
+ // need to override these three methods to set the goal status... because we maintain it
387
+ // using two fields!! ANTI PATERN :( Should fix this...
388
+
389
+ @ Override
390
+ void setStatusToFail (String reason ) {
391
+ goal .status .setToFail (reason );
392
+ super .setStatusToFail (reason );
393
+ }
394
+
395
+ @ Override
396
+ void setStatusToSuccess (String info ) {
397
+ goal .status .setToSuccess (info );
398
+ super .setStatusToSuccess (info );
399
+ }
400
+
401
+ @ Override
402
+ void makeInProgressAgain () {
403
+ goal .status .resetToInProgress ();
404
+ super .makeInProgressAgain ();
405
+ }
406
+
385
407
}
386
-
408
+
387
409
}
You can’t perform that action at this time.
0 commit comments