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)

iter_parent_links()

Attributes

accumulated_edge_h

The accumulated H value of the edges = h(parent_edges)

accumulated_edge_h_parent

The (stmt, parent) pair that contributes to the min accumulated edge H.

depth

The depth of the node in the tree.

g

The G value of the node = g(node.data.result)

node_h

The H value of the node = h(node.data)

data

parents

children

results

__init__(data, parents=<factory>, children=<factory>, results=<factory>, depth=0, g=None, node_h=None, accumulated_edge_h=None)#
Parameters:
Return type:

None

__new__(**kwargs)#
add_child(child, stmt)[source]#
Parameters:
Return type:

Iterator[Tuple[CrowBehaviorOrderingSuite | CrowBehaviorForeachLoopSuite | CrowBehaviorWhileLoopSuite | CrowBehaviorConditionSuite | CrowBindExpression | CrowAssertExpression | CrowRuntimeAssignmentExpression | CrowControllerApplicationExpression | CrowAchieveExpression | CrowUntrackExpression | CrowBehaviorApplicationExpression | CrowBehaviorEffectApplicationExpression | CrowBehaviorCommit | MRProgram | None, int, PriorityTreeNode]]

accumulated_edge_h: float | None = None#

The accumulated H value of the edges = h(parent_edges)

accumulated_edge_h_parent = None#

The (stmt, parent) pair that contributes to the min accumulated edge H.

children: List[PriorityTreeNode]#
data: PriorityTreeNodeData#
depth: int = 0#

The depth of the node in the tree.

g: float | None = None#

The G value of the node = g(node.data.result)

node_h: float | None = None#

The H value of the node = h(node.data)

parents: List[Tuple[ScopedCrowExpression | MRProgram | None, PriorityTreeNode]]#
results: List[CrowPlanningResult3]#