Package jadex.bdiv3x.runtime
Class Plan
- java.lang.Object
- 
- jadex.bdiv3x.runtime.Plan
 
- 
- Direct Known Subclasses:
- AbstractInitiatorPlan,- AbstractMultipleAgentsPlan,- AbstractReceiverPlan,- AccessModelPlan,- ActivityPlan,- AddTargetPlan,- AddTargetPlan,- AddTargetPlan,- AlarmPlan,- AmbulancePlan,- AnalyseTargetPlan,- AnalyzeTargetPlan,- AnalyzeTargetPlan,- AnswerPingPlan,- AnswerPlan,- APLTesterPlan,- ArgumentsPlan,- ArgumentsWorkerPlan,- AtomicExceptionPlan,- BeanModifierPlan,- BeepPlan,- BeliefChangeCatchPlan,- BeliefChangePlan,- BeliefChangesPlan,- BeliefIncrementPlan,- BeliefNotFoundPlan,- BeliefSetAddPlan,- BeliefSetAddPlan,- BeliefSetAddPlan,- BeliefSetChangesPlan,- BeliefSetContainsPlan,- BeliefSetRemovePlan,- BeliefTriggerPlan,- BeliefValuePlan,- BenchmarkPlan,- BurnPlan,- BurnPlanEnv,- BuyItemPlan,- CallbackPlan,- CarryOrePlan,- CarryOrePlan,- CarryOrePlan,- CarryPlan,- CarryPlan,- CarryPlan,- CheckingPlan,- CheckingPlanEnv,- ChooseMovePlan,- ChooseMovePlan,- CleanUpWastePlan,- CleanUpWastePlan,- ClearChemicalsPlan,- ClearChemicalsPlan,- ClearPlan,- ClearPlan,- ClearPlan,- CMApproveCancelPlan,- CMHandlerPlan,- CMInitiatorPlan,- CMTestPlan,- CNPEvaluateProposalsPlan,- CNPEvaluatorPlan,- CNPExecuteTaskPlan,- CNPMakeProposalPlan,- CNPQueryNextroundInfoPlan,- CodecTestPlan,- ConditionPlan,- ConfigElementRefEndWorkerPlan,- ConfigElementRefPlan,- ConfigElementRefWorkerPlan,- ConfigureBlocksPlan,- ContextPlan,- CountdownPlan,- CountdownTesterPlan,- CreatePlan,- DADecideIterationGenPlan,- DADecideIterationPlan,- DADecideParticipationPlan,- DAMakeProposalPlan,- DealerGameRoundMasterPlan,- DealerGameRoundPlayerPlan,- DealerRegisterPlayerPlan,- DeletionPlan,- DependentBeliefPlan,- DispatchCompleteVisionPlan,- DispatchVisionPlan,- DispatchVisionPlan,- DispatchWorldSizePlan,- DistributeWorkPlan,- DoPingPlan,- DropGoalPlan,- DropWastePlan,- DropWastePlan,- DropWastePlan,- DumbHunterPlan,- DumbHunterPlan,- DumbPreyPlan,- DumbPreyPlan,- DynamicBeliefPlan,- EADecideAcceptancePlan,- EADecideIterationGenPlan,- EADecideIterationPlan,- EADecideParticipationPlan,- EAMakeProposalPlan,- EatFoodPlan,- EatPlan,- EatPlan,- EchoPlan,- EmptyPlan,- EndStateAbortPlan,- EndStateAbortWorkerPlan,- EndStateInitiatorPlan,- EndStatePlan,- EndStateWorkerPlan,- EndStateWorkerSendReportsPlan,- EndStateWorkerTestPlan,- EnglishFrenchTranslationPlanE1,- EnglishFrenchTranslationPlanE2,- EnglishGermanAddWordPlanC1,- EnglishGermanAddWordPlanC2,- EnglishGermanAddWordPlanC3,- EnglishGermanAddWordPlanD1,- EnglishGermanAddWordPlanD2,- EnglishGermanTranslationPlanB1,- EnglishGermanTranslationPlanB2,- EnglishGermanTranslationPlanB3,- EnglishGermanTranslationPlanB4,- EnglishGermanTranslationPlanB6,- EnglishGermanTranslationPlanC1,- EnglishGermanTranslationPlanC2,- EnglishGermanTranslationPlanC3,- EnglishGermanTranslationPlanD1,- EnglishGermanTranslationPlanD2,- EnglishGermanTranslationPlanE1,- EnglishGermanTranslationPlanE2,- EnglishGermanTranslationPlanF1,- EnglishGermanTranslationPlanF2,- EnglishGermanTranslationPlanG1,- ErrorPlan,- EscapePlan,- EscapePreyPlan,- EvaluationmodesPlan,- EventHandlerPlan,- ExecuteOrderPlan,- ExploreMapPlan,- ExploreMapPlan,- ExpressionParameterPlan,- ExtinguishFirePlan,- ExtinguishFirePlan,- FactAdderPlan,- FactFetcherPlan,- FindEnglishSynonymsPlanD2,- FindTargetsPlan,- FinishedPlan,- FireBrigadePlan,- FlagPlan,- GenerateGoalPlan,- GetExternalAccessPlan,- GoalConditionsPlan,- GoalFinishedTesterPlan,- GoalInhibitionPlan,- GoalReferenceParameterSetPlan,- GoalRegressionTestPlan,- GoodbyeWorldPlan,- GoPlan,- GoPlanEnv,- GotoLocationPlan,- GuiOpenClosePlan,- GUIPlanF1,- HandleDisasterPlan,- HandleDisasterPlan,- HandleForcesPlan,- HandlePlan,- HelloWorldPlan,- HuntPlan,- HuntPlan,- ICNPEvaluatorPlan,- ICNPExecuteTaskPlan,- ICNPMakeProposalPlan,- ICNPNextroundInfoPlan,- InformNewTargetPlan,- InformNewTargetPlan,- InformNewTargetPlan,- InformNewTargetPlan,- InformNewTargetPlan,- InformNewTargetPlan,- InitialTransactionPlan,- InteractionGoalCreationPlan,- InterceptorPlan,- LeakerPlan,- LeastSeenWalkPlan,- LeastSeenWalkPlan,- LoadBatteryPlan,- LoadBatteryPlan,- LocalDropWasteActionPlan,- LocalGetVisionActionPlan,- LocalPickUpWasteActionPlan,- MaintainTestPlan,- MakeProposalPlan,- ManagerDealerRegisterPlan,- ManagerGuiUpdatePlan,- ManualModifiedPlan,- MemorizePositionsPlan,- MemorizePositionsPlan,- MessageMatchingPlan,- MessageReceiverPlan,- MessageReceiverPlan,- MessageSenderPlan,- MessagingTestPlan,- MetaLevelReasoningPlan,- MicroStepPlan,- MLRPlan,- MLRSortTesterPlan,- MLRTesterPlan,- MovePlan,- MovePlan,- MovePlan,- MoveToLocationPlan,- MoveToLocationPlan,- MoveToLocationPlan,- MoveToLocationPlan,- MoveToLocationPlan,- MoveToLocationPlan,- MultipleTesterPlan,- NotifyAdminPlan,- NotUnderstoodPlan,- ObserveAgentPlan,- PaintOneEuroPlan,- ParallelActivationPlan,- ParameterPlan,- ParameterProtectionPlan,- ParameterSetPlan,- PassedFailedPlan,- PatrolPlan,- PatrolPlan,- PickUpPlan,- PickUpPlanEnv,- PickUpWastePlan,- PickUpWastePlan,- PickUpWastePlan,- PingingPlan,- PlanBindingTesterPlan,- PlanConditionTesterPlan,- PlanPrioritiesTesterPlan,- PlayerDeclineGamePlan,- PlayerJoinGamePlan,- PlayerPlayGameRoundPlan,- PlayerSearchDealerPlan,- PlayGamePlan,- PlaySongPlan,- PreconditionTesterPlan,- PrintResultPlan,- PrintRichPlan,- ProcessTranslationRequestPlanE1,- ProcessTranslationRequestPlanE2,- ProduceOrePlan,- ProduceOrePlan,- ProduceOrePlan,- ProducerPlan,- ProducerPlan,- ProductionPlan,- PropagateGameStatePlan,- PurchaseBookPlan,- RandomWalkPlan,- RandomWalkPlan,- RandomWalkPlan,- RandomWalkPlan,- RandomWalkPlan,- ReceiveStreamPlan,- RecurTestPlan,- RemoteActionPlan,- RemoteActionPlan,- RemoveForbiddenFoodPlan,- RemoverPlan,- RemoveWordPlanE3,- RepeatabilityPlan,- RequestMasterPlan,- RequestReceiverPlan,- RequestSenderPlan,- ResultPlan,- ResultSetterPlan,- RPDecideRequestPlan,- RPExecuteActionPlan,- SearchHelpPlan,- SearchTranslationOnlineB4,- SellItemPlan,- SendAndWaitPlan,- SendEmailPlan,- SendICQPlan,- SendStreamPlan,- SendXMPPPlan,- SentryFindTargetsPlan,- SequentialActivationPlan,- ServerPlanG1,- ServiceReasonPlan,- ServicesPlan,- ShutdownTesterPlan,- SimpleEventHandlerPlan,- SimulationEndPlan,- SimulationTickerPlan,- SPHandleUpdatePlan,- SPInitiationPlan,- SPReceptionPlan,- SPSubmitUpdatePlan,- StackBlocksPlan,- StartPeerPlan,- StoreReportPlan,- SubgoalHandlingPlan,- SubgoalTimeoutPlan,- SyncResultListenerTestPlan,- SyncResultListenerTriggerPlan,- SyncSettingsAlarmsPlan,- TakePlan,- TakePlanEnv,- TerminateAgentPlan,- TestAbortPlan,- TestContextPlan,- TestFailPlan,- TestInlinePlan,- TestPassPlan,- ThankYouPlanC3,- ThankYouPlanC4,- TimeoutExceptionPlan,- ToStartPlan,- TreatVictimPlan,- TreatVictimsPlan,- TriggerPlan,- UpdateEnvironmentPlan,- UpdateGameStatePlan,- UpdateVisionPlan,- UpdatingBeliefPlan,- WaitForBeliefPlan,- WaitForBeliefSetPlan,- WaitForFactAddedPlan,- WaitForMaxLongPlan,- WaitForPlan,- WaitqueueTestPlan,- WakeupPlan,- WanderAroundPlan,- WanderPlan,- WorkPlan,- WriteResultsPlan
 
 public abstract class Plan extends java.lang.ObjectDummy class for loading v2 examples using v3x.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description classPlan.PlanWaitAbstractionThe plan wait abstraction extends wait abstraction with convenience methods.
 - 
