Class RemoteActionPlan
- java.lang.Object
-
- jadex.bdiv3x.runtime.Plan
-
- jadex.bdi.examples.hunterprey_classic.creature.actsense.RemoteActionPlan
-
- Direct Known Subclasses:
EatPlan
,GetVisionPlan
,MovePlan
public abstract class RemoteActionPlan extends Plan
Offers a methods for interacting with the hunterprey environment.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class jadex.bdiv3x.runtime.Plan
Plan.PlanWaitAbstraction
-
-
Constructor Summary
Constructors Constructor Description RemoteActionPlan()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
failed()
When the plan has failed, assume that environment is down.IGoal
requestAction(java.lang.Object action)
Request an action from the environment.protected IComponentIdentifier
searchEnvironmentAgent()
Search the environent agent and store its AID in the beliefbase.-
Methods inherited from class jadex.bdiv3x.runtime.Plan
aborted, body, checkNotInAtomic, createExpression, createGoal, createInternalEvent, createMessageEvent, dispatchInternalEvent, dispatchSubgoal, dispatchSubgoalAndWait, dispatchSubgoalAndWait, dispatchTopLevelGoal, endAtomic, fail, fail, fail, getAgent, getBeliefbase, getClock, getComponentDescription, getComponentIdentifier, getComponentName, getDispatchedElement, getEventbase, getException, getExpression, getExpressionbase, getExternalAccess, getGoalbase, getLogger, getParameter, getParameters, getParameterSet, getParameterSets, getPlanbase, getPlanElement, getReason, getRPlan, getScope, getTime, getWaitqueue, hasParameter, hasParameterSet, killAgent, passed, sendMessage, sendMessageAndWait, sendMessageAndWait, startAtomic, toString, waitFor, waitForCondition, waitForCondition, waitForCondition, waitForConditionInline, waitForConditionInline, waitForEver, waitForFactAdded, waitForFactAdded, waitForFactChanged, waitForFactChanged, waitForFactRemoved, waitForFactRemoved, waitForGoalFinished, waitForGoalFinished, waitForGoalFinished, waitForGoalFinished, waitForInternalEvent, waitForInternalEvent, waitForMessageEvent, waitForMessageEvent, waitForReply, waitForReply, waitForReply, waitForReply, waitForTick
-
-
-
-
Method Detail
-
requestAction
public IGoal requestAction(java.lang.Object action) throws jadex.bdiv3.runtime.impl.GoalFailureException
Request an action from the environment.- Parameters:
action
- The action.- Returns:
- The finished goal.
- Throws:
jadex.bdiv3.runtime.impl.GoalFailureException
- when the request goal fails.
-
failed
public void failed()
When the plan has failed, assume that environment is down. Remove fact to enable new search for environment.
-
searchEnvironmentAgent
protected IComponentIdentifier searchEnvironmentAgent()
Search the environent agent and store its AID in the beliefbase.
-
-