concepts.dm.crow.action.CrowActionOrderingSuite#

class CrowActionOrderingSuite[source]#

Bases: CrowActionBodySuiteBase

Methods

clone(variable_scope_identifier)

format(scopes)

get_flatten_body()

Get the flatten body of the action.

is_single_statement()

iter_statements()

iter_statements_with_scope()

make_promotable(*statements[, ...])

make_sequential(*statements[, ...])

make_unordered(*statements[, ...])

pop_right_statement()

split_preamble_and_promotable()

Split the body into three parts: the preamble part, the promotable part, and the rest part.

split_promotable()

Split the body into two parts: the promotable part and the rest part.

Attributes

statements

The statements in a action body suite.

order

The ordering of the action body suite.

variable_scope_identifier

The identifier of the variable scope.

ORDER#

alias of CrowActionOrdering

__init__(order, statements, variable_scope_identifier=None)[source]#
Parameters:
__new__(**kwargs)#
clone(variable_scope_identifier)[source]#
Parameters:

variable_scope_identifier (int) –

format(scopes)[source]#
Parameters:

scopes (dict) –

get_flatten_body()[source]#

Get the flatten body of the action. It only flattens the PROMOTABLE body.

Return type:

Tuple[CrowActionBodyPrimitiveBase | CrowActionBodySuiteBaseCrowControllerApplicationExpression | ListExpansionExpression, …]

is_single_statement()[source]#
Return type:

bool

iter_statements()[source]#
iter_statements_with_scope()[source]#
classmethod make_promotable(*statements, variable_scope_identifier=None)[source]#
Parameters:
classmethod make_sequential(*statements, variable_scope_identifier=None)[source]#
Parameters:
classmethod make_unordered(*statements, variable_scope_identifier=None)[source]#
Parameters:
pop_right_statement()[source]#
Return type:

Iterator[Tuple[CrowActionOrderingSuite | None, CrowActionBodyPrimitiveBase | CrowActionBodySuiteBaseCrowControllerApplicationExpression | ListExpansionExpression, int]]

split_preamble_and_promotable()[source]#

Split the body into three parts: the preamble part, the promotable part, and the rest part.

Return type:

Tuple[Tuple[CrowActionBodyPrimitiveBase | CrowActionBodySuiteBaseCrowControllerApplicationExpression | ListExpansionExpression, …] | None, Tuple[CrowActionBodyPrimitiveBase | CrowActionBodySuiteBaseCrowControllerApplicationExpression | ListExpansionExpression, …] | None, Tuple[CrowActionBodyPrimitiveBase | CrowActionBodySuiteBaseCrowControllerApplicationExpression | ListExpansionExpression, …]]

split_promotable()[source]#

Split the body into two parts: the promotable part and the rest part.

Return type:

Tuple[Tuple[CrowActionBodyPrimitiveBase | CrowActionBodySuiteBaseCrowControllerApplicationExpression | ListExpansionExpression, …] | None, Tuple[CrowActionBodyPrimitiveBase | CrowActionBodySuiteBaseCrowControllerApplicationExpression | ListExpansionExpression, …]]

order: CrowActionOrdering#

The ordering of the action body suite.

property statements: Tuple[CrowActionBodyPrimitiveBase | CrowActionBodySuiteBaseCrowControllerApplicationExpression | ListExpansionExpression, ...]#

The statements in a action body suite.

variable_scope_identifier: int | None#

The identifier of the variable scope. This is only used during search.