Nektar++
|
Public Member Functions | |
def | evaluate |
def | rhs |
def | lhs |
Public Member Functions inherited from CellMLToNektar.pycml.mathml_operator | |
def | wrong_number_of_operands |
Public Member Functions inherited from CellMLToNektar.pycml.mathml | |
def | __init__ |
def | __repr__ |
def | __deepcopy__ |
def | clone_self |
def | get_original_of_clone |
def | get_component |
def | model |
def | eval |
Public Member Functions inherited from CellMLToNektar.pycml.element_base | |
def | __init__ |
def | __delattr__ |
def | __setattr__ |
def | rootNode |
def | cmeta_id |
def | xml_remove_child_at |
def | xml_doc |
def | xml_properties |
Private Member Functions | |
def | _is_top_level |
def | _set_in_units |
def | _get_binding_time |
def | _reduce |
Additional Inherited Members | |
Static Public Member Functions inherited from CellMLToNektar.pycml.mathml | |
def | clone |
Public Attributes inherited from CellMLToNektar.pycml.element_base | |
xml_attributes | |
Properties inherited from CellMLToNektar.pycml.mathml | |
component = property(get_component) | |
|
private |
Return the binding time of the enclosing <apply> element. If this is a top-level expression, then only recurse into the RHS, otherwise proceed as normal for an apply. There is one further special case: if this is a top-level expression and the variable assigned to is annotated to be kept in the specialised model, then the expression is dynamic.
Definition at line 6002 of file pycml.py.
References CellMLToNektar.pycml.mathml_eq._is_top_level(), CellMLToNektar.utilities.DEBUG(), and CellMLToNektar.pycml.mathml_operator.wrong_number_of_operands().
|
private |
Return True iff the enclosing <apply> is a top-level expression.
Definition at line 5948 of file pycml.py.
Referenced by CellMLToNektar.pycml.mathml_eq._get_binding_time(), CellMLToNektar.pycml.mathml_eq._reduce(), CellMLToNektar.pycml.mathml_eq._set_in_units(), CellMLToNektar.pycml.mathml_eq.evaluate(), CellMLToNektar.pycml.mathml_eq.lhs(), and CellMLToNektar.pycml.mathml_eq.rhs().
|
private |
Reduce this expression by evaluating its static parts. If this is a top-level assignment, then just reduce the RHS. Otherwise proceed as normal for an <apply>.
Definition at line 6034 of file pycml.py.
References CellMLToNektar.pycml.mathml_eq._is_top_level(), and CellMLToNektar.pycml.mathml_operator.wrong_number_of_operands().
|
private |
Set the units of the application of this operator. If this is a top-level <eq/>, then force the RHS to take the units of the LHS. Otherwise, behave as for other relational operators.
Definition at line 5952 of file pycml.py.
References CellMLToNektar.pycml.mathml_eq._is_top_level(), CellMLToNektar.pycml.mathml_units_mixin._set_element_in_units(), and CellMLToNektar.pycml.extract().
def CellMLToNektar.pycml.mathml_eq.evaluate | ( | self | ) |
Evaluate the enclosing <apply> element. The behaviour depends on whether the enclosing <apply> is a top-level expression or not, i.e. whether this is an assignment or a comparison. If an assignment, evaluate the RHS, assign the value to the variable on the LHS, and return it. If a comparison, return True iff the 2 operands are equal.
Definition at line 5969 of file pycml.py.
References CellMLToNektar.pycml.mathml_eq._is_top_level(), CellMLToNektar.pycml.mathml.eval(), and CellMLToNektar.pycml.mathml_operator.wrong_number_of_operands().
Referenced by CellMLToNektar.pycml.mathml_constructor._eval_self().
def CellMLToNektar.pycml.mathml_eq.lhs | ( | self | ) |
Return the left hand side of this expression. Should only be called if we're actually an assignment.
Definition at line 6063 of file pycml.py.
References CellMLToNektar.pycml.mathml_eq._is_top_level().
def CellMLToNektar.pycml.mathml_eq.rhs | ( | self | ) |
Return the right hand side of this expression. Should only be called if we're actually an assignment.
Definition at line 6051 of file pycml.py.
References CellMLToNektar.pycml.mathml_eq._is_top_level().