concepts.dm.crow.planners.priority_impl.priority_tree_priority_fns.SimpleUnitCostPriorityFunction#
- class SimpleUnitCostPriorityFunction[source]#
Bases:
AdditivePriorityFunctionBase
Methods
get_accumulated_edge_h
(result, node)get_edge_h
(result, edge, minimize)get_node_program_h
(result, left, middle, ...)get_priority
(node)get_result_g
(result, minimize)- __init__(executor, mix_fn)#
- Parameters:
executor (CrowExecutor)
mix_fn (MixFunctionBase)
- __new__(**kwargs)#
- get_accumulated_edge_h(result, node)#
- Parameters:
result (CrowPlanningResult3)
node (PriorityTreeNode)
- Return type:
- get_edge_h(result, edge, minimize)[source]#
- Parameters:
result (CrowPlanningResult3)
edge (ScopedCrowExpression | MRProgram | None)
minimize (ValueOutputExpression | None)
- Return type:
- get_node_program_h(result, left, middle, right, minimize)[source]#
- Parameters:
result (CrowPlanningResult3)
left (Tuple[ScopedCrowExpression, ...])
middle (CrowBehaviorOrderingSuite)
right (Tuple[ScopedCrowExpression, ...])
minimize (ValueOutputExpression | None)
- Return type:
- get_priority(node)#
- Parameters:
node (PriorityTreeNode)
- Return type:
- get_result_g(result, minimize)[source]#
- Parameters:
result (CrowPlanningResult3)
minimize (ValueOutputExpression | None)
- Return type: