|
@@ 3720-3774 (lines=55) @@
|
| 3717 |
|
|
| 3718 |
|
__repr__ = __str__ |
| 3719 |
|
|
| 3720 |
|
|
| 3721 |
|
class NodeAttributes(FrozenClass): |
| 3722 |
|
''' |
| 3723 |
|
The base attributes for all nodes. |
| 3724 |
|
|
| 3725 |
|
:ivar SpecifiedAttributes: |
| 3726 |
|
:vartype SpecifiedAttributes: UInt32 |
| 3727 |
|
:ivar DisplayName: |
| 3728 |
|
:vartype DisplayName: LocalizedText |
| 3729 |
|
:ivar Description: |
| 3730 |
|
:vartype Description: LocalizedText |
| 3731 |
|
:ivar WriteMask: |
| 3732 |
|
:vartype WriteMask: UInt32 |
| 3733 |
|
:ivar UserWriteMask: |
| 3734 |
|
:vartype UserWriteMask: UInt32 |
| 3735 |
|
''' |
| 3736 |
|
def __init__(self, binary=None): |
| 3737 |
|
if binary is not None: |
| 3738 |
|
self._binary_init(binary) |
| 3739 |
|
self._freeze = True |
| 3740 |
|
return |
| 3741 |
|
self.SpecifiedAttributes = 0 |
| 3742 |
|
self.DisplayName = LocalizedText() |
| 3743 |
|
self.Description = LocalizedText() |
| 3744 |
|
self.WriteMask = 0 |
| 3745 |
|
self.UserWriteMask = 0 |
| 3746 |
|
self._freeze = True |
| 3747 |
|
|
| 3748 |
|
def to_binary(self): |
| 3749 |
|
packet = [] |
| 3750 |
|
packet.append(uatype_UInt32.pack(self.SpecifiedAttributes)) |
| 3751 |
|
packet.append(self.DisplayName.to_binary()) |
| 3752 |
|
packet.append(self.Description.to_binary()) |
| 3753 |
|
packet.append(uatype_UInt32.pack(self.WriteMask)) |
| 3754 |
|
packet.append(uatype_UInt32.pack(self.UserWriteMask)) |
| 3755 |
|
return b''.join(packet) |
| 3756 |
|
|
| 3757 |
|
@staticmethod |
| 3758 |
|
def from_binary(data): |
| 3759 |
|
return NodeAttributes(data) |
| 3760 |
|
|
| 3761 |
|
def _binary_init(self, data): |
| 3762 |
|
self.SpecifiedAttributes = uatype_UInt32.unpack(data.read(4))[0] |
| 3763 |
|
self.DisplayName = LocalizedText.from_binary(data) |
| 3764 |
|
self.Description = LocalizedText.from_binary(data) |
| 3765 |
|
self.WriteMask = uatype_UInt32.unpack(data.read(4))[0] |
| 3766 |
|
self.UserWriteMask = uatype_UInt32.unpack(data.read(4))[0] |
| 3767 |
|
|
| 3768 |
|
def __str__(self): |
| 3769 |
|
return 'NodeAttributes(' + 'SpecifiedAttributes:' + str(self.SpecifiedAttributes) + ', ' + \ |
| 3770 |
|
'DisplayName:' + str(self.DisplayName) + ', ' + \ |
| 3771 |
|
'Description:' + str(self.Description) + ', ' + \ |
| 3772 |
|
'WriteMask:' + str(self.WriteMask) + ', ' + \ |
| 3773 |
|
'UserWriteMask:' + str(self.UserWriteMask) + ')' |
| 3774 |
|
|
| 3775 |
|
__repr__ = __str__ |
| 3776 |
|
|
| 3777 |
|
|
|
@@ 9974-10026 (lines=53) @@
|
| 9971 |
|
|
| 9972 |
|
__repr__ = __str__ |
| 9973 |
|
|
| 9974 |
|
|
| 9975 |
|
class MonitoredItemCreateResult(FrozenClass): |
| 9976 |
|
''' |
| 9977 |
|
:ivar StatusCode: |
| 9978 |
|
:vartype StatusCode: StatusCode |
| 9979 |
|
:ivar MonitoredItemId: |
| 9980 |
|
:vartype MonitoredItemId: UInt32 |
| 9981 |
|
:ivar RevisedSamplingInterval: |
| 9982 |
|
:vartype RevisedSamplingInterval: Double |
| 9983 |
|
:ivar RevisedQueueSize: |
| 9984 |
|
:vartype RevisedQueueSize: UInt32 |
| 9985 |
|
:ivar FilterResult: |
| 9986 |
|
:vartype FilterResult: ExtensionObject |
| 9987 |
|
''' |
| 9988 |
|
def __init__(self, binary=None): |
| 9989 |
|
if binary is not None: |
| 9990 |
|
self._binary_init(binary) |
| 9991 |
|
self._freeze = True |
| 9992 |
|
return |
| 9993 |
|
self.StatusCode = StatusCode() |
| 9994 |
|
self.MonitoredItemId = 0 |
| 9995 |
|
self.RevisedSamplingInterval = 0 |
| 9996 |
|
self.RevisedQueueSize = 0 |
| 9997 |
|
self.FilterResult = None |
| 9998 |
|
self._freeze = True |
| 9999 |
|
|
| 10000 |
|
def to_binary(self): |
| 10001 |
|
packet = [] |
| 10002 |
|
packet.append(self.StatusCode.to_binary()) |
| 10003 |
|
packet.append(uatype_UInt32.pack(self.MonitoredItemId)) |
| 10004 |
|
packet.append(uatype_Double.pack(self.RevisedSamplingInterval)) |
| 10005 |
|
packet.append(uatype_UInt32.pack(self.RevisedQueueSize)) |
| 10006 |
|
packet.append(extensionobject_to_binary(self.FilterResult)) |
| 10007 |
|
return b''.join(packet) |
| 10008 |
|
|
| 10009 |
|
@staticmethod |
| 10010 |
|
def from_binary(data): |
| 10011 |
|
return MonitoredItemCreateResult(data) |
| 10012 |
|
|
| 10013 |
|
def _binary_init(self, data): |
| 10014 |
|
self.StatusCode = StatusCode.from_binary(data) |
| 10015 |
|
self.MonitoredItemId = uatype_UInt32.unpack(data.read(4))[0] |
| 10016 |
|
self.RevisedSamplingInterval = uatype_Double.unpack(data.read(8))[0] |
| 10017 |
|
self.RevisedQueueSize = uatype_UInt32.unpack(data.read(4))[0] |
| 10018 |
|
self.FilterResult = extensionobject_from_binary(data) |
| 10019 |
|
|
| 10020 |
|
def __str__(self): |
| 10021 |
|
return 'MonitoredItemCreateResult(' + 'StatusCode:' + str(self.StatusCode) + ', ' + \ |
| 10022 |
|
'MonitoredItemId:' + str(self.MonitoredItemId) + ', ' + \ |
| 10023 |
|
'RevisedSamplingInterval:' + str(self.RevisedSamplingInterval) + ', ' + \ |
| 10024 |
|
'RevisedQueueSize:' + str(self.RevisedQueueSize) + ', ' + \ |
| 10025 |
|
'FilterResult:' + str(self.FilterResult) + ')' |
| 10026 |
|
|
| 10027 |
|
__repr__ = __str__ |
| 10028 |
|
|
| 10029 |
|
|
|
@@ 9876-9928 (lines=53) @@
|
| 9873 |
|
|
| 9874 |
|
__repr__ = __str__ |
| 9875 |
|
|
| 9876 |
|
|
| 9877 |
|
class MonitoringParameters(FrozenClass): |
| 9878 |
|
''' |
| 9879 |
|
:ivar ClientHandle: |
| 9880 |
|
:vartype ClientHandle: UInt32 |
| 9881 |
|
:ivar SamplingInterval: |
| 9882 |
|
:vartype SamplingInterval: Double |
| 9883 |
|
:ivar Filter: |
| 9884 |
|
:vartype Filter: ExtensionObject |
| 9885 |
|
:ivar QueueSize: |
| 9886 |
|
:vartype QueueSize: UInt32 |
| 9887 |
|
:ivar DiscardOldest: |
| 9888 |
|
:vartype DiscardOldest: Boolean |
| 9889 |
|
''' |
| 9890 |
|
def __init__(self, binary=None): |
| 9891 |
|
if binary is not None: |
| 9892 |
|
self._binary_init(binary) |
| 9893 |
|
self._freeze = True |
| 9894 |
|
return |
| 9895 |
|
self.ClientHandle = 0 |
| 9896 |
|
self.SamplingInterval = 0 |
| 9897 |
|
self.Filter = None |
| 9898 |
|
self.QueueSize = 0 |
| 9899 |
|
self.DiscardOldest = True |
| 9900 |
|
self._freeze = True |
| 9901 |
|
|
| 9902 |
|
def to_binary(self): |
| 9903 |
|
packet = [] |
| 9904 |
|
packet.append(uatype_UInt32.pack(self.ClientHandle)) |
| 9905 |
|
packet.append(uatype_Double.pack(self.SamplingInterval)) |
| 9906 |
|
packet.append(extensionobject_to_binary(self.Filter)) |
| 9907 |
|
packet.append(uatype_UInt32.pack(self.QueueSize)) |
| 9908 |
|
packet.append(uatype_Boolean.pack(self.DiscardOldest)) |
| 9909 |
|
return b''.join(packet) |
| 9910 |
|
|
| 9911 |
|
@staticmethod |
| 9912 |
|
def from_binary(data): |
| 9913 |
|
return MonitoringParameters(data) |
| 9914 |
|
|
| 9915 |
|
def _binary_init(self, data): |
| 9916 |
|
self.ClientHandle = uatype_UInt32.unpack(data.read(4))[0] |
| 9917 |
|
self.SamplingInterval = uatype_Double.unpack(data.read(8))[0] |
| 9918 |
|
self.Filter = extensionobject_from_binary(data) |
| 9919 |
|
self.QueueSize = uatype_UInt32.unpack(data.read(4))[0] |
| 9920 |
|
self.DiscardOldest = uatype_Boolean.unpack(data.read(1))[0] |
| 9921 |
|
|
| 9922 |
|
def __str__(self): |
| 9923 |
|
return 'MonitoringParameters(' + 'ClientHandle:' + str(self.ClientHandle) + ', ' + \ |
| 9924 |
|
'SamplingInterval:' + str(self.SamplingInterval) + ', ' + \ |
| 9925 |
|
'Filter:' + str(self.Filter) + ', ' + \ |
| 9926 |
|
'QueueSize:' + str(self.QueueSize) + ', ' + \ |
| 9927 |
|
'DiscardOldest:' + str(self.DiscardOldest) + ')' |
| 9928 |
|
|
| 9929 |
|
__repr__ = __str__ |
| 9930 |
|
|
| 9931 |
|
|
|
@@ 4998-5052 (lines=55) @@
|
| 4995 |
|
|
| 4996 |
|
__repr__ = __str__ |
| 4997 |
|
|
| 4998 |
|
|
| 4999 |
|
class DeleteReferencesItem(FrozenClass): |
| 5000 |
|
''' |
| 5001 |
|
A request to delete a node from the server address space. |
| 5002 |
|
|
| 5003 |
|
:ivar SourceNodeId: |
| 5004 |
|
:vartype SourceNodeId: NodeId |
| 5005 |
|
:ivar ReferenceTypeId: |
| 5006 |
|
:vartype ReferenceTypeId: NodeId |
| 5007 |
|
:ivar IsForward: |
| 5008 |
|
:vartype IsForward: Boolean |
| 5009 |
|
:ivar TargetNodeId: |
| 5010 |
|
:vartype TargetNodeId: ExpandedNodeId |
| 5011 |
|
:ivar DeleteBidirectional: |
| 5012 |
|
:vartype DeleteBidirectional: Boolean |
| 5013 |
|
''' |
| 5014 |
|
def __init__(self, binary=None): |
| 5015 |
|
if binary is not None: |
| 5016 |
|
self._binary_init(binary) |
| 5017 |
|
self._freeze = True |
| 5018 |
|
return |
| 5019 |
|
self.SourceNodeId = NodeId() |
| 5020 |
|
self.ReferenceTypeId = NodeId() |
| 5021 |
|
self.IsForward = True |
| 5022 |
|
self.TargetNodeId = ExpandedNodeId() |
| 5023 |
|
self.DeleteBidirectional = True |
| 5024 |
|
self._freeze = True |
| 5025 |
|
|
| 5026 |
|
def to_binary(self): |
| 5027 |
|
packet = [] |
| 5028 |
|
packet.append(self.SourceNodeId.to_binary()) |
| 5029 |
|
packet.append(self.ReferenceTypeId.to_binary()) |
| 5030 |
|
packet.append(uatype_Boolean.pack(self.IsForward)) |
| 5031 |
|
packet.append(self.TargetNodeId.to_binary()) |
| 5032 |
|
packet.append(uatype_Boolean.pack(self.DeleteBidirectional)) |
| 5033 |
|
return b''.join(packet) |
| 5034 |
|
|
| 5035 |
|
@staticmethod |
| 5036 |
|
def from_binary(data): |
| 5037 |
|
return DeleteReferencesItem(data) |
| 5038 |
|
|
| 5039 |
|
def _binary_init(self, data): |
| 5040 |
|
self.SourceNodeId = NodeId.from_binary(data) |
| 5041 |
|
self.ReferenceTypeId = NodeId.from_binary(data) |
| 5042 |
|
self.IsForward = uatype_Boolean.unpack(data.read(1))[0] |
| 5043 |
|
self.TargetNodeId = ExpandedNodeId.from_binary(data) |
| 5044 |
|
self.DeleteBidirectional = uatype_Boolean.unpack(data.read(1))[0] |
| 5045 |
|
|
| 5046 |
|
def __str__(self): |
| 5047 |
|
return 'DeleteReferencesItem(' + 'SourceNodeId:' + str(self.SourceNodeId) + ', ' + \ |
| 5048 |
|
'ReferenceTypeId:' + str(self.ReferenceTypeId) + ', ' + \ |
| 5049 |
|
'IsForward:' + str(self.IsForward) + ', ' + \ |
| 5050 |
|
'TargetNodeId:' + str(self.TargetNodeId) + ', ' + \ |
| 5051 |
|
'DeleteBidirectional:' + str(self.DeleteBidirectional) + ')' |
| 5052 |
|
|
| 5053 |
|
__repr__ = __str__ |
| 5054 |
|
|
| 5055 |
|
|