public class DefaultPlanSelectionStrategy extends java.lang.Object implements PlanSelectionStrategy
PlanSelectionStrategy. It selects
the first plan of the set.| Constructor and Description |
|---|
DefaultPlanSelectionStrategy() |
| Modifier and Type | Method and Description |
|---|---|
Plan |
selectPlan(Goal goal,
java.util.Set<Plan> plans)
Selects a plan to be executed to achieve the given goal.
|
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)