public class DefaultAgentPlanSelectionStrategy extends AbstractAgentReasoningStrategy implements AgentPlanSelectionStrategy
AgentPlanSelectionStrategy.agent| Constructor and Description |
|---|
DefaultAgentPlanSelectionStrategy() |
| Modifier and Type | Method and Description |
|---|---|
Plan |
selectPlan(Goal goal,
java.util.Map<Capability,java.util.Set<Plan>> capabilityPlans)
This default implementation requests each of its capabilities to select
one of its plans, and this method selects one of them, randomly.
|
setAgentclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetAgentpublic Plan selectPlan(Goal goal, java.util.Map<Capability,java.util.Set<Plan>> capabilityPlans)
selectPlan in interface AgentPlanSelectionStrategygoal - the goal to be achieved.capabilityPlans - the set of candidate plans of each capability, as a map.AgentPlanSelectionStrategy.selectPlan(Goal, java.util.Map)