Public Member Functions | |
def | __eq__ (self, other) |
def | __hash__ (self) |
def | __init__ (self, server, nodeid) |
def | __ne__ (self, other) |
def | __str__ (self) |
def | add_data_type (self, nodeid, bname, description=None) |
def | add_folder (self, nodeid, bname) |
def | add_method (self, args) |
def | add_object (self, nodeid, bname, objecttype=None) |
def | add_object_type (self, nodeid, bname) |
def | add_property (self, nodeid, bname, val, varianttype=None, datatype=None) |
def | add_reference_type (self, parent, nodeid, bname) |
def | add_variable (self, nodeid, bname, val, varianttype=None, datatype=None) |
def | add_variable_type (self, nodeid, bname, datatype) |
def | call_method (self, methodid, args) |
def | delete (self, delete_references=True) |
def | get_access_level (self) |
def | get_array_dimensions (self) |
def | get_attribute (self, attr) |
def | get_attributes (self, attrs) |
def | get_browse_name (self) |
def | get_child (self, path) |
def | get_children (self, refs=ua.ObjectIds.HierarchicalReferences, nodeclassmask=ua.NodeClass.Unspecified) |
def | get_children_descriptions (self, refs=ua.ObjectIds.HierarchicalReferences, nodeclassmask=ua.NodeClass.Unspecified, includesubtypes=True) |
def | get_data_type (self) |
def | get_data_type_as_variant_type (self) |
def | get_data_value (self) |
def | get_description (self) |
def | get_display_name (self) |
def | get_event_notifier (self) |
def | get_methods (self) |
def | get_node_class (self) |
def | get_parent (self) |
def | get_path (self, max_length=20) |
def | get_path_as_string (self, max_length=20) |
def | get_properties (self) |
def | get_referenced_nodes (self, refs=ua.ObjectIds.References, direction=ua.BrowseDirection.Both, nodeclassmask=ua.NodeClass.Unspecified, includesubtypes=True) |
def | get_references (self, refs=ua.ObjectIds.References, direction=ua.BrowseDirection.Both, nodeclassmask=ua.NodeClass.Unspecified, includesubtypes=True) |
def | get_type_definition (self) |
def | get_user_access_level (self) |
def | get_value (self) |
def | get_value_rank (self) |
def | get_variables (self) |
def | history_read (self, details) |
def | history_read_events (self, details) |
def | read_event_history (self, starttime=None, endtime=None, numvalues=0, evtypes=ua.ObjectIds.BaseEventType) |
def | read_raw_history (self, starttime=None, endtime=None, numvalues=0) |
def | set_array_dimensions (self, value) |
def | set_attr_bit (self, attr, bit) |
def | set_attribute (self, attributeid, datavalue) |
def | set_event_notifier (self, values) |
def | set_read_only (self) |
def | set_value (self, value, varianttype=None) |
def | set_value_rank (self, value) |
def | set_writable (self, writable=True) |
def | unset_attr_bit (self, attr, bit) |
Public Attributes | |
nodeid | |
server | |
Static Public Attributes | |
set_data_value = set_value | |
Private Member Functions | |
def | _get_path (self, max_length=20) |
def | _make_relative_path (self, path) |
Static Private Attributes | |
__repr__ = __str__ | |
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
|
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
|
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_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_type_as_variant_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_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 | |||
) |