Base class for both client RemoteServer and server Server.
| Method | __init__ |
Cooperative constructor. |
| Method | find |
Return all objects whose canonical path matches the glob pattern (see ObjectPath.match), in tree order. |
| Method | get |
Return the UaObject which corresponds to the given ua_node. |
| Method | get |
Return the UaObject which corresponds to the given ua_node or None. |
| Method | register |
Register the given UaObject to the server, by node and by its canonical path and aliases. |
| Method | resolve |
Return the object at path, its canonical path or one of its aliases. |
| Method | resolve |
Return the object at path, its canonical path or one of its aliases, or None. |
| Method | ua |
Convert from our QualifiedName to ua.QualifiedName. |
| Method | ua |
Return the namespace index for the given namespace uri. |
| Method | ua |
Return the namespace URI for the given namespace index. |
| Method | ua |
Return the complete OPC UA node ID for the given definition. |
| Method | ua |
Convert the given node ID to a node ID definition. |
| Method | ua |
Convert ua.QualifiedName to our QualifiedName. |
| Method | unregister |
Unregister the given UaObject from the server, by node and by its canonical path and aliases. |
| Method | _clear |
Forget all registered objects, by node and by path (e.g. before a client browses again). |
| Method | _register |
Map path to ua_object; a path already taken by another object keeps that object. |
| Instance Variable | _namespace |
Undocumented |
| Instance Variable | _ua |
Maps OPC UA nodes to UaObjects with weak references. |
| Instance Variable | _ua |
Maps canonical paths and aliases to UaObjects with weak references. |
Return all objects whose canonical path matches the glob pattern (see ObjectPath.match), in tree order.
| Raises | |
ValueError | If pattern is no valid pattern. |
Register the given UaObject to the server, by node and by its canonical path and aliases.
Objects register top-down: the path is taken now, so the parent must already be registered and can't change
anymore (BaseUaObject._set_parent).
| Raises | |
RuntimeError | If the object has a parent that isn't registered. |
Return the object at path, its canonical path or one of its aliases.
| Raises | |
KeyError | If no object has this path. |
ValueError | If path is a str that is no valid path. |
Return the object at path, its canonical path or one of its aliases, or None.
| Raises | |
ValueError | If path is a str that is no valid path. |
Return the namespace index for the given namespace uri.
| Raises | |
KeyError | If the namespace URI is unknown. |
Return the namespace URI for the given namespace index.
| Raises | |
KeyError | If the server has no namespace at index. |
Return the complete OPC UA node ID for the given definition.
| Raises | |
KeyError | If the namespace URI of the definition is unknown. |
Convert the given node ID to a node ID definition.
An ua.ExpandedNodeId uses its NamespaceUri if set.
| Raises | |
KeyError | If the namespace index is unknown. |
ValueError | If an ua.ExpandedNodeId points to another server. |