ExpressionBase#

module wntr.sim.aml.expr

class ExpressionBase[source]#

Bases: Node

A base class for expressions (including variables and params).


abstract evaluate()[source]#

Evaluate the expression numerically.

Returns:

val – The floating point value of the expression.

Return type:

float

abstract get_floats()[source]#
abstract get_leaves()[source]#
abstract get_params()[source]#
abstract get_rpn(leaf_ndx_map)[source]#
abstract get_vars()[source]#
abstract is_expression_type()[source]#
abstract is_float_type()[source]#
abstract is_leaf()#
abstract is_parameter_type()[source]#
is_relational()[source]#
abstract is_variable_type()[source]#
abstract last_node()[source]#
abstract operators()[source]#
abstract reverse_ad()[source]#
abstract reverse_sd()[source]#