Package jadex.bdi.planlib.protocols
Class AbstractInitiatorPlan
- java.lang.Object
- 
- jadex.bdiv3x.runtime.Plan
- 
- jadex.bdi.planlib.protocols.AbstractInitiatorPlan
 
 
- 
- Direct Known Subclasses:
- CNPInitiatorPlan,- DAInitiatorPlan,- EAInitiatorPlan,- RPQPInitiatorPlan
 
 public abstract class AbstractInitiatorPlan extends Plan This plan serves as a base class for initiator plans. It automatically handles protocol cancellation when the plan is aborted.
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class jadex.bdiv3x.runtime.PlanPlan.PlanWaitAbstraction
 
- 
 - 
Constructor SummaryConstructors Constructor Description AbstractInitiatorPlan()
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidaborted()Called when the plan is aborted, i.e., when the corresponding interaction goal is dropped.voidbody()Initialize the planprotected abstract IMessageEventgetInitialMessage()Get the initial message.longgetTimeout()Get the timeout.- 
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
 
- 
 
- 
- 
- 
Method Detail- 
getTimeoutpublic long getTimeout() Get the timeout.
 - 
abortedpublic void aborted() Called when the plan is aborted, i.e., when the corresponding interaction goal is dropped. Terminates the interaction using the FIPA-Cancel-Meta-Protocol.
 - 
getInitialMessageprotected abstract IMessageEvent getInitialMessage() Get the initial message. Has to be provided by subclasses. Needed for sending cancel message in correct conversation.
 
- 
 
-