concepts.dm.pdsketch.strips.strips_expression.SConditionalAssignExpression#
- class SConditionalAssignExpression[source]#
Bases:
SVariableAssignmentExpression
The representation of a conditional assignment expression. Note that the inner assignment expression is always a
StripsAssignment
.Methods
ground
(variable_dict[, state])Return a new expression with all variables grounded according to the given variable dictionary.
Iterate over the effect predicate names in the expression.
Iterate over the precondition predicate names in the expression.
Attributes
The predicate in the state representation to be assigned.
The value to be assigned, if the condition is satisfied.
The assignment expression.
The condition expression.
- __init__(assign_op, condition)[source]#
Initialize a conditional assignment expression.
- Parameters:
assign_op (SAssignExpression) – the assignment expression.
condition (SBoolOutputExpression) – the condition expression.
- __new__(**kwargs)#
- ground(variable_dict, state=None)#
Return a new expression with all variables grounded according to the given variable dictionary.
- iter_precondition_predicates()[source]#
Iterate over the precondition predicate names in the expression.
- assign_op: SAssignExpression#
The assignment expression.
- condition: SBoolOutputExpression#
The condition expression.
- property predicate#
The predicate in the state representation to be assigned.
- property value#
The value to be assigned, if the condition is satisfied.