Package jadex.bdi.planlib.protocols
Class RPQPReceiverPlan
- java.lang.Object
- 
- jadex.bdiv3x.runtime.Plan
- 
- jadex.bdi.planlib.protocols.AbstractReceiverPlan
- 
- jadex.bdi.planlib.protocols.RPQPReceiverPlan
 
 
 
- 
 public class RPQPReceiverPlan extends AbstractReceiverPlan Receive a request and answer it.
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class jadex.bdiv3x.runtime.PlanPlan.PlanWaitAbstraction
 
- 
 - 
Constructor SummaryConstructors Constructor Description RPQPReceiverPlan()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbody()The body method is called on the instantiated plan instance from the scheduler.java.lang.BooleandecideRequest(java.lang.Object request, IComponentIdentifier initiator)Decide about the request.java.lang.ObjectexecuteRequest(java.lang.Object request, IComponentIdentifier initiator)Execute the request.protected java.lang.StringgetShortProtocolName()Get protocol abbrev name.- 
Methods inherited from class jadex.bdi.planlib.protocols.AbstractReceiverPlanfailed, passed
 - 
Methods inherited from class jadex.bdiv3x.runtime.Planaborted, 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, 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- 
bodypublic void body() The body method is called on the instantiated plan instance from the scheduler.- Overrides:
- bodyin class- AbstractReceiverPlan
 
 - 
decideRequestpublic java.lang.Boolean decideRequest(java.lang.Object request, IComponentIdentifier initiator)Decide about the request.- Parameters:
- request- The request.
- initiator- The requesting agent.
- Returns:
- True, if should send agree. False for sending refuse. Exception/null for sending nothing.
 
 - 
executeRequestpublic java.lang.Object executeRequest(java.lang.Object request, IComponentIdentifier initiator)Execute the request.- Parameters:
- request- The request.
- initiator- The requesting agent.
- Returns:
- The result.
 
 - 
getShortProtocolNameprotected java.lang.String getShortProtocolName() Get protocol abbrev name.- Returns:
- The protocol abbrev name.
 
 
- 
 
-