|
carputils
Doxygen code documentation for the python framework controlling openCARP
|
Class defining a leaf object. More...
Public Member Functions | |
| def | __init__ (self, parent, key, value) |
| Method to initialize a CMLLeaf object. More... | |
| def | add_child (self, node) |
| Add child node. More... | |
| def | serialize (self) |
| Serialize node and all child nodes. More... | |
| def | objectify (self) |
| Objectify node and all child nodes. More... | |
Public Member Functions inherited from carputils.cml.cmltree.CMLNode | |
| def | __init__ (self, parent, key) |
| Method to initialize a CMLNode object. More... | |
| def | add_child (self, node) |
| Add child node. More... | |
| def | serialize (self) |
| Serialize node and all child nodes. More... | |
| def | objectify (self) |
| Objectify node and all child nodes. More... | |
Static Public Member Functions | |
| def | from_node (node, value) |
| Method to create a CMLLeaf object. More... | |
Public Attributes | |
| value | |
Public Attributes inherited from carputils.cml.cmltree.CMLNode | |
| parent | |
| parent node More... | |
| level | |
| level of the node More... | |
| index | |
| index of the node in the parent's child collection More... | |
| key | |
| key of the node (string or None) More... | |
Additional Inherited Members | |
Properties inherited from carputils.cml.cmltree.CMLNode | |
| has_key = property | |
| Check if the CML-Node has a valid key. More... | |
Class defining a leaf object.
CMLLeafs are nodes to which a value is assigned to. CMLLeafs can not have child CMLNodes.
| def carputils.cml.cmltree.CMLLeaf.__init__ | ( | self, | |
| parent, | |||
| key, | |||
| value | |||
| ) |
Method to initialize a CMLLeaf object.
| parent | Parent node |
| key | Key string or None |
| value | Value assigned to the leaf |
| def carputils.cml.cmltree.CMLLeaf.add_child | ( | self, | |
| node | |||
| ) |
Add child node.
NotImplementedError will be raised when the method is called.| node | child node |
| NotImplementedError |
|
static |
| def carputils.cml.cmltree.CMLLeaf.objectify | ( | self | ) |
Objectify node and all child nodes.
| def carputils.cml.cmltree.CMLLeaf.serialize | ( | self | ) |
Serialize node and all child nodes.
| carputils.cml.cmltree.CMLLeaf.value |
1.8.13