High level node object, to access node attribute, browse and populate address space. Node objects are usefull as-is but they do not expose the entire OPC-UA protocol. Feel free to look at the code of this class and call directly UA services methods to optimize your code
def opcua.common.node.Node.__init__ | ( | self, | |
server, | |||
nodeid | |||
) |
def opcua.common.node.Node.__eq__ | ( | self, | |
other | |||
) |
def opcua.common.node.Node.__hash__ | ( | self | ) |
def opcua.common.node.Node.__ne__ | ( | self, | |
other | |||
) |
def opcua.common.node.Node.__str__ | ( | self | ) |
def opcua.common.node.Node._get_path | ( | self, | |
max_length = 20 |
|||
) | [private] |
Attempt to find path of node from root node and return it as a list of Nodes. There might several possible paths to a node, this function will return one Some nodes may be missing references, so this method may return an empty list Since address space may have circular references, a max length is specified
def opcua.common.node.Node._make_relative_path | ( | self, | |
path | |||
) | [private] |
def opcua.common.node.Node.add_data_type | ( | self, | |
nodeid, | |||
bname, | |||
description = None |
|||
) |
def opcua.common.node.Node.add_folder | ( | self, | |
nodeid, | |||
bname | |||
) |
def opcua.common.node.Node.add_method | ( | self, | |
args | |||
) |
def opcua.common.node.Node.add_object | ( | self, | |
nodeid, | |||
bname, | |||
objecttype = None |
|||
) |
def opcua.common.node.Node.add_object_type | ( | self, | |
nodeid, | |||
bname | |||
) |
def opcua.common.node.Node.add_property | ( | self, | |
nodeid, | |||
bname, | |||
val, | |||
varianttype = None , |
|||
datatype = None |
|||
) |
def opcua.common.node.Node.add_reference_type | ( | self, | |
parent, | |||
nodeid, | |||
bname | |||
) |
def opcua.common.node.Node.add_variable | ( | self, | |
nodeid, | |||
bname, | |||
val, | |||
varianttype = None , |
|||
datatype = None |
|||
) |
def opcua.common.node.Node.add_variable_type | ( | self, | |
nodeid, | |||
bname, | |||
datatype | |||
) |
def opcua.common.node.Node.call_method | ( | self, | |
methodid, | |||
args | |||
) |
def opcua.common.node.Node.delete | ( | self, | |
delete_references = True |
|||
) |
def opcua.common.node.Node.get_access_level | ( | self | ) |
def opcua.common.node.Node.get_array_dimensions | ( | self | ) |
def opcua.common.node.Node.get_attribute | ( | self, | |
attr | |||
) |
def opcua.common.node.Node.get_attributes | ( | self, | |
attrs | |||
) |
def opcua.common.node.Node.get_browse_name | ( | self | ) |
def opcua.common.node.Node.get_child | ( | self, | |
path | |||
) |
def opcua.common.node.Node.get_children | ( | self, | |
refs = ua.ObjectIds.HierarchicalReferences , |
|||
nodeclassmask = ua.NodeClass.Unspecified |
|||
) |
Get all children of a node. By default hierarchical references and all node classes are returned. Other reference types may be given: References = 31 NonHierarchicalReferences = 32 HierarchicalReferences = 33 HasChild = 34 Organizes = 35 HasEventSource = 36 HasModellingRule = 37 HasEncoding = 38 HasDescription = 39 HasTypeDefinition = 40 GeneratesEvent = 41 Aggregates = 44 HasSubtype = 45 HasProperty = 46 HasComponent = 47 HasNotifier = 48 HasOrderedComponent = 49
def opcua.common.node.Node.get_children_descriptions | ( | self, | |
refs = ua.ObjectIds.HierarchicalReferences , |
|||
nodeclassmask = ua.NodeClass.Unspecified , |
|||
includesubtypes = True |
|||
) |
def opcua.common.node.Node.get_data_type | ( | self | ) |
def opcua.common.node.Node.get_data_value | ( | self | ) |
def opcua.common.node.Node.get_description | ( | self | ) |
def opcua.common.node.Node.get_display_name | ( | self | ) |
def opcua.common.node.Node.get_event_notifier | ( | self | ) |
def opcua.common.node.Node.get_methods | ( | self | ) |
def opcua.common.node.Node.get_node_class | ( | self | ) |
def opcua.common.node.Node.get_parent | ( | self | ) |
def opcua.common.node.Node.get_path | ( | self, | |
max_length = 20 |
|||
) |
Attempt to find path of node from root node and return it as a list of Nodes. There might several possible paths to a node, this function will return one Some nodes may be missing references, so this method may return an empty list Since address space may have circular references, a max length is specified
def opcua.common.node.Node.get_path_as_string | ( | self, | |
max_length = 20 |
|||
) |
Attempt to find path of node from root node and return it as a list of strings. There might several possible paths to a node, this function will return one Some nodes may be missing references, so this method may return an empty list Since address space may have circular references, a max length is specified
def opcua.common.node.Node.get_properties | ( | self | ) |
def opcua.common.node.Node.get_referenced_nodes | ( | self, | |
refs = ua.ObjectIds.References , |
|||
direction = ua.BrowseDirection.Both , |
|||
nodeclassmask = ua.NodeClass.Unspecified , |
|||
includesubtypes = True |
|||
) |
def opcua.common.node.Node.get_references | ( | self, | |
refs = ua.ObjectIds.References , |
|||
direction = ua.BrowseDirection.Both , |
|||
nodeclassmask = ua.NodeClass.Unspecified , |
|||
includesubtypes = True |
|||
) |
returns references of the node based on specific filter defined with: refs = ObjectId of the Reference direction = Browse direction for references nodeclassmask = filter nodes based on specific class includesubtypes = If true subtypes of the reference (ref) are also included
def opcua.common.node.Node.get_type_definition | ( | self | ) |
def opcua.common.node.Node.get_user_access_level | ( | self | ) |
def opcua.common.node.Node.get_value | ( | self | ) |
def opcua.common.node.Node.get_value_rank | ( | self | ) |
def opcua.common.node.Node.get_variables | ( | self | ) |
def opcua.common.node.Node.history_read | ( | self, | |
details | |||
) |
def opcua.common.node.Node.history_read_events | ( | self, | |
details | |||
) |
def opcua.common.node.Node.read_event_history | ( | self, | |
starttime = None , |
|||
endtime = None , |
|||
numvalues = 0 , |
|||
evtypes = ua.ObjectIds.BaseEventType |
|||
) |
def opcua.common.node.Node.read_raw_history | ( | self, | |
starttime = None , |
|||
endtime = None , |
|||
numvalues = 0 |
|||
) |
def opcua.common.node.Node.set_array_dimensions | ( | self, | |
value | |||
) |
def opcua.common.node.Node.set_attr_bit | ( | self, | |
attr, | |||
bit | |||
) |
def opcua.common.node.Node.set_attribute | ( | self, | |
attributeid, | |||
datavalue | |||
) |
def opcua.common.node.Node.set_event_notifier | ( | self, | |
values | |||
) |
def opcua.common.node.Node.set_read_only | ( | self | ) |
def opcua.common.node.Node.set_value | ( | self, | |
value, | |||
varianttype = None |
|||
) |
Set value of a node. Only variables(properties) have values. An exception will be generated for other node types. value argument is either: * a python built-in type, converted to opc-ua optionnaly using the variantype argument. * a ua.Variant, varianttype is then ignored * a ua.DataValue, you then have full control over data send to server
def opcua.common.node.Node.set_value_rank | ( | self, | |
value | |||
) |
def opcua.common.node.Node.set_writable | ( | self, | |
writable = True |
|||
) |
def opcua.common.node.Node.unset_attr_bit | ( | self, | |
attr, | |||
bit | |||
) |
opcua::common::node.Node::__repr__ = __str__ [static, private] |