public abstract class ReflectionUtils
extends java.lang.Object
| Constructor and Description |
|---|
ReflectionUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addGoalOwner(java.util.Map<java.lang.Class<? extends Capability>,java.util.Set<Capability>> goalOwnersMap,
Capability capability)
Adds to the goal owners map the capability classes that owns a goal to
the capability instance passed as parameter.
|
static void |
setPlanBodyInput(PlanBody planBody,
Goal goal)
Sets the input parameters of a plan body based on the parameters passed
in the goal that triggered its execution.
|
static void |
setPlanBodyOutput(PlanBody planBody,
Goal goal)
Sets the output parameters of a goal based on the output generated by the
plan body whose execution was triggered by this goal.
|
static void |
setupBeliefs(PlanBody planBody)
Sets plan body fields annotated with
Belief. |
static void |
setupParameters(Goal goalOut,
Goal goalIn)
Sets the input parameters of goal based on the output parameters of
another goal.
|
public static void addGoalOwner(java.util.Map<java.lang.Class<? extends Capability>,java.util.Set<Capability>> goalOwnersMap, Capability capability)
goalOwnersMap - the goal owners map to which the owners of the given
capability should be added.capability - the capability that should be added to the map.public static void setPlanBodyInput(PlanBody planBody, Goal goal) throws ParameterException
planBody - the plan body to have its input parameters set.goal - the goal that has input parameters.ParameterException - if an exception occurs in this setting process.public static void setPlanBodyOutput(PlanBody planBody, Goal goal) throws ParameterException
planBody - the plan body generated the output parameters.goal - the goal to have its output parameters set.ParameterException - if an exception occurs in this setting process.public static void setupBeliefs(PlanBody planBody)
Belief.planBody - the plan body to be setup with beliefs.public static void setupParameters(Goal goalOut, Goal goalIn) throws ParameterException
goalOut - the goal that has output parameters that are input of the
goalIn.goalIn - the goal to have its input parameters set.ParameterException - if an exception occurs in this setting process.