concepts.dm.crow.planners.regression_planning_impl.crow_regression_planner_priority_tree_v1.PriorityTreeNode#
- class PriorityTreeNode[source]#
Bases:
object
PriorityTreeNode(data: concepts.dm.crow.planners.regression_planning_impl.crow_regression_planner_priority_tree_v1.PriorityTreeNodeData, parents: List[Tuple[Union[concepts.dm.crow.planners.regression_planning.ScopedCrowExpression, concepts.dm.crow.planners.regression_planning_impl.crow_regression_planner_priority_tree_v1.MRProgram, NoneType], ForwardRef(‘PriorityTreeNode’)]] = <factory>, children: List[ForwardRef(‘PriorityTreeNode’)] = <factory>, results: List[concepts.dm.crow.planners.regression_planning.CrowPlanningResult3] = <factory>, depth: int = 0, g: Optional[float] = None, node_h: Optional[float] = None, accumulated_edge_h: Optional[float] = None)
Methods
add_child
(child, stmt)Attributes
The accumulated H value of the edges = h(parent_edges)
The (stmt, parent) pair that contributes to the min accumulated edge H.
The depth of the node in the tree.
The G value of the node = g(node.data.result)
The H value of the node = h(node.data)
- __init__(data, parents=<factory>, children=<factory>, results=<factory>, depth=0, g=None, node_h=None, accumulated_edge_h=None)#
- Parameters:
data (PriorityTreeNodeData)
parents (List[Tuple[ScopedCrowExpression | MRProgram | None, PriorityTreeNode]])
children (List[PriorityTreeNode])
results (List[CrowPlanningResult3])
depth (int)
g (float | None)
node_h (float | None)
accumulated_edge_h (float | None)
- Return type:
None
- __new__(**kwargs)#
- add_child(child, stmt)[source]#
- Parameters:
child (PriorityTreeNode)
stmt (ScopedCrowExpression | MRProgram | None)
- iter_parent_links()[source]#
- Return type:
Iterator[Tuple[CrowBehaviorOrderingSuite | CrowBehaviorForeachLoopSuite | CrowBehaviorWhileLoopSuite | CrowBehaviorConditionSuite | CrowBindExpression | CrowAssertExpression | CrowRuntimeAssignmentExpression | CrowControllerApplicationExpression | CrowAchieveExpression | CrowUntrackExpression | CrowBehaviorApplicationExpression | CrowBehaviorEffectApplicationExpression | CrowBehaviorCommit | MRProgram | None, int, PriorityTreeNode]]
- accumulated_edge_h_parent = None#
The (stmt, parent) pair that contributes to the min accumulated edge H.
- children: List[PriorityTreeNode]#
- data: PriorityTreeNodeData#
- parents: List[Tuple[ScopedCrowExpression | MRProgram | None, PriorityTreeNode]]#
- results: List[CrowPlanningResult3]#