concepts.pdsketch.strips.strips_expression.SBoolPredicateApplicationExpression#
- class SBoolPredicateApplicationExpression[source]#
Bases:
SBoolOutputExpression
The base class for STRIPS expressions that output a boolean value based on a predicate.
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.
- __new__(**kwargs)#
- classmethod from_function_application_expression(expression, negated=False)[source]#
- Parameters:
expression (FunctionApplicationExpression | BoolExpression)
negated (bool)
- ground(variable_dict, state=None, negated=False, return_proposition=False)[source]#
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.