A mixin class that provides the hierarchical structure for components.
Constructor - For parameter descriptions, see the ComponentClass.__init__() method
Methods
| __init__([subnodes, portconnections]) | Constructor - For parameter descriptions, see the |
| connect_ports(src, sink) | Connects the ports of 2 subcomponents. |
| get_node_addr() | Get the namespace address of this component |
| get_parent_model() | Gets the parent component for this component |
| get_subnode(addr) | Gets a subnode from this component recursively. |
| insert_subnode(namespace, subnode) | Insert a subnode into this component |
| set_parent_model(parentmodel) | Sets the parent component for this component |
Attributes
| portconnections |
Connects the ports of 2 subcomponents.
The ports can be specified as string s or NamespaceAddresses.
| Parameters: |
|
|---|
Get the namespace address of this component
Gets the parent component for this component
Gets a subnode from this component recursively.
Insert a subnode into this component
| Parameters: |
|
|---|---|
| Raises : | NineMLRuntimeException if there is already a subcomponent at the same namespace location |
Note
This method will clone the subnode.
Sets the parent component for this component