krrood.entity_query_language.rules.conclusion#
Conclusion rules for the Entity Query Language.
This module defines side-effecting clauses that adjust outputs or bindings (for example, Add) during query evaluation.
Classes#
Base for side-effecting/action clauses that adjust outputs (e.g., Set, Add). |
|
Add a new value to the domain of a variable. |
Module Contents#
- class krrood.entity_query_language.rules.conclusion.Conclusion#
Bases:
krrood.entity_query_language.core.base_expressions.BinaryExpression,abc.ABCBase for side-effecting/action clauses that adjust outputs (e.g., Set, Add).
- left: krrood.entity_query_language.core.base_expressions.Selectable#
The variable being affected by the conclusion.
- right: Any#
The value added or set to the variable by the conclusion.
- property variable: krrood.entity_query_language.core.base_expressions.Selectable#
- property value: Any#
- class krrood.entity_query_language.rules.conclusion.Add#
Bases:
ConclusionAdd a new value to the domain of a variable.
- _evaluate__(sources: krrood.entity_query_language.core.base_expressions.Bindings) Iterable[krrood.entity_query_language.core.base_expressions.OperationResult]#
Evaluate the symbolic expression and set the operands bindings in the result according to the evaluation logic of this expression.
- Parameters:
sources – The current bindings of variables.
- Returns:
An Iterator of OperationResult instances containing the bindings resulting from the evaluation of this
expression.