Package jadex.bdi.runtime.impl
Class MethodPlanBody
java.lang.Object
jadex.bdi.runtime.impl.AbstractPlanBody
jadex.bdi.runtime.impl.MethodPlanBody
- All Implemented Interfaces:
IPlanBody
Implementation of a method as a plan body.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Object
The agent/capability object.protected Method
The method.Fields inherited from class jadex.bdi.runtime.impl.AbstractPlanBody
partfuture, rplan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionClass<?>[]
Get the aborted parameters.Class<?>[]
Get the body parameter types.Class<?>[]
Get the failed parameters.Class<?>[]
Get the passed parameters.invokeAborted
(Object[] params) Invoke the plan aborted method.invokeBody
(Object[] params) Invoke the body.invokeFailed
(Object[] params) Invoke the plan failed method.invokePassed
(Object[] params) Invoke the plan passed method.Methods inherited from class jadex.bdi.runtime.impl.AbstractPlanBody
executePlan, getAgent, getBody, getRPlan, guessParameters, internalInvokePart
-
Field Details
-
body
The method. -
agent
The agent/capability object.
-
-
Constructor Details
-
MethodPlanBody
Create a new plan body.
-
-
Method Details
-
invokeBody
Invoke the body.- Specified by:
invokeBody
in classAbstractPlanBody
-
invokePassed
Description copied from class:AbstractPlanBody
Invoke the plan passed method.- Specified by:
invokePassed
in classAbstractPlanBody
-
invokeFailed
Description copied from class:AbstractPlanBody
Invoke the plan failed method.- Specified by:
invokeFailed
in classAbstractPlanBody
-
invokeAborted
Description copied from class:AbstractPlanBody
Invoke the plan aborted method.- Specified by:
invokeAborted
in classAbstractPlanBody
-
getBodyParameterTypes
Get the body parameter types.- Specified by:
getBodyParameterTypes
in classAbstractPlanBody
-
getPassedParameterTypes
Description copied from class:AbstractPlanBody
Get the passed parameters.- Specified by:
getPassedParameterTypes
in classAbstractPlanBody
-
getFailedParameterTypes
Description copied from class:AbstractPlanBody
Get the failed parameters.- Specified by:
getFailedParameterTypes
in classAbstractPlanBody
-
getAbortedParameterTypes
Description copied from class:AbstractPlanBody
Get the aborted parameters.- Specified by:
getAbortedParameterTypes
in classAbstractPlanBody
-