public class UtilityBasedPlanSelectionStrategy extends java.lang.Object implements PlanSelectionStrategy
PlanSelectionStrategy. It
selects the plan that has the best expected value based on the plan
contributions and the agent current preferences.| Constructor and Description |
|---|
UtilityBasedPlanSelectionStrategy(BDIAgent myAgent) |
| Modifier and Type | Method and Description |
|---|---|
BDIAgent |
getMyAgent() |
Plan |
selectPlan(Goal goal,
java.util.Set<Plan> plans)
Selects a plan to be executed to achieve the given goal.
|
public UtilityBasedPlanSelectionStrategy(BDIAgent myAgent)
public BDIAgent getMyAgent()
public Plan selectPlan(Goal goal, java.util.Set<Plan> plans)
PlanSelectionStrategyselectPlan in interface PlanSelectionStrategygoal - the goal that must be achieved.plans - the plans that can achieve the goal.PlanSelectionStrategy.selectPlan(bdi4jade.goal.Goal,
java.util.Set)