You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The solution is to update the following step() function to instead return a boolean to indicate if the step (which could be an atomic action in the environment, or a sub-goal) has failed:
Then the intention selction machinery should to be updated to handle cases where a plan step returns false. If it does, then the plan must be aborted ie no further steps should be executed, and the plan itself should be failed (no mechanism to indicate plan failure exists yet either). The relevant code for this is here:
What is required is the ability to allow plan steps to fail. BDI plans are currently described by a sequence of plan steps as below:
jill/jill/src/test/java/io/github/agentsoz/jill/testprogram/PlanA.java
Lines 43 to 55 in 68aca1b
The solution is to update the following
step()
function to instead return a boolean to indicate if the step (which could be an atomic action in the environment, or a sub-goal) has failed:jill/jill/src/main/java/io/github/agentsoz/jill/lang/PlanStep.java
Line 33 in c481e8c
Then the intention selction machinery should to be updated to handle cases where a plan step returns
false
. If it does, then the plan must be aborted ie no further steps should be executed, and the plan itself should be failed (no mechanism to indicate plan failure exists yet either). The relevant code for this is here:jill/jill/src/main/java/io/github/agentsoz/jill/core/IntentionSelector.java
Lines 254 to 258 in c481e8c
The text was updated successfully, but these errors were encountered: