Package jadex.bdi.runtime.impl
Class ClassPlanBody
java.lang.Object
jadex.bdi.runtime.impl.AbstractPlanBody
jadex.bdi.runtime.impl.ClassPlanBody
- All Implemented Interfaces:
IPlanBody
Plan body that is represented as complete class.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Method
The aborted method.protected Class
<?> The body class.protected Method
The body method.protected Method
The failed method.protected Method
The passed method.protected Object
The body instance.Fields inherited from class jadex.bdi.runtime.impl.AbstractPlanBody
partfuture, rplan
-
Constructor Summary
ConstructorsConstructorDescriptionClassPlanBody
(RPlan rplan, Class<?> body) Create a new plan body.ClassPlanBody
(RPlan rplan, Class<?> body, Object plan) Create a new plan body.ClassPlanBody
(RPlan rplan, Object plan) Create a new plan body. -
Method Summary
Modifier and TypeMethodDescriptionClass<?>[]
Get the aborted parameters.getBody()
Get or create the body.Class<?>[]
Get the body parameter types.Class<?>[]
Get the failed parameters.Class<?>[]
Get the passed parameters.Get the plan.protected void
Inject plan elements.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, getRPlan, guessParameters, internalInvokePart
-
Field Details
-
body
The body class. -
plan
The body instance. -
bodymethod
The body method. -
passedmethod
The passed method. -
failedmethod
The failed method. -
abortedmethod
The aborted method.
-
-
Constructor Details
-
ClassPlanBody
Create a new plan body. -
ClassPlanBody
Create a new plan body. -
ClassPlanBody
Create a new plan body.
-
-
Method Details
-
getBody
Get or create the body.- Specified by:
getBody
in interfaceIPlanBody
- Overrides:
getBody
in classAbstractPlanBody
- Returns:
- The object representing the body.
-
getPojoPlan
Get the plan.- Returns:
- The plan.
-
injectElements
protected void injectElements()Inject plan elements. -
invokeBody
Invoke the body.- Specified by:
invokeBody
in classAbstractPlanBody
-
invokePassed
Invoke the plan passed method.- Specified by:
invokePassed
in classAbstractPlanBody
-
invokeFailed
Invoke the plan failed method.- Specified by:
invokeFailed
in classAbstractPlanBody
-
invokeAborted
Invoke the plan aborted method.- Specified by:
invokeAborted
in classAbstractPlanBody
-
getPassedParameterTypes
Get the passed parameters.- Specified by:
getPassedParameterTypes
in classAbstractPlanBody
-
getFailedParameterTypes
Get the failed parameters.- Specified by:
getFailedParameterTypes
in classAbstractPlanBody
-
getAbortedParameterTypes
Get the aborted parameters.- Specified by:
getAbortedParameterTypes
in classAbstractPlanBody
-
getBodyParameterTypes
Get the body parameter types.- Specified by:
getBodyParameterTypes
in classAbstractPlanBody
-