concepts.dm.crow.planners.regression_planning_impl.crow_regression_planner_astar_v2.CrowPlanningState2#
- class CrowPlanningState2[source]#
- Bases: - NamedTuple- The planning state for the A* search algorithm. - Methods - clone([program, state, csp, scopes, ...])- count(value, /)- Return number of occurrences of value. - index(value[, start, stop])- Return first index of value. - make_empty(program, state, csp[, ...])- print()- Attributes - Whether to commit the CSP. - Whether to commit the behavior execution. - Whether to commit the sketch. - The current constraint satisfaction problem. - The latest scope id. - The (left) statements that have been executed. - The current program that is being expanded (middle). - The statements that are waiting to be expanded. - The current scopes. - The current state of the planning. - Whether a statement has been evaluated. - __add__(value, /)#
- Return self+value. 
 - __getitem__(key, /)#
- Return self[key]. 
 - __init__()#
 - __iter__()#
- Implement iter(self). 
 - __len__()#
- Return len(self). 
 - __mul__(value, /)#
- Return self*value. 
 - static __new__(_cls, program, state, csp, scopes, latest_scope, left_statements, right_statements, statements_evaluations, commit_sketch=False, commit_csp=False, commit_execution=False)#
- Create new instance of CrowPlanningState2(program, state, csp, scopes, latest_scope, left_statements, right_statements, statements_evaluations, commit_sketch, commit_csp, commit_execution) - Parameters:
- program (CrowBehaviorOrderingSuite | None) 
- state (CrowState) 
- latest_scope (int) 
- left_statements (Tuple[CrowControllerApplier, ...]) 
- right_statements (Tuple[RegressionStatement2, ...]) 
- commit_sketch (bool) 
- commit_csp (bool) 
- commit_execution (bool) 
 
 
 - clone(program=UNSET, state=UNSET, csp=UNSET, scopes=UNSET, latest_scope=UNSET, left_statements=UNSET, right_statements=UNSET, statements_evaluations=UNSET, commit_sketch=UNSET, commit_csp=UNSET, commit_execution=UNSET)[source]#
 - count(value, /)#
- Return number of occurrences of value. 
 - index(value, start=0, stop=9223372036854775807, /)#
- Return first index of value. - Raises ValueError if the value is not present. 
 - classmethod make_empty(program, state, csp, commit_execution=False, commit_sketch=False, commit_csp=False)[source]#
 - csp: ConstraintSatisfactionProblem#
- The current constraint satisfaction problem. 
 - left_statements: Tuple[CrowControllerApplier, ...]#
- The (left) statements that have been executed. 
 - program: CrowBehaviorOrderingSuite | None#
- The current program that is being expanded (middle). 
 - right_statements: Tuple[RegressionStatement2, ...]#
- The statements that are waiting to be expanded.