Class representing the MathML <or> operator.
Definition at line 5841 of file pycml.py.
def CellMLToNektar.pycml.mathml_or._get_binding_time |
( |
|
self | ) |
|
|
private |
Return the binding time of the enclosing <apply> element.
Short-circuit if a static True operand occurs before any dynamic
operands, returning static. Otherwise return the least upper bound
of operand binding times, as usual.
Definition at line 5857 of file pycml.py.
References CellMLToNektar.pycml.mathml.eval().
5857 def _get_binding_time(self):
5858 """Return the binding time of the enclosing <apply> element. 5860 Short-circuit if a static True operand occurs before any dynamic 5861 operands, returning static. Otherwise return the least upper bound 5862 of operand binding times, as usual. 5864 app = self.xml_parent
5865 bts = [BINDING_TIMES.static]
5866 for operand
in app.operands():
5867 bt = app._get_element_binding_time(operand)
5868 if bt
is BINDING_TIMES.static:
5869 value = self.eval(operand)
5870 if value
and len(bts) == 1: