carputils
Doxygen code documentation for the python framework controlling openCARP
|
Class defining a simple node object. More...
Public Member Functions | |
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... | |
Public Attributes | |
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... | |
Properties | |
has_key = property | |
Check if the CML-Node has a valid key. More... | |
Class defining a simple node object.
CMLNodes are just placeholders and should never occur in the final tree.
def carputils.cml.cmltree.CMLNode.__init__ | ( | self, | |
parent, | |||
key | |||
) |
Method to initialize a CMLNode object.
parent | Parent node |
key | Key string or None |
def carputils.cml.cmltree.CMLNode.add_child | ( | self, | |
node | |||
) |
Add child node.
NotImplementedError
will be raised when the method is called.node | child node |
NotImplementedError |
def carputils.cml.cmltree.CMLNode.objectify | ( | self | ) |
Objectify node and all child nodes.
NotImplementedError
will be raised when the method is called. def carputils.cml.cmltree.CMLNode.serialize | ( | self | ) |
Serialize node and all child nodes.
NotImplementedError
will be raised when the method is called. carputils.cml.cmltree.CMLNode.index |
index of the node in the parent's child collection
carputils.cml.cmltree.CMLNode.key |
key of the node (string or None)
carputils.cml.cmltree.CMLNode.level |
level of the node
carputils.cml.cmltree.CMLNode.parent |
parent node
|
static |
Check if the CML-Node has a valid key.