类 DfsSearchStrategy
java.lang.Object
com.google.adk.planner.goap.DfsSearchStrategy
- All Implemented Interfaces:
SearchStrategy
一种采用并行分组技术的逆向链式深度优先搜索(DFS)策略。
委托给…… DependencyGraphSearch 用于实际的算法实现。
-
构造函数概述
Constructors -
方法概述
Modifier and TypeMethodDescriptioncom.google.common.collect.ImmutableList<com.google.common.collect.ImmutableList<String>> searchGrouped(GoalOrientedSearchGraph graph, List<AgentMetadata> metadata, Collection<String> preconditions, String goal) 搜索能够实现目标的代理执行组(agent execution groups)。
-
构造函数详细信息
-
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:
searchGroupedin interfaceSearchStrategy- Parameters:
graph- the dependency graphmetadata- agent metadatapreconditions- state keys already availablegoal- the target output key- Returns:
- ordered list of agent groups for parallel execution
-