class documentation
class BaseUaObject(Generic[
Constructor: BaseUaObject(name, server, parent, **kwargs)
Base class for all UA objects, both client- and server-side.
| Method | __init__ |
Cooperative constructor. |
| Method | parent |
Set the parent of the UA object. Given parent must be an instance of BaseUaObject. |
| Method | server |
Undocumented |
| Method | ua |
Set main OPC UA node to an existing node (due to XML import, etc.). Only possible once. |
| Property | full |
Undocumented |
| Property | logger |
Logger associated with the UaObject instance. |
| Property | name |
Name of the object. |
| Property | parent |
Return the untyped parent of the UA object. |
| Property | path |
Return the full path of the object. |
| Property | server |
Return the associated server. |
| Property | ua |
Return the internal OPC UA node. |
| Instance Variable | _logger |
Undocumented |
| Instance Variable | _name |
Undocumented |
| Instance Variable | _parent |
Undocumented |
| Instance Variable | _server |
Undocumented |
| Instance Variable | _ua |
Undocumented |
def __init__(self, *, name:
str | None = None, server: _ServerType | None = None, parent: BaseUaObject[ _ServerType] | None = None, **kwargs):
¶
Cooperative constructor.
| Parameters | |
name:str | None | The name of the UA object. Defaults to the class name. |
server:_ServerType | None | The associated server of the UA object. Note that there must be at least one non None in the hierarchy. |
parent:BaseUaObject[ | The parent of the UA object. Only Machines are allowed to have no parent. Can be set later before asynchronous initialization. |
| **kwargs | Undocumented |