Package jadex.bdi.planlib.protocols
Class RPQPInitiatorPlan
- java.lang.Object
- 
- jadex.bdiv3x.runtime.Plan
- 
- jadex.bdi.planlib.protocols.AbstractInitiatorPlan
- 
- jadex.bdi.planlib.protocols.RPQPInitiatorPlan
 
 
 
- 
 public class RPQPInitiatorPlan extends AbstractInitiatorPlan The fipa request and query plan performs the initiator side of the fipa-request/query protocol. The parameters have to be specified in the goal. The result of the request is stored in the goal.
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class jadex.bdiv3x.runtime.PlanPlan.PlanWaitAbstraction
 
- 
 - 
Field SummaryFields Modifier and Type Field Description protected IMessageEventrequestThe request (must be saved because of conversation tracking).protected static java.lang.StringSTATUS_TIMEOUTThe state indicating a timeout in this plan.
 - 
Constructor SummaryConstructors Constructor Description RPQPInitiatorPlan()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbody()Perform the request.protected IMessageEventgetInitialMessage()Get the initial message.protected java.lang.StringgetShortProtocolName()Get protocol abbrev name.protected IMessageEventhandleFirstAnswer(IMessageEvent answer)Process the first answer.protected voidhandleSecondAnswer(IMessageEvent answer)Process the second answer.protected voidrequestFinished(boolean success, java.lang.Object result)Method, that is being called, when the request has finished.- 
Methods inherited from class jadex.bdi.planlib.protocols.AbstractInitiatorPlanaborted, getTimeout
 - 
Methods inherited from class jadex.bdiv3x.runtime.PlancheckNotInAtomic, createExpression, createGoal, createInternalEvent, createMessageEvent, dispatchInternalEvent, dispatchSubgoal, dispatchSubgoalAndWait, dispatchSubgoalAndWait, dispatchTopLevelGoal, endAtomic, fail, fail, fail, failed, 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
 
- 
 
- 
- 
- 
Field Detail- 
STATUS_TIMEOUTprotected static final java.lang.String STATUS_TIMEOUT The state indicating a timeout in this plan.- See Also:
- Constant Field Values
 
 - 
requestprotected IMessageEvent request The request (must be saved because of conversation tracking).
 
- 
 - 
Method Detail- 
bodypublic void body() Perform the request.- Overrides:
- bodyin class- AbstractInitiatorPlan
 
 - 
handleFirstAnswerprotected IMessageEvent handleFirstAnswer(IMessageEvent answer) Process the first answer.
 - 
handleSecondAnswerprotected void handleSecondAnswer(IMessageEvent answer) Process the second answer.
 - 
requestFinishedprotected void requestFinished(boolean success, java.lang.Object result)Method, that is being called, when the request has finished. Default implementation sets status and result on goal.- Parameters:
- success- The final status of the df search.
- result- The result object.
 
 - 
getInitialMessageprotected IMessageEvent getInitialMessage() Get the initial message.- Specified by:
- getInitialMessagein class- AbstractInitiatorPlan
 
 - 
getShortProtocolNameprotected java.lang.String getShortProtocolName() Get protocol abbrev name.- Returns:
- The protocol abbrev name.
 
 
- 
 
-