concepts.pdsketch.strips.strips_expression.SSASPredicateApplicationExpression#
- class SSASPredicateApplicationExpression[source]#
Bases:
SBoolPredicateApplicationExpression
The representation for an SAS predicate expression. It is composed of a predicate name and an SAS index.
Methods
from_function_application_expression
(expression)ground
(variable_dict[, state, negated, ...])Ground the expression 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 name of the predicate.
The arguments of the predicate.
Whether the predicate is negated.
The name of the SAS predicate.
The index of the SAS predicate.
- __new__(**kwargs)#
- classmethod from_function_application_expression(expression, negated=False)#
- Parameters:
expression (FunctionApplicationExpression | BoolExpression)
negated (bool)
- ground(variable_dict, state=None, negated=False, return_proposition=False)#
Ground the expression according to the given variable dictionary.
- Parameters:
- Returns:
the grounded expression. Will be a GSSimpleBoolExpression if return_proposition is False, otherwise a SProposition.
- iter_effect_predicates()#
Iterate over the effect predicate names in the expression.
- iter_precondition_predicates()#
Iterate over the precondition predicate names in the expression.