类 DfsSearchStrategy

java.lang.Object
com.google.adk.planner.goap.DfsSearchStrategy
All Implemented Interfaces:
SearchStrategy

public final class DfsSearchStrategy extends Object implements SearchStrategy
一种采用并行分组技术的逆向链式深度优先搜索(DFS)策略。

委托给…… DependencyGraphSearch 用于实际的算法实现。

  • 构造函数详细信息

    • DfsSearchStrategy

      public DfsSearchStrategy()
  • 方法详细信息(Method Details)

    • searchGrouped

      public com.google.common.collect.ImmutableList<com.google.common.collect.ImmutableList<String>> searchGrouped(GoalOrientedSearchGraph graph, List<AgentMetadata> metadata, Collection<String> preconditions, String goal)
      描述内容复制自接口文档: SearchStrategy
      搜索能够实现目标的代理执行组(agent execution groups)。
      Specified by:
      searchGrouped in interface SearchStrategy
      Parameters:
      graph - the dependency graph
      metadata - agent metadata
      preconditions - state keys already available
      goal - the target output key
      Returns:
      ordered list of agent groups for parallel execution