concepts.dm.pdsketch.regression_rule.ConditionalRegressionRuleBodyExpression#

class ConditionalRegressionRuleBodyExpression[source]#

Bases: object

A conditional regression rule body. For example, in the definition of a regression rule, we can have a conditional body expression like this:

ConditionalRegressionRuleBodyExpression(
    condition=condition,
    body=[
        OperatorApplicationExpression(...),
        AchieveExpression(...),
        ...
    ]
)

Methods

Attributes

condition

The condition of the conditional regression rule body expression.

body

The body of the conditional regression rule body expression.

__init__(condition, body)[source]#
Parameters:
__new__(**kwargs)#
body: Tuple[AchieveExpression | BindExpression | RuntimeAssignExpression | ListExpansionExpression | RegressionCommitFlag | OperatorApplicationExpression | RegressionRuleApplicationExpression | ConditionalRegressionRuleBodyExpression | LoopRegressionRuleBodyExpression, ...]#

The body of the conditional regression rule body expression.

condition: ValueOutputExpression#

The condition of the conditional regression rule body expression.