public class SequentialGoalPlanBody extends AbstractPlanBody implements OutputPlanBody
| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<Goal> |
completedGoals |
protected Goal |
currentGoal |
protected GoalEvent |
failedGoal |
protected java.util.Iterator<Goal> |
it |
protected org.apache.commons.logging.Log |
log |
| Constructor and Description |
|---|
SequentialGoalPlanBody()
Created a new SequentialGoalPlan.
|
| Modifier and Type | Method and Description |
|---|---|
void |
action() |
void |
onStart()
Initializes this plan.
|
void |
setGoalOutput(Goal goal)
Sets the output parameters in the goal.
|
protected void |
setNextGoal(Goal previousGoal,
Goal goal)
Sets the parameters of the next goal to be executed based on the previous
goal execution.
|
dispatchGoal, dispatchProtectedGoal, dispatchProtectedSubgoal, dispatchProtectedSubgoalAndListen, dispatchSubgoal, dispatchSubgoalAndListen, done, getBeliefBase, 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 Goal currentGoal
protected GoalEvent failedGoal
protected java.util.Iterator<Goal> it
protected org.apache.commons.logging.Log log
public SequentialGoalPlanBody()
public void action()
action in class jade.core.behaviours.BehaviourBehaviour.action()public void onStart()
public void setGoalOutput(Goal goal)
OutputPlanBodysetGoalOutput in interface OutputPlanBodygoal - the goal whose output parameters are to be set.OutputPlanBody.setGoalOutput(bdi4jade.goal.Goal)protected void setNextGoal(Goal previousGoal, Goal goal) throws ParameterException
Parameter annotation.previousGoal - the previously executed goal.goal - the goal that is going to be dispatched.aParameterException