public class ParallelGoalPlanBody extends AbstractPlanBody implements OutputPlanBody
ParallelGoal.| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<Goal> |
completedGoals |
protected boolean |
dispatched |
protected GoalEvent |
failedGoal |
protected ParallelGoal |
parallelGoal |
| Constructor and Description |
|---|
ParallelGoalPlanBody() |
| Modifier and Type | Method and Description |
|---|---|
void |
action()
This method tries to achieve all subgoals of the
ParallelGoal to
be achieved in a parallel way. |
void |
onStart()
Initializes this plan.
|
void |
setGoalOutput(Goal goal)
Sets completed goals, and the failed goal, if there is one.
|
dispatchGoal, dispatchSubgoal, dispatchSubgoalAndListen, done, getBeliefBase, getCapability, getEndState, getGoal, getGoalEvent, getGoalEvent, getGoalEvent, getPlan, goalPerformed, init, setEndState, start, stopactionWrapper, block, block, getAgent, getBehaviourName, getDataStore, getExecutionState, getParent, getRestartCounter, handle, handleBlockEvent, handleRestartEvent, isRunnable, onEnd, reset, restart, root, setAgent, setBehaviourName, setDataStore, setExecutionStateprotected java.util.List<Goal> completedGoals
protected boolean dispatched
protected GoalEvent failedGoal
protected ParallelGoal parallelGoal
public void action()
ParallelGoal to
be achieved in a parallel way. If one of the subgoals fail, it stops the
plan body execution, and consequently all other subgoals not achieved yet
are dropped.action in class jade.core.behaviours.BehaviourBehaviour.action()public void onStart()
ParallelGoal. If not, it throws an
IllegalArgumentException.public void setGoalOutput(Goal goal)
setGoalOutput in interface OutputPlanBodygoal - the goal whose output parameters are to be set.OutputPlanBody.setGoalOutput(bdi4jade.goal.Goal)