Field SummaryFields Modifier and Type Field Description protected IInternalAccessagentThe internal access.protected jadex.bdiv3.runtime.impl.RPlanrplanThe rplan.
 - 
Constructor SummaryConstructors Constructor Description Plan()
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidaborted()The plan was aborted (because of conditional goal success or termination from outside).abstract voidbody()The body method is called on the instantiated plan instance from the scheduler.protected voidcheckNotInAtomic()Check if wait is called in atomic mode.IExpressioncreateExpression(java.lang.String exp)Get an expression by name.IGoalcreateGoal(java.lang.String type)Create a goal from a template goal.IInternalEventcreateInternalEvent(java.lang.String type)Create a new intenal event.<T> IMessageEvent<T>createMessageEvent(java.lang.String type)Create a new message event.voiddispatchInternalEvent(IInternalEvent event)Dispatch an internal event.IFuture<java.lang.Void>dispatchSubgoal(IGoal subgoal)Dispatch a new subgoal.voiddispatchSubgoalAndWait(IGoal goal)Dispatch a new top-level goal.voiddispatchSubgoalAndWait(IGoal goal, long timeout)Dispatch a new top-level goal.voiddispatchTopLevelGoal(IGoal goal)Dispatch a new top-level goal.voidendAtomic()End an atomic transaction.voidfail()Let the plan fail.voidfail(java.lang.String message, java.lang.Throwable cause)Let a plan fail.voidfail(java.lang.Throwable cause)Let a plan fail.voidfailed()The failed method is called on plan failure/abort.IInternalAccessgetAgent()Get the agent.IBeliefbasegetBeliefbase()Get the beliefbase.IClockServicegetClock()Get the clock.IComponentDescriptiongetComponentDescription()Get the agent description.IComponentIdentifiergetComponentIdentifier()Get the agent identifier.java.lang.StringgetComponentName()Get the agent name.java.lang.ObjectgetDispatchedElement()Get the reason this plan was created for.IEventbasegetEventbase()Get the event base.java.lang.ExceptiongetException()Get the uncatched exception that occurred in the body (if any).IExpressiongetExpression(java.lang.String name)Get an expression by name.IExpressionbasegetExpressionbase()Get the expression base.IExternalAccessgetExternalAccess()Get the scope.IGoalbasegetGoalbase()Get the goal base.java.util.logging.LoggergetLogger()Get the logger.IParametergetParameter(java.lang.String name)Get a parameter.IParameter[]getParameters()Get all parameters.IParameterSetgetParameterSet(java.lang.String name)Get a parameter.IParameterSet[]getParameterSets()Get all parameter sets.IPlanbasegetPlanbase()Get the plan base.IPlangetPlanElement()Get the plan interface.java.lang.ObjectgetReason()Get the reason this plan was created for.IPlangetRPlan()Get the rplan.ICapabilitygetScope()Get the scope.longgetTime()Get the current time.Plan.PlanWaitAbstractiongetWaitqueue()Get the waitqueue.booleanhasParameter(java.lang.String name)Has the element a parameter element.booleanhasParameterSet(java.lang.String name)Has the element a parameter set element.voidkillAgent()Kill this agent.voidpassed()The passed method is called on plan success.IFuture<java.lang.Void>sendMessage(IMessageEvent<?> me)Send a message.<T> IMessageEvent<T>sendMessageAndWait(IMessageEvent<T> me)Send a message and wait for the answer.<T> IMessageEvent<T>sendMessageAndWait(IMessageEvent<T> me, long timeout)Send a message and wait for the answer.voidstartAtomic()Start an atomic transaction.java.lang.StringtoString()Get the string representation.voidwaitFor(long timeout)Wait for a some time.voidwaitForCondition(java.lang.String name)Wait for a condition.voidwaitForCondition(java.lang.String name, long timeout)Wait for a condition.voidwaitForCondition(java.lang.String name, long timeout, java.util.Map<java.lang.String,java.lang.Object> values)Wait for a condition.voidwaitForConditionInline(java.lang.String expr)Wait for a condition.voidwaitForConditionInline(java.lang.String expr, long timeout)Wait for a condition.voidwaitForEver()Wait for ever (is aborted on goal success/failure).java.lang.ObjectwaitForFactAdded(java.lang.String belname)Wait for a fact added.java.lang.ObjectwaitForFactAdded(java.lang.String belname, long timeout)Wait for a fact added.java.lang.ObjectwaitForFactChanged(java.lang.String belname)Wait for a fact change of a belief.java.lang.ObjectwaitForFactChanged(java.lang.String belname, long timeout)Wait for a fact change of a belief.java.lang.ObjectwaitForFactRemoved(java.lang.String belname)Wait for a fact added.java.lang.ObjectwaitForFactRemoved(java.lang.String belname, long timeout)Wait for a fact added.voidwaitForGoalFinished(IGoal goal)Wait for a goal to be finished.voidwaitForGoalFinished(IGoal goal, long timeout)Wait for a goal to be finished.IGoalwaitForGoalFinished(java.lang.String type)Wait for a goal.IGoalwaitForGoalFinished(java.lang.String type, long timeout)Wait for a goal.IInternalEventwaitForInternalEvent(java.lang.String type)Wait for an internal event.IInternalEventwaitForInternalEvent(java.lang.String type, long timeout)Wait for an internal event.IMessageEventwaitForMessageEvent(java.lang.String type)Wait for a message event.IMessageEventwaitForMessageEvent(java.lang.String type, long timeout)Wait for a message event.IMessageEventwaitForReply(IMessageEvent event)Wait for a reply to a message event.IMessageEventwaitForReply(IMessageEvent event, long timeout)Wait for a reply to a message event.IMessageEventwaitForReply(IMessageEvent event, java.lang.String type)Wait for a reply to a message event.IMessageEventwaitForReply(IMessageEvent event, java.lang.String type, long timeout)Wait for a reply to a message event.voidwaitForTick()Wait for next tick.
 
