Represents an OPCUA object node. More...
Inherits BaseNode.
Public Member Functions | |
None | create_from_type (int namespace_index, str name, cvb.opcua.NodeID parent_node_id, cvb.opcua.NodeID type_def_node_id) |
Creates an OPCUA object with a given type definition. More... | |
Public Member Functions inherited from BaseNode | |
List[cvb.opcua.NodeID] | browse (self, cvb.opcua.BrowseFilter filter_options) |
Enumerates the child nodes present in the OPCUA server. More... | |
Union[int, float, str] | get_attribute (self, int attribute_id) |
Gets specific information about this node. More... | |
cvb.opcua.NodeID | node_id (self) |
Gets the OPCUA node ID of this node. More... | |
None | set_attribute (self, int attribute_id, Union[int, float, str] value) |
Sets specific information about this node. More... | |
Additional Inherited Members | |
Properties inherited from BaseNode | |
access = property | |
int: Gets access rights to this node (see cvb.opcua.Access). | |
browse_name = property | |
str: Gets the browse name of this node. | |
connection_status = property | |
int: Gets connection status of this node (see cvb.opcua.ConnectionStatus). | |
description = property | |
str: Gets description of this node. | |
display_name = property | |
str: Gets the human-readable name of this node. | |
node_class = property | |
int: Gets OPCUA node class of this node (see cvb.opcua.NodeClass). | |
Represents an OPCUA object node.
This is the base of many more complex node. However the defining feature is to create an ObjectNode from an OPCUA type definition.
Example: An ObjectNode can be created with Namespace0NodeId of 'FolderType', i.e. the creation for a folder.
None create_from_type | ( | int | namespace_index, |
str | name, | ||
cvb.opcua.NodeID | parent_node_id, | ||
cvb.opcua.NodeID | type_def_node_id | ||
) |
Creates an OPCUA object with a given type definition.
You must add this node to a server before most operations are possible.The nodes will require the node ID of the parent node as well as the type definition node ID (namspace0 most likely). Try to avoid using this factory method. Instead use the classes cvb.opcua.MethodNode, or cvb.opcua.VariableNode and the derivatives.
namespace_index : int Namespace index for this node. A cvb.opcua.BaseNode will only be visible via the namespace after adding it to a server.
name : str String literal for the non-localized, human-readable name of the OPCUA object to be created.
parent_node_id : cvb.opcua.NodeID The node ID of the parent node.
type_def_node_id : cvb.opcua.NodeID The node ID of the type definition.