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.Plan
Plan.PlanWaitAbstraction
-
-
Constructor Summary
Constructors Constructor Description RPQPReceiverPlan()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
body()
The body method is called on the instantiated plan instance from the scheduler.java.lang.Boolean
decideRequest(java.lang.Object request, IComponentIdentifier initiator)
Decide about the request.java.lang.Object
executeRequest(java.lang.Object request, IComponentIdentifier initiator)
Execute the request.protected java.lang.String
getShortProtocolName()
Get protocol abbrev name.-
Methods inherited from class jadex.bdi.planlib.protocols.AbstractReceiverPlan
failed, passed
-
Methods inherited from class jadex.bdiv3x.runtime.Plan
aborted, 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
-
body
public void body()
The body method is called on the instantiated plan instance from the scheduler.- Overrides:
body
in classAbstractReceiverPlan
-
decideRequest
public 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.
-
executeRequest
public java.lang.Object executeRequest(java.lang.Object request, IComponentIdentifier initiator)
Execute the request.- Parameters:
request
- The request.initiator
- The requesting agent.- Returns:
- The result.
-
getShortProtocolName
protected java.lang.String getShortProtocolName()
Get protocol abbrev name.- Returns:
- The protocol abbrev name.
-
-