- 
- 
- 
Field Detail- 
agentprotected IInternalAccess agent The internal access.
 - 
rplanprotected jadex.bdiv3.runtime.impl.RPlan rplan The rplan.
 
- 
 - 
Method Detail- 
bodypublic abstract void body() The body method is called on the instantiated plan instance from the scheduler.
 - 
passedpublic void passed() The passed method is called on plan success.
 - 
failedpublic void failed() The failed method is called on plan failure/abort.
 - 
abortedpublic void aborted() The plan was aborted (because of conditional goal success or termination from outside).
 - 
waitForpublic void waitFor(long timeout) Wait for a some time.- Parameters:
- duration- The duration.
 
 - 
waitForTickpublic void waitForTick() Wait for next tick.
 - 
createGoalpublic IGoal createGoal(java.lang.String type) Create a goal from a template goal. To be processed, the goal has to be dispatched as subgoal or adopted as top-level goal.- Parameters:
- type- The template goal name as specified in the ADF.
- Returns:
- The created goal.
 
 - 
dispatchSubgoalAndWaitpublic void dispatchSubgoalAndWait(IGoal goal) Dispatch a new top-level goal.- Parameters:
- goal- The new goal.
 
 - 
dispatchSubgoalAndWaitpublic void dispatchSubgoalAndWait(IGoal goal, long timeout) Dispatch a new top-level goal.- Parameters:
- goal- The new goal.
 
 - 
