concepts.dm.pdsketch.strips.strips_expression.SQuantificationExpression#
- class SQuantificationExpression[source]#
Bases:
SBoolOutputExpression
The representation of a quantification 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
Whether the expression is a conjunction (FORALL quantification).
Whether the expression is a disjunction (EXISTS quantification).
Whether the expression is a conjunction (FORALL quantification).
The variable to be quantified.
The expression to be quantified.
Whether the expression is a disjunction (EXISTS quantification).
- __init__(variable, expr, is_disjunction)[source]#
Initialize a quantification expression.
- Parameters:
variable (Variable) – the variable to be quantified.
expr (SBoolOutputExpression) – the expression to be quantified.
is_disjunction (bool) – whether the expression is a disjunction (EXISTS quantification).
- __new__(**kwargs)#
- ground(variable_dict, state=None)[source]#
Return a new expression with all variables grounded according to the given variable dictionary.
- iter_effect_predicates()#
Iterate over the effect predicate names in the expression.
- iter_precondition_predicates()[source]#
Iterate over the precondition predicate names in the expression.
- expr: SBoolOutputExpression#
The expression to be quantified.