jadex.bdi.planlib.protocols
Class RPQPReceiverPlan
java.lang.Object
jadex.bdi.runtime.impl.AbstractPlan
jadex.bdi.runtime.Plan
jadex.bdi.planlib.protocols.AbstractReceiverPlan
jadex.bdi.planlib.protocols.RPQPReceiverPlan
- All Implemented Interfaces:
- ISuspendable, Serializable
public class RPQPReceiverPlan
- extends AbstractReceiverPlan
Receive a request and answer it.
- See Also:
- Serialized Form
| Fields inherited from class jadex.bdi.runtime.Plan |
lis |
| Methods inherited from class jadex.bdi.runtime.Plan |
aborted, createWaitAbstraction, dispatchSubgoalAndWait, dispatchSubgoalAndWait, getMonitor, isEventRegisteredInWaitqueue, resume, sendMessageAndWait, sendMessageAndWait, suspend, waitFor, waitForCondition, waitForCondition, waitForEver, waitForExternalCondition, waitForExternalCondition, waitForFactAdded, waitForFactAdded, waitForFactAddedOrRemoved, waitForFactAddedOrRemoved, waitForFactChanged, waitForFactChanged, waitForFactRemoved, waitForFactRemoved, waitForGoal, waitForGoal, waitForGoal, waitForGoal, waitForInternalEvent, waitForInternalEvent, waitForMessageEvent, waitForMessageEvent, waitForReply, waitForReply, waitForTick, waitForWaitAbstraction, waitForWaitAbstraction |
| Methods inherited from class jadex.bdi.runtime.impl.AbstractPlan |
createComponentIdentifier, createComponentIdentifier, createComponentIdentifier, createExpression, createExpression, createGoal, createInternalEvent, createMessageEvent, createResultListener, dispatchInternalEvent, dispatchSubgoal, dispatchTopLevelGoal, endAtomic, fail, fail, fail, getBeliefbase, getBody, getClock, getComponentIdentifier, getComponentName, getDispatchedElement, getEventbase, getException, getExpression, getExpressionbase, getExternalAccess, getFlyweight, getGoalbase, getInterpreter, getLifecycleState, getLogger, getParameter, getParameters, getParameterSet, getParameterSets, getPlanbase, getPlanElement, getPropertybase, getRCapability, getReason, getRPlan, getScope, getState, getTime, getType, getWaitqueue, hasParameter, hasParameterSet, killAgent, sendMessage, startAtomic, toString |
RPQPReceiverPlan
public RPQPReceiverPlan()
body
public void body()
- The body method is called on the
instatiated plan instance from the scheduler.
- Specified by:
body in class Plan
decideRequest
public Boolean decideRequest(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 Object executeRequest(Object request,
IComponentIdentifier initiator)
- Execute the request.
- Parameters:
request - The request.initiator - The requesting agent.
- Returns:
- The result.
getShortProtocolName
protected String getShortProtocolName()
- Get protocol abbrev name.
- Returns:
- The protocol abbrev name.
Copyright © 2010. All Rights Reserved.