waitForGoalFinishedpublic IGoal waitForGoalFinished(java.lang.String type) Wait for a goal.- Parameters:
- type- The goal type.
 
 - 
waitForGoalFinishedpublic IGoal waitForGoalFinished(java.lang.String type, long timeout) Wait for a goal.- Parameters:
- type- The goal type.
- timeout- The timeout.
 
 - 
waitForGoalFinishedpublic void waitForGoalFinished(IGoal goal) Wait for a goal to be finished.- Parameters:
- goal- The goal.
 
 - 
waitForGoalFinishedpublic void waitForGoalFinished(IGoal goal, long timeout) Wait for a goal to be finished.- Parameters:
- goal- The goal.
 
 - 
waitForMessageEventpublic IMessageEvent waitForMessageEvent(java.lang.String type) Wait for a message event.- Parameters:
- type- The message event type.
 
 - 
waitForMessageEventpublic IMessageEvent waitForMessageEvent(java.lang.String type, long timeout) Wait for a message event.- Parameters:
- type- The message event type.
- timeout- The timeout.
 
 - 
waitForReplypublic IMessageEvent waitForReply(IMessageEvent event) Wait for a reply to a message event.- Parameters:
- event- The message event.
 
 - 
waitForReplypublic IMessageEvent waitForReply(IMessageEvent event, long timeout) Wait for a reply to a message event.- Parameters:
- event- The message event.
- timeout- The timeout.
 
 - 
