Package jadex.bdi.runtime.impl
Class AbstractPlanBody
java.lang.Object
jadex.bdi.runtime.impl.AbstractPlanBody
- All Implemented Interfaces:
IPlanBody
- Direct Known Subclasses:
ClassPlanBody
,MethodPlanBody
Abstract base class for plan body implementations.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjadex.future.IFuture
<Void> Execute the plan body.abstract Class<?>[]
Get the aborted parameters.jadex.core.IComponent
getAgent()
Get the agent.getBody()
Get the body impl (object that is actually invoked).abstract Class<?>[]
Get the body parameters.abstract Class<?>[]
Get the failed parameters.abstract Class<?>[]
Get the passed parameters.getRPlan()
Get the rplan.Object[]
guessParameters
(Class<?>[] ptypes) Method that tries to guess the parameters for the method call.protected Object
internalInvokePart
(int part) Invoke a plan part.abstract Object
invokeAborted
(Object[] params) Invoke the plan aborted method.abstract Object
invokeBody
(Object[] params) Invoke the plan body.abstract Object
invokeFailed
(Object[] params) Invoke the plan failed method.abstract Object
invokePassed
(Object[] params) Invoke the plan passed method.
-
Field Details
-
rplan
The rplan. -
partfuture
The currently running plan part.
-
-
Constructor Details
-
AbstractPlanBody
Create a new plan body.
-
-
Method Details
-
getBody
Get the body impl (object that is actually invoked). -
executePlan
Execute the plan body.- Specified by:
executePlan
in interfaceIPlanBody
-
internalInvokePart
Invoke a plan part. -
invokeBody
Invoke the plan body. -
invokePassed
Invoke the plan passed method. -
invokeFailed
Invoke the plan failed method. -
invokeAborted
Invoke the plan aborted method. -
getBodyParameterTypes
Get the body parameters. -
getPassedParameterTypes
Get the passed parameters. -
getFailedParameterTypes
Get the failed parameters. -
getAbortedParameterTypes
Get the aborted parameters. -
guessParameters
Method that tries to guess the parameters for the method call. -
getRPlan
Get the rplan.- Returns:
- The rplan.
-
getAgent
public jadex.core.IComponent getAgent()Get the agent.- Returns:
- The agent
-