jadex.bdi.planlib.protocols.cancelmeta
Class CMHandlerPlan

java.lang.Object
  extended by jadex.bdi.runtime.impl.AbstractPlan
      extended by jadex.bdi.runtime.Plan
          extended by jadex.bdi.planlib.protocols.cancelmeta.CMHandlerPlan
All Implemented Interfaces:
ISuspendable, java.io.Serializable

public class CMHandlerPlan
extends Plan

Receiver plan for FIPA-Cancel-Meta-Protocol. Waits for cancel message to terminate a conversation by dropping the supplied interaction goal.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class jadex.bdi.runtime.Plan
Plan.SyncResultListener
 
Field Summary
protected  IMessageEvent cancel_msg
          The cancel message (if any).
protected  java.lang.Object failure_reason
          The failure reason, when cancel was not successful.
 
Fields inherited from class jadex.bdi.runtime.Plan
lis
 
Fields inherited from class jadex.bdi.runtime.impl.AbstractPlan
interpreter, planinit
 
Constructor Summary
CMHandlerPlan()
           
 
Method Summary
 void aborted()
          Called when the plan is aborted, i.e., when the corresponding interaction goal is dropped.
 void body()
          The plan body.
 
Methods inherited from class jadex.bdi.runtime.Plan
createWaitAbstraction, dispatchSubgoalAndWait, dispatchSubgoalAndWait, failed, getMonitor, isEventRegisteredInWaitqueue, passed, 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, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

failure_reason

protected java.lang.Object failure_reason
The failure reason, when cancel was not successful.


cancel_msg

protected IMessageEvent cancel_msg
The cancel message (if any).

Constructor Detail

CMHandlerPlan

public CMHandlerPlan()
Method Detail

body

public void body()
The plan body.

Specified by:
body in class Plan

aborted

public void aborted()
Called when the plan is aborted, i.e., when the corresponding interaction goal is dropped.

Overrides:
aborted in class Plan


Copyright © 2010. All Rights Reserved.