expression#

module wntr.sim.aml.expr

class expression[source]#

Bases: ExpressionBase


__init__(expr=None)[source]#
Parameters:

expr (expression) –

append_operator(oper)[source]#
evaluate()[source]#

Evaluate the expression numerically.

Returns:

val – The floating point value of the expression.

Return type:

float

get_floats()[source]#
get_leaves()[source]#
get_params()[source]#
get_rpn(leaf_ndx_map)[source]#
get_vars()[source]#
is_expression_type()[source]#
is_float_type()[source]#
is_leaf()[source]#
is_parameter_type()[source]#
is_relational()[source]#
is_variable_type()[source]#
last_node()[source]#
Returns:

last_node

Return type:

Operator

list_of_operators()[source]#
operators()[source]#
reverse_ad()[source]#
reverse_sd()[source]#