waitForReplypublic IMessageEvent waitForReply(IMessageEvent event, java.lang.String type) Wait for a reply to a message event.- Parameters:
- event- The message event.
- type- The reply.
 
 - 
waitForReplypublic IMessageEvent waitForReply(IMessageEvent event, java.lang.String type, long timeout) Wait for a reply to a message event.- Parameters:
- event- The message event.
- type- The reply.
- timeout- The timeout.
 
 - 
waitForInternalEventpublic IInternalEvent waitForInternalEvent(java.lang.String type) Wait for an internal event.- Parameters:
- type- The internal event type.
 
 - 
waitForInternalEventpublic IInternalEvent waitForInternalEvent(java.lang.String type, long timeout) Wait for an internal event.- Parameters:
- type- The internal event type.
- timeout- The timeout.
 
 - 
killAgentpublic void killAgent() Kill this agent.
 - 
getLoggerpublic java.util.logging.Logger getLogger() Get the logger.- Returns:
- The logger.
 
 - 
getBeliefbasepublic IBeliefbase getBeliefbase() Get the beliefbase.- Returns:
- The beliefbase.
 
 - 
getRPlanpublic IPlan getRPlan() Get the rplan.- Returns:
- The rplan
 
 - 
getReasonpublic java.lang.Object getReason() Get the reason this plan was created for.- Returns:
- The reason.
 
 - 
