concepts.dm.pdsketch.strips.strips_expression.SAssignExpression#
- class SAssignExpression[source]#
Bases:
SVariableAssignmentExpression
The representation of an assignment expression.
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
- __init__(predicate, value)[source]#
Initialize an assignment expression.
- Parameters:
predicate (SBoolPredicateApplicationExpression | SSASPredicateApplicationExpression) – the predicate in the state representation to be assigned.
value (SBoolOutputExpression | SSASExpression) – the value to be assigned.
- __new__(**kwargs)#
- ground(variable_dict, state=None)#
Return a new expression with all variables grounded according to the given variable dictionary.
- iter_precondition_predicates()#
Iterate over the precondition predicate names in the expression.
- predicate: SBoolPredicateApplicationExpression | SSASPredicateApplicationExpression#
The predicate in the state representation to be assigned.
- value: SBoolOutputExpression | SSASExpression#
The value to be assigned.