br.pucrio.inf.les.bdijade.reasoning
Class DefaultPlanSelectionStrategy

java.lang.Object
  extended by br.pucrio.inf.les.bdijade.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
DefaultPlanSelectionStrategy()
           
 
Method Summary
 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
clone, equals, finalize, 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(br.pucrio.inf.les.bdijade.goal.Goal, java.util.Set)