getDispatchedElementpublic java.lang.Object getDispatchedElement() Get the reason this plan was created for.- Returns:
- The reason.
 
 - 
getParameterpublic IParameter getParameter(java.lang.String name) Get a parameter.- Parameters:
- name- The name.
- Returns:
- The parameter.
 
 - 
getParameterSetpublic IParameterSet getParameterSet(java.lang.String name) Get a parameter.- Parameters:
- name- The name.
- Returns:
- The parameter.
 
 - 
getExpressionpublic IExpression getExpression(java.lang.String name) Get an expression by name.- Returns:
- The expression.
 
 - 
createExpressionpublic IExpression createExpression(java.lang.String exp) Get an expression by name.- Returns:
- The expression.
 
 - 
sendMessageAndWaitpublic <T> IMessageEvent<T> sendMessageAndWait(IMessageEvent<T> me) Send a message and wait for the answer.- Parameters:
- me- The message event.
- Returns:
- The result event.
 
 - 
sendMessageAndWaitpublic <T> IMessageEvent<T> sendMessageAndWait(IMessageEvent<T> me, long timeout) Send a message and wait for the answer. Adds a reply_with entry if not present, for tracking the conversation.- Parameters:
- me- The message event.
- timeout- The timeout.
- Returns:
- The result event.
 
 - 
failpublic void fail() Let the plan fail.
 - 
failpublic void fail(java.lang.Throwable cause) Let a plan fail.- Parameters:
- cause- The cause.
 
 - 
failpublic void fail(java.lang.String message, java.lang.Throwable cause)Let a plan fail.- Parameters:
- message- The message.
- cause- The cause.
 
 - 
getScopepublic ICapability getScope() Get the scope.- Returns:
- The scope.
 
 - 
startAtomicpublic void startAtomic() Start an atomic transaction. All possible side-effects (i.e. triggered conditions) of internal changes (e.g. belief changes) will be delayed and evaluated after endAtomic() has been called.- See Also:
- endAtomic()
 
 - 
endAtomicpublic void endAtomic() End an atomic transaction. Side-effects (i.e. triggered conditions) of all internal changes (e.g. belief changes) performed after the last call to startAtomic() will now be evaluated and performed.- See Also:
- startAtomic()
 
 - 
dispatchSubgoalpublic IFuture<java.lang.Void> dispatchSubgoal(IGoal subgoal) Dispatch a new subgoal.- Parameters:
- subgoal- The new subgoal. Note: plan step is interrupted after call.
 
 - 
toStringpublic java.lang.String toString() Get the string representation.- Overrides:
- toStringin class- java.lang.Object
- Returns:
- The string representation.
 
 - 
getComponentNamepublic java.lang.String getComponentName() Get the agent name.- Returns:
- The agent name.
 
 - 
getComponentIdentifierpublic IComponentIdentifier getComponentIdentifier() Get the agent identifier.- Returns:
- The agent identifier.
 
 - 
getComponentDescriptionpublic IComponentDescription getComponentDescription() Get the agent description.- Returns:
- The agent description.
 
 - 
getExceptionpublic java.lang.Exception getException() Get the uncatched exception that occurred in the body (if any). Method should only be called when in failed() method.- Returns:
- The exception.
 
 - 
getGoalbasepublic IGoalbase getGoalbase() Get the goal base.- Returns:
- The goal base.
 
 - 
getPlanbasepublic IPlanbase getPlanbase() Get the plan base.- Returns:
- The plan base.
 
 - 
getEventbasepublic IEventbase getEventbase() Get the event base.- Returns:
- The event base.
 
 - 
getExpressionbasepublic IExpressionbase getExpressionbase() Get the expression base.- Returns:
- The expression base.
 
 - 
getClockpublic IClockService getClock() Get the clock.- Returns:
- The clock.
 
 - 
getTimepublic long getTime() Get the current time. The time unit depends on the currently running clock implementation. For the default system clock, the time value adheres to the time representation as used bySystem.currentTimeMillis(), i.e., the value of milliseconds passed since 0:00 'o clock, January 1st, 1970, UTC. For custom simulation clocks, arbitrary representations can be used.- Returns:
- The current time.
 
 - 
dispatchTopLevelGoalpublic void dispatchTopLevelGoal(IGoal goal) Dispatch a new top-level goal.- Parameters:
- goal- The new goal. Note: plan step is interrupted after call.
 
 - 
sendMessagepublic IFuture<java.lang.Void> sendMessage(IMessageEvent<?> me) Send a message.- Parameters:
- me- The message event.
 
 - 
dispatchInternalEventpublic void dispatchInternalEvent(IInternalEvent event) Dispatch an internal event.- Parameters:
- event- The event. Note: plan step is interrupted after call.
 
 - 
createMessageEventpublic <T> IMessageEvent<T> createMessageEvent(java.lang.String type) Create a new message event.- Returns:
- The new message event.
 
 - 
createInternalEventpublic IInternalEvent createInternalEvent(java.lang.String type) Create a new intenal event.- Returns:
- The new intenal event.
 
 - 
getExternalAccesspublic IExternalAccess getExternalAccess() Get the scope.- Returns:
- The scope.
 
 - 
getParameterspublic IParameter[] getParameters() Get all parameters.- Returns:
- All parameters.
 
 - 
getParameterSetspublic IParameterSet[] getParameterSets() Get all parameter sets.- Returns:
- All parameter sets.
 
 - 
hasParameterpublic boolean hasParameter(java.lang.String name) Has the element a parameter element.- Parameters:
- name- The name.
- Returns:
- True, if it has the parameter.
 
 - 
hasParameterSetpublic boolean hasParameterSet(java.lang.String name) Has the element a parameter set element.- Parameters:
- name- The name.
- Returns:
- True, if it has the parameter set.
 
 - 
getAgentpublic IInternalAccess getAgent() Get the agent.- Returns:
- The agent
 
 - 
getWaitqueuepublic Plan.PlanWaitAbstraction getWaitqueue() Get the waitqueue.
 - 
waitForFactChangedpublic java.lang.Object waitForFactChanged(java.lang.String belname) Wait for a fact change of a belief.
 - 
waitForFactChangedpublic java.lang.Object waitForFactChanged(java.lang.String belname, long timeout)Wait for a fact change of a belief.
 - 
waitForFactAddedpublic java.lang.Object waitForFactAdded(java.lang.String belname) Wait for a fact added.
 - 
waitForFactAddedpublic java.lang.Object waitForFactAdded(java.lang.String belname, long timeout)Wait for a fact added.
 - 
waitForFactRemovedpublic java.lang.Object waitForFactRemoved(java.lang.String belname) Wait for a fact added.
 - 
waitForFactRemovedpublic java.lang.Object waitForFactRemoved(java.lang.String belname, long timeout)Wait for a fact added.
 - 
waitForConditionpublic void waitForCondition(java.lang.String name) Wait for a condition.- Parameters:
- name- The name of the condition.
 
 - 
waitForConditionpublic void waitForCondition(java.lang.String name, long timeout)Wait for a condition.- Parameters:
- name- The name of the condition.
- timeout- The wait timeout.
 
 - 
waitForConditionpublic void waitForCondition(java.lang.String name, long timeout, java.util.Map<java.lang.String,java.lang.Object> values)Wait for a condition.- Parameters:
- name- The name of the condition.
- timeout- The wait timeout.
- values- Extra parameter values for the condition, if any.
 
 - 
waitForConditionInlinepublic void waitForConditionInline(java.lang.String expr) Wait for a condition.- Parameters:
- name- The name of the condition.
 
 - 
waitForConditionInlinepublic void waitForConditionInline(java.lang.String expr, long timeout)Wait for a condition.- Parameters:
- name- The name of the condition.
 
 - 
waitForEverpublic void waitForEver() Wait for ever (is aborted on goal success/failure).
 - 
getPlanElementpublic IPlan getPlanElement() Get the plan interface.
 - 
checkNotInAtomicprotected void checkNotInAtomic() Check if wait is called in atomic mode.- Throws:
- java.lang.RuntimeException- in case is in atomic block.
 
 
- 
 
-