concepts.dm.crow.planners.regression_planning_impl.crow_regression_planner_astar_v2.CrowPlanningState2#

class CrowPlanningState2[source]#

Bases: NamedTuple

CrowPlanningState2(program, state, csp, scopes, latest_scope, left_actions, right_statements, statements_evaluations)

Methods

clone([program, state, csp, scopes, ...])

count(value, /)

Return number of occurrences of value.

index(value[, start, stop])

Return first index of value.

iter_program_statements()

make_empty(program, state, csp)

print()

Attributes

csp

Alias for field number 2

latest_scope

Alias for field number 4

left_actions

Alias for field number 5

program

Alias for field number 0

right_statements

Alias for field number 6

scopes

Alias for field number 3

state

Alias for field number 1

statements_evaluations

Alias for field number 7

__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_actions, right_statements, statements_evaluations)#

Create new instance of CrowPlanningState2(program, state, csp, scopes, latest_scope, left_actions, right_statements, statements_evaluations)

Parameters:
clone(program=UNSET, state=UNSET, csp=UNSET, scopes=UNSET, latest_scope=UNSET, left_actions=UNSET, right_statements=UNSET, statements_evaluations=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.

iter_program_statements()[source]#
Return type:

Iterator[CrowAchieveExpression | CrowBindExpression | CrowRuntimeAssignmentExpression | CrowAssertExpression | CrowControllerApplicationExpression | CrowActionApplicationExpression]

classmethod make_empty(program, state, csp)[source]#
print()[source]#
csp: ConstraintSatisfactionProblem#

Alias for field number 2

latest_scope: int#

Alias for field number 4

left_actions: Tuple[CrowControllerApplier, ...]#

Alias for field number 5

program: CrowActionOrderingSuite | None#

Alias for field number 0

right_statements: Tuple[RegressionStatement2, ...]#

Alias for field number 6

scopes: Dict[int, dict]#

Alias for field number 3

state: CrowState#

Alias for field number 1

statements_evaluations: Dict[int, bool]#

Alias for field number 7