Commit a231bba9 authored by Christopher Bremner's avatar Christopher Bremner Committed by oroulet

Add a few methods to sync Node API

parent 86b214aa
......@@ -248,13 +248,20 @@ class Node:
self.aio_obj = aio_node
self.tloop = tloop
def __hash__(self):
return self.aio_obj.__hash__()
def __eq__(self, other):
return self.aio_obj == other.aio_obj
def __ne__(self, other):
return not self.__eq__(other)
def __str__(self):
return "Sync" + self.aio_obj.__str__()
__repr__ = __str__
def __hash__(self):
return self.aio_obj.__hash__()
@property
def nodeid(self):
return self.aio_obj.nodeid
......@@ -263,6 +270,10 @@ class Node:
def get_browse_name(self):
pass
@syncmethod
def get_display_name(self):
pass
@syncmethod
def get_children(self, refs=ua.ObjectIds.HierarchicalReferences, nodeclassmask=ua.NodeClass.Unspecified):
pass
......@@ -317,7 +328,7 @@ class Node:
set_value = write_value # legacy
@syncmethod
def read_value(self, val):
def read_value(self):
pass
get_value = read_value # legacy
......@@ -326,8 +337,17 @@ class Node:
def call_method(self, methodid, *args):
pass
def __eq__(self, other):
return self.aio_obj == other.aio_obj
@syncmethod
def get_references(self, refs=ua.ObjectIds.References, direction=ua.BrowseDirection.Both, nodeclassmask=ua.NodeClass.Unspecified, includesubtypes=True):
pass
@syncmethod
def get_description(self):
pass
@syncmethod
def get_variables(self):
pass
class Subscription:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment