concepts.dm.crow.action.CrowActionOrderingSuite#
- class CrowActionOrderingSuite[source]#
Bases:
CrowActionBodySuiteBase
Methods
clone
(variable_scope_identifier)format
(scopes)Get the flatten body of the action.
make_promotable
(*statements[, ...])make_sequential
(*statements[, ...])make_unordered
(*statements[, ...])Split the body into three parts: the preamble part, the promotable part, and the rest part.
Split the body into two parts: the promotable part and the rest part.
Attributes
The statements in a action body suite.
The ordering of the action body suite.
The identifier of the variable scope.
- ORDER#
alias of
CrowActionOrdering
- __init__(order, statements, variable_scope_identifier=None)[source]#
- Parameters:
order (str | CrowActionOrdering) –
statements (Sequence[CrowActionBodyPrimitiveBase | CrowActionBodySuiteBaseCrowControllerApplicationExpression | ListExpansionExpression]) –
variable_scope_identifier (int | None) –
- __new__(**kwargs)#
- get_flatten_body()[source]#
Get the flatten body of the action. It only flattens the PROMOTABLE body.
- Return type:
Tuple[CrowActionBodyPrimitiveBase | CrowActionBodySuiteBaseCrowControllerApplicationExpression | ListExpansionExpression, …]
- classmethod make_promotable(*statements, variable_scope_identifier=None)[source]#
- Parameters:
statements (CrowActionBodyPrimitiveBase | CrowActionBodySuiteBaseCrowControllerApplicationExpression | ListExpansionExpression | Tuple[CrowActionBodyPrimitiveBase | CrowActionBodySuiteBaseCrowControllerApplicationExpression | ListExpansionExpression, ...]) –
variable_scope_identifier (int | None) –
- classmethod make_sequential(*statements, variable_scope_identifier=None)[source]#
- Parameters:
statements (CrowActionBodyPrimitiveBase | CrowActionBodySuiteBaseCrowControllerApplicationExpression | ListExpansionExpression | Tuple[CrowActionBodyPrimitiveBase | CrowActionBodySuiteBaseCrowControllerApplicationExpression | ListExpansionExpression, ...]) –
variable_scope_identifier (int | None) –
- classmethod make_unordered(*statements, variable_scope_identifier=None)[source]#
- Parameters:
statements (CrowActionBodyPrimitiveBase | CrowActionBodySuiteBaseCrowControllerApplicationExpression | ListExpansionExpression | Tuple[CrowActionBodyPrimitiveBase | CrowActionBodySuiteBaseCrowControllerApplicationExpression | ListExpansionExpression, ...]) –
variable_scope_identifier (int | None) –
- 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.