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 MethodThe aborted method.protected Class<?> The body class.protected MethodThe body method.protected MethodThe failed method.protected MethodThe passed method.protected ObjectThe 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 voidInject 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:
getBodyin interfaceIPlanBody- Overrides:
getBodyin 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:
invokeBodyin classAbstractPlanBody
-
invokePassed
Invoke the plan passed method.- Specified by:
invokePassedin classAbstractPlanBody
-
invokeFailed
Invoke the plan failed method.- Specified by:
invokeFailedin classAbstractPlanBody
-
invokeAborted
Invoke the plan aborted method.- Specified by:
invokeAbortedin classAbstractPlanBody
-
getPassedParameterTypes
Get the passed parameters.- Specified by:
getPassedParameterTypesin classAbstractPlanBody
-
getFailedParameterTypes
Get the failed parameters.- Specified by:
getFailedParameterTypesin classAbstractPlanBody
-
getAbortedParameterTypes
Get the aborted parameters.- Specified by:
getAbortedParameterTypesin classAbstractPlanBody
-
getBodyParameterTypes
Get the body parameter types.- Specified by:
getBodyParameterTypesin classAbstractPlanBody
-