concepts.pdsketch.operator.Effect#

class Effect[source]#

Bases: object

The effect of an operator. It is basically a wrapper around VariableAssignmentExpression.

Methods

set_update_from_simulation([...])

Attributes

unwrapped_assign_expr

Unwrap the DeicticAssignExpression and return the innermost AssignExpression.

assign_expr

The underlying assign expression.

update_from_simulation

Whether the effect should be updated from simulation, instead of the evaluation of the expression.

ao_discretization

The And-Or discretization of the effect.

__init__(assign_expr)[source]#
Parameters:

assign_expr (VariableAssignmentExpression) –

__new__(**kwargs)#
set_update_from_simulation(update_from_simulation=True)[source]#
Parameters:

update_from_simulation (bool) –

ao_discretization: Any | None#

The And-Or discretization of the effect.

assign_expr: VariableAssignmentExpression#

The underlying assign expression.

property unwrapped_assign_expr: AssignExpression | ConditionalAssignExpression#

Unwrap the DeicticAssignExpression and return the innermost AssignExpression.

update_from_simulation: bool#

Whether the effect should be updated from simulation, instead of the evaluation of the expression.