Nektar++
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Static Public Member Functions | List of all members
CellMLToNektar.pycml.mathml_lambda Class Reference
Inheritance diagram for CellMLToNektar.pycml.mathml_lambda:
Inheritance graph
[legend]
Collaboration diagram for CellMLToNektar.pycml.mathml_lambda:
Collaboration graph
[legend]

Static Public Member Functions

def create_new
 
- Static Public Member Functions inherited from CellMLToNektar.pycml.mathml
def clone
 

Additional Inherited Members

- Public Member Functions inherited from CellMLToNektar.pycml.mathml_constructor
def __init__
 
- 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
 
- Public Attributes inherited from CellMLToNektar.pycml.element_base
 xml_attributes
 
- Properties inherited from CellMLToNektar.pycml.mathml
 component = property(get_component)
 

Detailed Description

Class representing the MathML lambda construct.

Note that we don't support lambda occuring in CellML models.  However, it is used
for defining special units conversion rules using the protocol syntax.

Definition at line 5384 of file pycml.py.

Member Function Documentation

def CellMLToNektar.pycml.mathml_lambda.create_new (   elt,
  bound_var_names,
  body_expr 
)
static
Create a new lambda from the sequence of bvar names and expression.

Definition at line 5391 of file pycml.py.

References CellMLToNektar.pycml.check_append_safety().

5392  def create_new(elt, bound_var_names, body_expr):
5393  """Create a new lambda from the sequence of bvar names and expression."""
5394  lambda_ = elt.xml_create_element(u'lambda', NSS[u'm'])
5395  for bvar_name in bound_var_names:
5396  bvar = elt.xml_create_element(u'bvar', NSS[u'm'])
5397  bvar.xml_append(mathml_ci.create_new(elt, bvar_name))
5398  lambda_.xml_append(bvar)
5399  check_append_safety(body_expr)
5400  lambda_.xml_append(body_expr)
5401  return lambda_
5402 
def check_append_safety
Definition: pycml.py:197