concepts.dm.pdsketch.regression_rule.RegressionRule#
- class RegressionRule[source]#
Bases:
object
Methods
pddl_str
()Attributes
alias of
AchieveExpression
|BindExpression
|RuntimeAssignExpression
|ListExpansionExpression
|RegressionCommitFlag
|OperatorApplicationExpression
|RegressionRuleApplicationExpression
|ConditionalRegressionRuleBodyExpression
|LoopRegressionRuleBodyExpression
The names of the arguments of the regression rule.
The types of the arguments of the regression rule.
The number of arguments of the regression rule.
The name of the regression rule.
The arguments to the regression rule.
The arguments that appear in the goal of the regression rule.
The arguments that do not appear in the goal of the regression rule.
The preconditions of the regression rule.
The conjunction of the preconditions of the regression rule.
The goal expression of the regression rule.
The side effects of the regression rule.
The body of the regression rule, including operator applications and achieve expressions.
Whether the regression rule is always applicable.
The maximum length of the prefix of the body that might need to be reordered.
The maximum length of the prefix of the body that need tracking of all possible refinements.
- __init__(name, parameters, preconditions, goal_expression, all_effects, body, always=False)[source]#
Initialize a regression rule.
- Parameters:
name (str)
preconditions (Sequence[Precondition])
goal_expression (ValueOutputExpression)
body (Sequence[AchieveExpression | BindExpression | RuntimeAssignExpression | ListExpansionExpression | RegressionCommitFlag | OperatorApplicationExpression | RegressionRuleApplicationExpression | ConditionalRegressionRuleBodyExpression | LoopRegressionRuleBodyExpression])
always (bool)
- __new__(**kwargs)#
- BodyItemType#
alias of
AchieveExpression
|BindExpression
|RuntimeAssignExpression
|ListExpansionExpression
|RegressionCommitFlag
|OperatorApplicationExpression
|RegressionRuleApplicationExpression
|ConditionalRegressionRuleBodyExpression
|LoopRegressionRuleBodyExpression
- property argument_types: Tuple[ObjectType | NamedTensorValueType, ...]#
The types of the arguments of the regression rule.
- binding_arguments: Tuple[Variable, ...]#
The arguments that do not appear in the goal of the regression rule.
- body: Tuple[AchieveExpression | BindExpression | RuntimeAssignExpression | ListExpansionExpression | RegressionCommitFlag | OperatorApplicationExpression | RegressionRuleApplicationExpression | ConditionalRegressionRuleBodyExpression | LoopRegressionRuleBodyExpression, ...]#
The body of the regression rule, including operator applications and achieve expressions.
- goal_expression: ValueOutputExpression#
The goal expression of the regression rule.
- max_reorder_prefix_length: int#
The maximum length of the prefix of the body that might need to be reordered.
- max_rule_prefix_length: int#
The maximum length of the prefix of the body that need tracking of all possible refinements.
- preconditions: Tuple[Precondition, ...]#
The preconditions of the regression rule.
- preconditions_conjunction: AndExpression#
The conjunction of the preconditions of the regression rule.
- property serializability#