bdi4jade.util.reasoning

## Class DefaultPlanSelectionStrategy

- java.lang.Object
- - bdi4jade.util.reasoning.DefaultPlanSelectionStrategy

- All Implemented Interfaces:
    PlanSelectionStrategy

      public class DefaultPlanSelectionStrategy
      extends java.lang.Object
      implements PlanSelectionStrategy

  The default implementation of the `PlanSelectionStrategy`. It selects the first plan of the set.
  Author:
    ingrid

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `DefaultPlanSelectionStrategy()`

  - ### Method Summary

    Methods
    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.

    - ### Methods inherited from class java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### DefaultPlanSelectionStrategy

          public DefaultPlanSelectionStrategy()

  - ### Method Detail

    - #### selectPlan

          public Plan selectPlan(Goal goal,
                        java.util.Set<Plan> plans)

      Description copied from interface: `PlanSelectionStrategy`
      Selects a plan to be executed to achieve the given goal.
      Specified by:
        `selectPlan` in interface `PlanSelectionStrategy`
      Parameters:
        `goal` - the goal that must be achieved.
        `plans` - the plans that can achieve the goal.
      Returns:
        the selected plan.
      See Also:
        `PlanSelectionStrategy.selectPlan(bdi4jade.goal.Goal, java.util.Set)`