@@ 6740-6806 (lines=67) @@ | ||
6737 | __repr__ = __str__ |
|
6738 | ||
6739 | ||
6740 | class TranslateBrowsePathsToNodeIdsResponse(FrozenClass): |
|
6741 | ''' |
|
6742 | Translates one or more paths in the server address space. |
|
6743 | ||
6744 | :ivar TypeId: |
|
6745 | :vartype TypeId: NodeId |
|
6746 | :ivar ResponseHeader: |
|
6747 | :vartype ResponseHeader: ResponseHeader |
|
6748 | :ivar Results: |
|
6749 | :vartype Results: BrowsePathResult |
|
6750 | :ivar DiagnosticInfos: |
|
6751 | :vartype DiagnosticInfos: DiagnosticInfo |
|
6752 | ''' |
|
6753 | ||
6754 | ua_types = [ |
|
6755 | ||
6756 | ('TypeId', 'NodeId'), |
|
6757 | ('ResponseHeader', 'ResponseHeader'), |
|
6758 | ('Results', 'ListOfBrowsePathResult'), |
|
6759 | ('DiagnosticInfos', 'ListOfDiagnosticInfo'), |
|
6760 | ] |
|
6761 | ||
6762 | def __init__(self): |
|
6763 | self.TypeId = FourByteNodeId(ObjectIds.TranslateBrowsePathsToNodeIdsResponse_Encoding_DefaultBinary) |
|
6764 | self.ResponseHeader = ResponseHeader() |
|
6765 | self.Results = [] |
|
6766 | self.DiagnosticInfos = [] |
|
6767 | self._freeze = True |
|
6768 | ||
6769 | def to_binary(self): |
|
6770 | packet = [] |
|
6771 | packet.append(self.TypeId.to_binary()) |
|
6772 | packet.append(self.ResponseHeader.to_binary()) |
|
6773 | packet.append(uabin.Primitives.Int32.pack(len(self.Results))) |
|
6774 | for fieldname in self.Results: |
|
6775 | packet.append(fieldname.to_binary()) |
|
6776 | packet.append(uabin.Primitives.Int32.pack(len(self.DiagnosticInfos))) |
|
6777 | for fieldname in self.DiagnosticInfos: |
|
6778 | packet.append(fieldname.to_binary()) |
|
6779 | return b''.join(packet) |
|
6780 | ||
6781 | @staticmethod |
|
6782 | def from_binary(data): |
|
6783 | obj = TranslateBrowsePathsToNodeIdsResponse() |
|
6784 | obj.TypeId = NodeId.from_binary(data) |
|
6785 | obj.ResponseHeader = ResponseHeader.from_binary(data) |
|
6786 | length = uabin.Primitives.Int32.unpack(data) |
|
6787 | array = [] |
|
6788 | if length != -1: |
|
6789 | for _ in range(0, length): |
|
6790 | array.append(BrowsePathResult.from_binary(data)) |
|
6791 | obj.Results = array |
|
6792 | length = uabin.Primitives.Int32.unpack(data) |
|
6793 | array = [] |
|
6794 | if length != -1: |
|
6795 | for _ in range(0, length): |
|
6796 | array.append(DiagnosticInfo.from_binary(data)) |
|
6797 | obj.DiagnosticInfos = array |
|
6798 | return obj |
|
6799 | ||
6800 | def __str__(self): |
|
6801 | return 'TranslateBrowsePathsToNodeIdsResponse(' + 'TypeId:' + str(self.TypeId) + ', ' + \ |
|
6802 | 'ResponseHeader:' + str(self.ResponseHeader) + ', ' + \ |
|
6803 | 'Results:' + str(self.Results) + ', ' + \ |
|
6804 | 'DiagnosticInfos:' + str(self.DiagnosticInfos) + ')' |
|
6805 | ||
6806 | __repr__ = __str__ |
|
6807 | ||
6808 | ||
6809 | class RegisterNodesParameters(FrozenClass): |
|
@@ 6168-6234 (lines=67) @@ | ||
6165 | __repr__ = __str__ |
|
6166 | ||
6167 | ||
6168 | class BrowseResponse(FrozenClass): |
|
6169 | ''' |
|
6170 | Browse the references for one or more nodes from the server address space. |
|
6171 | ||
6172 | :ivar TypeId: |
|
6173 | :vartype TypeId: NodeId |
|
6174 | :ivar ResponseHeader: |
|
6175 | :vartype ResponseHeader: ResponseHeader |
|
6176 | :ivar Results: |
|
6177 | :vartype Results: BrowseResult |
|
6178 | :ivar DiagnosticInfos: |
|
6179 | :vartype DiagnosticInfos: DiagnosticInfo |
|
6180 | ''' |
|
6181 | ||
6182 | ua_types = [ |
|
6183 | ||
6184 | ('TypeId', 'NodeId'), |
|
6185 | ('ResponseHeader', 'ResponseHeader'), |
|
6186 | ('Results', 'ListOfBrowseResult'), |
|
6187 | ('DiagnosticInfos', 'ListOfDiagnosticInfo'), |
|
6188 | ] |
|
6189 | ||
6190 | def __init__(self): |
|
6191 | self.TypeId = FourByteNodeId(ObjectIds.BrowseResponse_Encoding_DefaultBinary) |
|
6192 | self.ResponseHeader = ResponseHeader() |
|
6193 | self.Results = [] |
|
6194 | self.DiagnosticInfos = [] |
|
6195 | self._freeze = True |
|
6196 | ||
6197 | def to_binary(self): |
|
6198 | packet = [] |
|
6199 | packet.append(self.TypeId.to_binary()) |
|
6200 | packet.append(self.ResponseHeader.to_binary()) |
|
6201 | packet.append(uabin.Primitives.Int32.pack(len(self.Results))) |
|
6202 | for fieldname in self.Results: |
|
6203 | packet.append(fieldname.to_binary()) |
|
6204 | packet.append(uabin.Primitives.Int32.pack(len(self.DiagnosticInfos))) |
|
6205 | for fieldname in self.DiagnosticInfos: |
|
6206 | packet.append(fieldname.to_binary()) |
|
6207 | return b''.join(packet) |
|
6208 | ||
6209 | @staticmethod |
|
6210 | def from_binary(data): |
|
6211 | obj = BrowseResponse() |
|
6212 | obj.TypeId = NodeId.from_binary(data) |
|
6213 | obj.ResponseHeader = ResponseHeader.from_binary(data) |
|
6214 | length = uabin.Primitives.Int32.unpack(data) |
|
6215 | array = [] |
|
6216 | if length != -1: |
|
6217 | for _ in range(0, length): |
|
6218 | array.append(BrowseResult.from_binary(data)) |
|
6219 | obj.Results = array |
|
6220 | length = uabin.Primitives.Int32.unpack(data) |
|
6221 | array = [] |
|
6222 | if length != -1: |
|
6223 | for _ in range(0, length): |
|
6224 | array.append(DiagnosticInfo.from_binary(data)) |
|
6225 | obj.DiagnosticInfos = array |
|
6226 | return obj |
|
6227 | ||
6228 | def __str__(self): |
|
6229 | return 'BrowseResponse(' + 'TypeId:' + str(self.TypeId) + ', ' + \ |
|
6230 | 'ResponseHeader:' + str(self.ResponseHeader) + ', ' + \ |
|
6231 | 'Results:' + str(self.Results) + ', ' + \ |
|
6232 | 'DiagnosticInfos:' + str(self.DiagnosticInfos) + ')' |
|
6233 | ||
6234 | __repr__ = __str__ |
|
6235 | ||
6236 | ||
6237 | class BrowseNextParameters(FrozenClass): |
|
@@ 5500-5566 (lines=67) @@ | ||
5497 | __repr__ = __str__ |
|
5498 | ||
5499 | ||
5500 | class DeleteNodesResponse(FrozenClass): |
|
5501 | ''' |
|
5502 | Delete one or more nodes from the server address space. |
|
5503 | ||
5504 | :ivar TypeId: |
|
5505 | :vartype TypeId: NodeId |
|
5506 | :ivar ResponseHeader: |
|
5507 | :vartype ResponseHeader: ResponseHeader |
|
5508 | :ivar Results: |
|
5509 | :vartype Results: StatusCode |
|
5510 | :ivar DiagnosticInfos: |
|
5511 | :vartype DiagnosticInfos: DiagnosticInfo |
|
5512 | ''' |
|
5513 | ||
5514 | ua_types = [ |
|
5515 | ||
5516 | ('TypeId', 'NodeId'), |
|
5517 | ('ResponseHeader', 'ResponseHeader'), |
|
5518 | ('Results', 'ListOfStatusCode'), |
|
5519 | ('DiagnosticInfos', 'ListOfDiagnosticInfo'), |
|
5520 | ] |
|
5521 | ||
5522 | def __init__(self): |
|
5523 | self.TypeId = FourByteNodeId(ObjectIds.DeleteNodesResponse_Encoding_DefaultBinary) |
|
5524 | self.ResponseHeader = ResponseHeader() |
|
5525 | self.Results = [] |
|
5526 | self.DiagnosticInfos = [] |
|
5527 | self._freeze = True |
|
5528 | ||
5529 | def to_binary(self): |
|
5530 | packet = [] |
|
5531 | packet.append(self.TypeId.to_binary()) |
|
5532 | packet.append(self.ResponseHeader.to_binary()) |
|
5533 | packet.append(uabin.Primitives.Int32.pack(len(self.Results))) |
|
5534 | for fieldname in self.Results: |
|
5535 | packet.append(fieldname.to_binary()) |
|
5536 | packet.append(uabin.Primitives.Int32.pack(len(self.DiagnosticInfos))) |
|
5537 | for fieldname in self.DiagnosticInfos: |
|
5538 | packet.append(fieldname.to_binary()) |
|
5539 | return b''.join(packet) |
|
5540 | ||
5541 | @staticmethod |
|
5542 | def from_binary(data): |
|
5543 | obj = DeleteNodesResponse() |
|
5544 | obj.TypeId = NodeId.from_binary(data) |
|
5545 | obj.ResponseHeader = ResponseHeader.from_binary(data) |
|
5546 | length = uabin.Primitives.Int32.unpack(data) |
|
5547 | array = [] |
|
5548 | if length != -1: |
|
5549 | for _ in range(0, length): |
|
5550 | array.append(StatusCode.from_binary(data)) |
|
5551 | obj.Results = array |
|
5552 | length = uabin.Primitives.Int32.unpack(data) |
|
5553 | array = [] |
|
5554 | if length != -1: |
|
5555 | for _ in range(0, length): |
|
5556 | array.append(DiagnosticInfo.from_binary(data)) |
|
5557 | obj.DiagnosticInfos = array |
|
5558 | return obj |
|
5559 | ||
5560 | def __str__(self): |
|
5561 | return 'DeleteNodesResponse(' + 'TypeId:' + str(self.TypeId) + ', ' + \ |
|
5562 | 'ResponseHeader:' + str(self.ResponseHeader) + ', ' + \ |
|
5563 | 'Results:' + str(self.Results) + ', ' + \ |
|
5564 | 'DiagnosticInfos:' + str(self.DiagnosticInfos) + ')' |
|
5565 | ||
5566 | __repr__ = __str__ |
|
5567 | ||
5568 | ||
5569 | class DeleteReferencesItem(FrozenClass): |
|
@@ 5303-5369 (lines=67) @@ | ||
5300 | __repr__ = __str__ |
|
5301 | ||
5302 | ||
5303 | class AddReferencesResponse(FrozenClass): |
|
5304 | ''' |
|
5305 | Adds one or more references to the server address space. |
|
5306 | ||
5307 | :ivar TypeId: |
|
5308 | :vartype TypeId: NodeId |
|
5309 | :ivar ResponseHeader: |
|
5310 | :vartype ResponseHeader: ResponseHeader |
|
5311 | :ivar Results: |
|
5312 | :vartype Results: StatusCode |
|
5313 | :ivar DiagnosticInfos: |
|
5314 | :vartype DiagnosticInfos: DiagnosticInfo |
|
5315 | ''' |
|
5316 | ||
5317 | ua_types = [ |
|
5318 | ||
5319 | ('TypeId', 'NodeId'), |
|
5320 | ('ResponseHeader', 'ResponseHeader'), |
|
5321 | ('Results', 'ListOfStatusCode'), |
|
5322 | ('DiagnosticInfos', 'ListOfDiagnosticInfo'), |
|
5323 | ] |
|
5324 | ||
5325 | def __init__(self): |
|
5326 | self.TypeId = FourByteNodeId(ObjectIds.AddReferencesResponse_Encoding_DefaultBinary) |
|
5327 | self.ResponseHeader = ResponseHeader() |
|
5328 | self.Results = [] |
|
5329 | self.DiagnosticInfos = [] |
|
5330 | self._freeze = True |
|
5331 | ||
5332 | def to_binary(self): |
|
5333 | packet = [] |
|
5334 | packet.append(self.TypeId.to_binary()) |
|
5335 | packet.append(self.ResponseHeader.to_binary()) |
|
5336 | packet.append(uabin.Primitives.Int32.pack(len(self.Results))) |
|
5337 | for fieldname in self.Results: |
|
5338 | packet.append(fieldname.to_binary()) |
|
5339 | packet.append(uabin.Primitives.Int32.pack(len(self.DiagnosticInfos))) |
|
5340 | for fieldname in self.DiagnosticInfos: |
|
5341 | packet.append(fieldname.to_binary()) |
|
5342 | return b''.join(packet) |
|
5343 | ||
5344 | @staticmethod |
|
5345 | def from_binary(data): |
|
5346 | obj = AddReferencesResponse() |
|
5347 | obj.TypeId = NodeId.from_binary(data) |
|
5348 | obj.ResponseHeader = ResponseHeader.from_binary(data) |
|
5349 | length = uabin.Primitives.Int32.unpack(data) |
|
5350 | array = [] |
|
5351 | if length != -1: |
|
5352 | for _ in range(0, length): |
|
5353 | array.append(StatusCode.from_binary(data)) |
|
5354 | obj.Results = array |
|
5355 | length = uabin.Primitives.Int32.unpack(data) |
|
5356 | array = [] |
|
5357 | if length != -1: |
|
5358 | for _ in range(0, length): |
|
5359 | array.append(DiagnosticInfo.from_binary(data)) |
|
5360 | obj.DiagnosticInfos = array |
|
5361 | return obj |
|
5362 | ||
5363 | def __str__(self): |
|
5364 | return 'AddReferencesResponse(' + 'TypeId:' + str(self.TypeId) + ', ' + \ |
|
5365 | 'ResponseHeader:' + str(self.ResponseHeader) + ', ' + \ |
|
5366 | 'Results:' + str(self.Results) + ', ' + \ |
|
5367 | 'DiagnosticInfos:' + str(self.DiagnosticInfos) + ')' |
|
5368 | ||
5369 | __repr__ = __str__ |
|
5370 | ||
5371 | ||
5372 | class DeleteNodesItem(FrozenClass): |
|
@@ 5078-5144 (lines=67) @@ | ||
5075 | __repr__ = __str__ |
|
5076 | ||
5077 | ||
5078 | class AddNodesResponse(FrozenClass): |
|
5079 | ''' |
|
5080 | Adds one or more nodes to the server address space. |
|
5081 | ||
5082 | :ivar TypeId: |
|
5083 | :vartype TypeId: NodeId |
|
5084 | :ivar ResponseHeader: |
|
5085 | :vartype ResponseHeader: ResponseHeader |
|
5086 | :ivar Results: |
|
5087 | :vartype Results: AddNodesResult |
|
5088 | :ivar DiagnosticInfos: |
|
5089 | :vartype DiagnosticInfos: DiagnosticInfo |
|
5090 | ''' |
|
5091 | ||
5092 | ua_types = [ |
|
5093 | ||
5094 | ('TypeId', 'NodeId'), |
|
5095 | ('ResponseHeader', 'ResponseHeader'), |
|
5096 | ('Results', 'ListOfAddNodesResult'), |
|
5097 | ('DiagnosticInfos', 'ListOfDiagnosticInfo'), |
|
5098 | ] |
|
5099 | ||
5100 | def __init__(self): |
|
5101 | self.TypeId = FourByteNodeId(ObjectIds.AddNodesResponse_Encoding_DefaultBinary) |
|
5102 | self.ResponseHeader = ResponseHeader() |
|
5103 | self.Results = [] |
|
5104 | self.DiagnosticInfos = [] |
|
5105 | self._freeze = True |
|
5106 | ||
5107 | def to_binary(self): |
|
5108 | packet = [] |
|
5109 | packet.append(self.TypeId.to_binary()) |
|
5110 | packet.append(self.ResponseHeader.to_binary()) |
|
5111 | packet.append(uabin.Primitives.Int32.pack(len(self.Results))) |
|
5112 | for fieldname in self.Results: |
|
5113 | packet.append(fieldname.to_binary()) |
|
5114 | packet.append(uabin.Primitives.Int32.pack(len(self.DiagnosticInfos))) |
|
5115 | for fieldname in self.DiagnosticInfos: |
|
5116 | packet.append(fieldname.to_binary()) |
|
5117 | return b''.join(packet) |
|
5118 | ||
5119 | @staticmethod |
|
5120 | def from_binary(data): |
|
5121 | obj = AddNodesResponse() |
|
5122 | obj.TypeId = NodeId.from_binary(data) |
|
5123 | obj.ResponseHeader = ResponseHeader.from_binary(data) |
|
5124 | length = uabin.Primitives.Int32.unpack(data) |
|
5125 | array = [] |
|
5126 | if length != -1: |
|
5127 | for _ in range(0, length): |
|
5128 | array.append(AddNodesResult.from_binary(data)) |
|
5129 | obj.Results = array |
|
5130 | length = uabin.Primitives.Int32.unpack(data) |
|
5131 | array = [] |
|
5132 | if length != -1: |
|
5133 | for _ in range(0, length): |
|
5134 | array.append(DiagnosticInfo.from_binary(data)) |
|
5135 | obj.DiagnosticInfos = array |
|
5136 | return obj |
|
5137 | ||
5138 | def __str__(self): |
|
5139 | return 'AddNodesResponse(' + 'TypeId:' + str(self.TypeId) + ', ' + \ |
|
5140 | 'ResponseHeader:' + str(self.ResponseHeader) + ', ' + \ |
|
5141 | 'Results:' + str(self.Results) + ', ' + \ |
|
5142 | 'DiagnosticInfos:' + str(self.DiagnosticInfos) + ')' |
|
5143 | ||
5144 | __repr__ = __str__ |
|
5145 | ||
5146 | ||
5147 | class AddReferencesItem(FrozenClass): |
|
@@ 13543-13607 (lines=65) @@ | ||
13540 | __repr__ = __str__ |
|
13541 | ||
13542 | ||
13543 | class DeleteSubscriptionsResponse(FrozenClass): |
|
13544 | ''' |
|
13545 | :ivar TypeId: |
|
13546 | :vartype TypeId: NodeId |
|
13547 | :ivar ResponseHeader: |
|
13548 | :vartype ResponseHeader: ResponseHeader |
|
13549 | :ivar Results: |
|
13550 | :vartype Results: StatusCode |
|
13551 | :ivar DiagnosticInfos: |
|
13552 | :vartype DiagnosticInfos: DiagnosticInfo |
|
13553 | ''' |
|
13554 | ||
13555 | ua_types = [ |
|
13556 | ||
13557 | ('TypeId', 'NodeId'), |
|
13558 | ('ResponseHeader', 'ResponseHeader'), |
|
13559 | ('Results', 'ListOfStatusCode'), |
|
13560 | ('DiagnosticInfos', 'ListOfDiagnosticInfo'), |
|
13561 | ] |
|
13562 | ||
13563 | def __init__(self): |
|
13564 | self.TypeId = FourByteNodeId(ObjectIds.DeleteSubscriptionsResponse_Encoding_DefaultBinary) |
|
13565 | self.ResponseHeader = ResponseHeader() |
|
13566 | self.Results = [] |
|
13567 | self.DiagnosticInfos = [] |
|
13568 | self._freeze = True |
|
13569 | ||
13570 | def to_binary(self): |
|
13571 | packet = [] |
|
13572 | packet.append(self.TypeId.to_binary()) |
|
13573 | packet.append(self.ResponseHeader.to_binary()) |
|
13574 | packet.append(uabin.Primitives.Int32.pack(len(self.Results))) |
|
13575 | for fieldname in self.Results: |
|
13576 | packet.append(fieldname.to_binary()) |
|
13577 | packet.append(uabin.Primitives.Int32.pack(len(self.DiagnosticInfos))) |
|
13578 | for fieldname in self.DiagnosticInfos: |
|
13579 | packet.append(fieldname.to_binary()) |
|
13580 | return b''.join(packet) |
|
13581 | ||
13582 | @staticmethod |
|
13583 | def from_binary(data): |
|
13584 | obj = DeleteSubscriptionsResponse() |
|
13585 | obj.TypeId = NodeId.from_binary(data) |
|
13586 | obj.ResponseHeader = ResponseHeader.from_binary(data) |
|
13587 | length = uabin.Primitives.Int32.unpack(data) |
|
13588 | array = [] |
|
13589 | if length != -1: |
|
13590 | for _ in range(0, length): |
|
13591 | array.append(StatusCode.from_binary(data)) |
|
13592 | obj.Results = array |
|
13593 | length = uabin.Primitives.Int32.unpack(data) |
|
13594 | array = [] |
|
13595 | if length != -1: |
|
13596 | for _ in range(0, length): |
|
13597 | array.append(DiagnosticInfo.from_binary(data)) |
|
13598 | obj.DiagnosticInfos = array |
|
13599 | return obj |
|
13600 | ||
13601 | def __str__(self): |
|
13602 | return 'DeleteSubscriptionsResponse(' + 'TypeId:' + str(self.TypeId) + ', ' + \ |
|
13603 | 'ResponseHeader:' + str(self.ResponseHeader) + ', ' + \ |
|
13604 | 'Results:' + str(self.Results) + ', ' + \ |
|
13605 | 'DiagnosticInfos:' + str(self.DiagnosticInfos) + ')' |
|
13606 | ||
13607 | __repr__ = __str__ |
|
13608 | ||
13609 | ||
13610 | class BuildInfo(FrozenClass): |
|
@@ 11848-11912 (lines=65) @@ | ||
11845 | __repr__ = __str__ |
|
11846 | ||
11847 | ||
11848 | class DeleteMonitoredItemsResponse(FrozenClass): |
|
11849 | ''' |
|
11850 | :ivar TypeId: |
|
11851 | :vartype TypeId: NodeId |
|
11852 | :ivar ResponseHeader: |
|
11853 | :vartype ResponseHeader: ResponseHeader |
|
11854 | :ivar Results: |
|
11855 | :vartype Results: StatusCode |
|
11856 | :ivar DiagnosticInfos: |
|
11857 | :vartype DiagnosticInfos: DiagnosticInfo |
|
11858 | ''' |
|
11859 | ||
11860 | ua_types = [ |
|
11861 | ||
11862 | ('TypeId', 'NodeId'), |
|
11863 | ('ResponseHeader', 'ResponseHeader'), |
|
11864 | ('Results', 'ListOfStatusCode'), |
|
11865 | ('DiagnosticInfos', 'ListOfDiagnosticInfo'), |
|
11866 | ] |
|
11867 | ||
11868 | def __init__(self): |
|
11869 | self.TypeId = FourByteNodeId(ObjectIds.DeleteMonitoredItemsResponse_Encoding_DefaultBinary) |
|
11870 | self.ResponseHeader = ResponseHeader() |
|
11871 | self.Results = [] |
|
11872 | self.DiagnosticInfos = [] |
|
11873 | self._freeze = True |
|
11874 | ||
11875 | def to_binary(self): |
|
11876 | packet = [] |
|
11877 | packet.append(self.TypeId.to_binary()) |
|
11878 | packet.append(self.ResponseHeader.to_binary()) |
|
11879 | packet.append(uabin.Primitives.Int32.pack(len(self.Results))) |
|
11880 | for fieldname in self.Results: |
|
11881 | packet.append(fieldname.to_binary()) |
|
11882 | packet.append(uabin.Primitives.Int32.pack(len(self.DiagnosticInfos))) |
|
11883 | for fieldname in self.DiagnosticInfos: |
|
11884 | packet.append(fieldname.to_binary()) |
|
11885 | return b''.join(packet) |
|
11886 | ||
11887 | @staticmethod |
|
11888 | def from_binary(data): |
|
11889 | obj = DeleteMonitoredItemsResponse() |
|
11890 | obj.TypeId = NodeId.from_binary(data) |
|
11891 | obj.ResponseHeader = ResponseHeader.from_binary(data) |
|
11892 | length = uabin.Primitives.Int32.unpack(data) |
|
11893 | array = [] |
|
11894 | if length != -1: |
|
11895 | for _ in range(0, length): |
|
11896 | array.append(StatusCode.from_binary(data)) |
|
11897 | obj.Results = array |
|
11898 | length = uabin.Primitives.Int32.unpack(data) |
|
11899 | array = [] |
|
11900 | if length != -1: |
|
11901 | for _ in range(0, length): |
|
11902 | array.append(DiagnosticInfo.from_binary(data)) |
|
11903 | obj.DiagnosticInfos = array |
|
11904 | return obj |
|
11905 | ||
11906 | def __str__(self): |
|
11907 | return 'DeleteMonitoredItemsResponse(' + 'TypeId:' + str(self.TypeId) + ', ' + \ |
|
11908 | 'ResponseHeader:' + str(self.ResponseHeader) + ', ' + \ |
|
11909 | 'Results:' + str(self.Results) + ', ' + \ |
|
11910 | 'DiagnosticInfos:' + str(self.DiagnosticInfos) + ')' |
|
11911 | ||
11912 | __repr__ = __str__ |
|
11913 | ||
11914 | ||
11915 | class CreateSubscriptionParameters(FrozenClass): |
|
@@ 11271-11335 (lines=65) @@ | ||
11268 | __repr__ = __str__ |
|
11269 | ||
11270 | ||
11271 | class ModifyMonitoredItemsResponse(FrozenClass): |
|
11272 | ''' |
|
11273 | :ivar TypeId: |
|
11274 | :vartype TypeId: NodeId |
|
11275 | :ivar ResponseHeader: |
|
11276 | :vartype ResponseHeader: ResponseHeader |
|
11277 | :ivar Results: |
|
11278 | :vartype Results: MonitoredItemModifyResult |
|
11279 | :ivar DiagnosticInfos: |
|
11280 | :vartype DiagnosticInfos: DiagnosticInfo |
|
11281 | ''' |
|
11282 | ||
11283 | ua_types = [ |
|
11284 | ||
11285 | ('TypeId', 'NodeId'), |
|
11286 | ('ResponseHeader', 'ResponseHeader'), |
|
11287 | ('Results', 'ListOfMonitoredItemModifyResult'), |
|
11288 | ('DiagnosticInfos', 'ListOfDiagnosticInfo'), |
|
11289 | ] |
|
11290 | ||
11291 | def __init__(self): |
|
11292 | self.TypeId = FourByteNodeId(ObjectIds.ModifyMonitoredItemsResponse_Encoding_DefaultBinary) |
|
11293 | self.ResponseHeader = ResponseHeader() |
|
11294 | self.Results = [] |
|
11295 | self.DiagnosticInfos = [] |
|
11296 | self._freeze = True |
|
11297 | ||
11298 | def to_binary(self): |
|
11299 | packet = [] |
|
11300 | packet.append(self.TypeId.to_binary()) |
|
11301 | packet.append(self.ResponseHeader.to_binary()) |
|
11302 | packet.append(uabin.Primitives.Int32.pack(len(self.Results))) |
|
11303 | for fieldname in self.Results: |
|
11304 | packet.append(fieldname.to_binary()) |
|
11305 | packet.append(uabin.Primitives.Int32.pack(len(self.DiagnosticInfos))) |
|
11306 | for fieldname in self.DiagnosticInfos: |
|
11307 | packet.append(fieldname.to_binary()) |
|
11308 | return b''.join(packet) |
|
11309 | ||
11310 | @staticmethod |
|
11311 | def from_binary(data): |
|
11312 | obj = ModifyMonitoredItemsResponse() |
|
11313 | obj.TypeId = NodeId.from_binary(data) |
|
11314 | obj.ResponseHeader = ResponseHeader.from_binary(data) |
|
11315 | length = uabin.Primitives.Int32.unpack(data) |
|
11316 | array = [] |
|
11317 | if length != -1: |
|
11318 | for _ in range(0, length): |
|
11319 | array.append(MonitoredItemModifyResult.from_binary(data)) |
|
11320 | obj.Results = array |
|
11321 | length = uabin.Primitives.Int32.unpack(data) |
|
11322 | array = [] |
|
11323 | if length != -1: |
|
11324 | for _ in range(0, length): |
|
11325 | array.append(DiagnosticInfo.from_binary(data)) |
|
11326 | obj.DiagnosticInfos = array |
|
11327 | return obj |
|
11328 | ||
11329 | def __str__(self): |
|
11330 | return 'ModifyMonitoredItemsResponse(' + 'TypeId:' + str(self.TypeId) + ', ' + \ |
|
11331 | 'ResponseHeader:' + str(self.ResponseHeader) + ', ' + \ |
|
11332 | 'Results:' + str(self.Results) + ', ' + \ |
|
11333 | 'DiagnosticInfos:' + str(self.DiagnosticInfos) + ')' |
|
11334 | ||
11335 | __repr__ = __str__ |
|
11336 | ||
11337 | ||
11338 | class SetMonitoringModeParameters(FrozenClass): |
|
@@ 11013-11077 (lines=65) @@ | ||
11010 | __repr__ = __str__ |
|
11011 | ||
11012 | ||
11013 | class CreateMonitoredItemsResponse(FrozenClass): |
|
11014 | ''' |
|
11015 | :ivar TypeId: |
|
11016 | :vartype TypeId: NodeId |
|
11017 | :ivar ResponseHeader: |
|
11018 | :vartype ResponseHeader: ResponseHeader |
|
11019 | :ivar Results: |
|
11020 | :vartype Results: MonitoredItemCreateResult |
|
11021 | :ivar DiagnosticInfos: |
|
11022 | :vartype DiagnosticInfos: DiagnosticInfo |
|
11023 | ''' |
|
11024 | ||
11025 | ua_types = [ |
|
11026 | ||
11027 | ('TypeId', 'NodeId'), |
|
11028 | ('ResponseHeader', 'ResponseHeader'), |
|
11029 | ('Results', 'ListOfMonitoredItemCreateResult'), |
|
11030 | ('DiagnosticInfos', 'ListOfDiagnosticInfo'), |
|
11031 | ] |
|
11032 | ||
11033 | def __init__(self): |
|
11034 | self.TypeId = FourByteNodeId(ObjectIds.CreateMonitoredItemsResponse_Encoding_DefaultBinary) |
|
11035 | self.ResponseHeader = ResponseHeader() |
|
11036 | self.Results = [] |
|
11037 | self.DiagnosticInfos = [] |
|
11038 | self._freeze = True |
|
11039 | ||
11040 | def to_binary(self): |
|
11041 | packet = [] |
|
11042 | packet.append(self.TypeId.to_binary()) |
|
11043 | packet.append(self.ResponseHeader.to_binary()) |
|
11044 | packet.append(uabin.Primitives.Int32.pack(len(self.Results))) |
|
11045 | for fieldname in self.Results: |
|
11046 | packet.append(fieldname.to_binary()) |
|
11047 | packet.append(uabin.Primitives.Int32.pack(len(self.DiagnosticInfos))) |
|
11048 | for fieldname in self.DiagnosticInfos: |
|
11049 | packet.append(fieldname.to_binary()) |
|
11050 | return b''.join(packet) |
|
11051 | ||
11052 | @staticmethod |
|
11053 | def from_binary(data): |
|
11054 | obj = CreateMonitoredItemsResponse() |
|
11055 | obj.TypeId = NodeId.from_binary(data) |
|
11056 | obj.ResponseHeader = ResponseHeader.from_binary(data) |
|
11057 | length = uabin.Primitives.Int32.unpack(data) |
|
11058 | array = [] |
|
11059 | if length != -1: |
|
11060 | for _ in range(0, length): |
|
11061 | array.append(MonitoredItemCreateResult.from_binary(data)) |
|
11062 | obj.Results = array |
|
11063 | length = uabin.Primitives.Int32.unpack(data) |
|
11064 | array = [] |
|
11065 | if length != -1: |
|
11066 | for _ in range(0, length): |
|
11067 | array.append(DiagnosticInfo.from_binary(data)) |
|
11068 | obj.DiagnosticInfos = array |
|
11069 | return obj |
|
11070 | ||
11071 | def __str__(self): |
|
11072 | return 'CreateMonitoredItemsResponse(' + 'TypeId:' + str(self.TypeId) + ', ' + \ |
|
11073 | 'ResponseHeader:' + str(self.ResponseHeader) + ', ' + \ |
|
11074 | 'Results:' + str(self.Results) + ', ' + \ |
|
11075 | 'DiagnosticInfos:' + str(self.DiagnosticInfos) + ')' |
|
11076 | ||
11077 | __repr__ = __str__ |
|
11078 | ||
11079 | ||
11080 | class MonitoredItemModifyRequest(FrozenClass): |
|
@@ 10318-10382 (lines=65) @@ | ||
10315 | __repr__ = __str__ |
|
10316 | ||
10317 | ||
10318 | class CallResponse(FrozenClass): |
|
10319 | ''' |
|
10320 | :ivar TypeId: |
|
10321 | :vartype TypeId: NodeId |
|
10322 | :ivar ResponseHeader: |
|
10323 | :vartype ResponseHeader: ResponseHeader |
|
10324 | :ivar Results: |
|
10325 | :vartype Results: CallMethodResult |
|
10326 | :ivar DiagnosticInfos: |
|
10327 | :vartype DiagnosticInfos: DiagnosticInfo |
|
10328 | ''' |
|
10329 | ||
10330 | ua_types = [ |
|
10331 | ||
10332 | ('TypeId', 'NodeId'), |
|
10333 | ('ResponseHeader', 'ResponseHeader'), |
|
10334 | ('Results', 'ListOfCallMethodResult'), |
|
10335 | ('DiagnosticInfos', 'ListOfDiagnosticInfo'), |
|
10336 | ] |
|
10337 | ||
10338 | def __init__(self): |
|
10339 | self.TypeId = FourByteNodeId(ObjectIds.CallResponse_Encoding_DefaultBinary) |
|
10340 | self.ResponseHeader = ResponseHeader() |
|
10341 | self.Results = [] |
|
10342 | self.DiagnosticInfos = [] |
|
10343 | self._freeze = True |
|
10344 | ||
10345 | def to_binary(self): |
|
10346 | packet = [] |
|
10347 | packet.append(self.TypeId.to_binary()) |
|
10348 | packet.append(self.ResponseHeader.to_binary()) |
|
10349 | packet.append(uabin.Primitives.Int32.pack(len(self.Results))) |
|
10350 | for fieldname in self.Results: |
|
10351 | packet.append(fieldname.to_binary()) |
|
10352 | packet.append(uabin.Primitives.Int32.pack(len(self.DiagnosticInfos))) |
|
10353 | for fieldname in self.DiagnosticInfos: |
|
10354 | packet.append(fieldname.to_binary()) |
|
10355 | return b''.join(packet) |
|
10356 | ||
10357 | @staticmethod |
|
10358 | def from_binary(data): |
|
10359 | obj = CallResponse() |
|
10360 | obj.TypeId = NodeId.from_binary(data) |
|
10361 | obj.ResponseHeader = ResponseHeader.from_binary(data) |
|
10362 | length = uabin.Primitives.Int32.unpack(data) |
|
10363 | array = [] |
|
10364 | if length != -1: |
|
10365 | for _ in range(0, length): |
|
10366 | array.append(CallMethodResult.from_binary(data)) |
|
10367 | obj.Results = array |
|
10368 | length = uabin.Primitives.Int32.unpack(data) |
|
10369 | array = [] |
|
10370 | if length != -1: |
|
10371 | for _ in range(0, length): |
|
10372 | array.append(DiagnosticInfo.from_binary(data)) |
|
10373 | obj.DiagnosticInfos = array |
|
10374 | return obj |
|
10375 | ||
10376 | def __str__(self): |
|
10377 | return 'CallResponse(' + 'TypeId:' + str(self.TypeId) + ', ' + \ |
|
10378 | 'ResponseHeader:' + str(self.ResponseHeader) + ', ' + \ |
|
10379 | 'Results:' + str(self.Results) + ', ' + \ |
|
10380 | 'DiagnosticInfos:' + str(self.DiagnosticInfos) + ')' |
|
10381 | ||
10382 | __repr__ = __str__ |
|
10383 | ||
10384 | ||
10385 | class MonitoringFilter(FrozenClass): |
|
@@ 10039-10103 (lines=65) @@ | ||
10036 | __repr__ = __str__ |
|
10037 | ||
10038 | ||
10039 | class HistoryUpdateResponse(FrozenClass): |
|
10040 | ''' |
|
10041 | :ivar TypeId: |
|
10042 | :vartype TypeId: NodeId |
|
10043 | :ivar ResponseHeader: |
|
10044 | :vartype ResponseHeader: ResponseHeader |
|
10045 | :ivar Results: |
|
10046 | :vartype Results: HistoryUpdateResult |
|
10047 | :ivar DiagnosticInfos: |
|
10048 | :vartype DiagnosticInfos: DiagnosticInfo |
|
10049 | ''' |
|
10050 | ||
10051 | ua_types = [ |
|
10052 | ||
10053 | ('TypeId', 'NodeId'), |
|
10054 | ('ResponseHeader', 'ResponseHeader'), |
|
10055 | ('Results', 'ListOfHistoryUpdateResult'), |
|
10056 | ('DiagnosticInfos', 'ListOfDiagnosticInfo'), |
|
10057 | ] |
|
10058 | ||
10059 | def __init__(self): |
|
10060 | self.TypeId = FourByteNodeId(ObjectIds.HistoryUpdateResponse_Encoding_DefaultBinary) |
|
10061 | self.ResponseHeader = ResponseHeader() |
|
10062 | self.Results = [] |
|
10063 | self.DiagnosticInfos = [] |
|
10064 | self._freeze = True |
|
10065 | ||
10066 | def to_binary(self): |
|
10067 | packet = [] |
|
10068 | packet.append(self.TypeId.to_binary()) |
|
10069 | packet.append(self.ResponseHeader.to_binary()) |
|
10070 | packet.append(uabin.Primitives.Int32.pack(len(self.Results))) |
|
10071 | for fieldname in self.Results: |
|
10072 | packet.append(fieldname.to_binary()) |
|
10073 | packet.append(uabin.Primitives.Int32.pack(len(self.DiagnosticInfos))) |
|
10074 | for fieldname in self.DiagnosticInfos: |
|
10075 | packet.append(fieldname.to_binary()) |
|
10076 | return b''.join(packet) |
|
10077 | ||
10078 | @staticmethod |
|
10079 | def from_binary(data): |
|
10080 | obj = HistoryUpdateResponse() |
|
10081 | obj.TypeId = NodeId.from_binary(data) |
|
10082 | obj.ResponseHeader = ResponseHeader.from_binary(data) |
|
10083 | length = uabin.Primitives.Int32.unpack(data) |
|
10084 | array = [] |
|
10085 | if length != -1: |
|
10086 | for _ in range(0, length): |
|
10087 | array.append(HistoryUpdateResult.from_binary(data)) |
|
10088 | obj.Results = array |
|
10089 | length = uabin.Primitives.Int32.unpack(data) |
|
10090 | array = [] |
|
10091 | if length != -1: |
|
10092 | for _ in range(0, length): |
|
10093 | array.append(DiagnosticInfo.from_binary(data)) |
|
10094 | obj.DiagnosticInfos = array |
|
10095 | return obj |
|
10096 | ||
10097 | def __str__(self): |
|
10098 | return 'HistoryUpdateResponse(' + 'TypeId:' + str(self.TypeId) + ', ' + \ |
|
10099 | 'ResponseHeader:' + str(self.ResponseHeader) + ', ' + \ |
|
10100 | 'Results:' + str(self.Results) + ', ' + \ |
|
10101 | 'DiagnosticInfos:' + str(self.DiagnosticInfos) + ')' |
|
10102 | ||
10103 | __repr__ = __str__ |
|
10104 | ||
10105 | ||
10106 | class CallMethodRequest(FrozenClass): |
|
@@ 9494-9558 (lines=65) @@ | ||
9491 | __repr__ = __str__ |
|
9492 | ||
9493 | ||
9494 | class WriteResponse(FrozenClass): |
|
9495 | ''' |
|
9496 | :ivar TypeId: |
|
9497 | :vartype TypeId: NodeId |
|
9498 | :ivar ResponseHeader: |
|
9499 | :vartype ResponseHeader: ResponseHeader |
|
9500 | :ivar Results: |
|
9501 | :vartype Results: StatusCode |
|
9502 | :ivar DiagnosticInfos: |
|
9503 | :vartype DiagnosticInfos: DiagnosticInfo |
|
9504 | ''' |
|
9505 | ||
9506 | ua_types = [ |
|
9507 | ||
9508 | ('TypeId', 'NodeId'), |
|
9509 | ('ResponseHeader', 'ResponseHeader'), |
|
9510 | ('Results', 'ListOfStatusCode'), |
|
9511 | ('DiagnosticInfos', 'ListOfDiagnosticInfo'), |
|
9512 | ] |
|
9513 | ||
9514 | def __init__(self): |
|
9515 | self.TypeId = FourByteNodeId(ObjectIds.WriteResponse_Encoding_DefaultBinary) |
|
9516 | self.ResponseHeader = ResponseHeader() |
|
9517 | self.Results = [] |
|
9518 | self.DiagnosticInfos = [] |
|
9519 | self._freeze = True |
|
9520 | ||
9521 | def to_binary(self): |
|
9522 | packet = [] |
|
9523 | packet.append(self.TypeId.to_binary()) |
|
9524 | packet.append(self.ResponseHeader.to_binary()) |
|
9525 | packet.append(uabin.Primitives.Int32.pack(len(self.Results))) |
|
9526 | for fieldname in self.Results: |
|
9527 | packet.append(fieldname.to_binary()) |
|
9528 | packet.append(uabin.Primitives.Int32.pack(len(self.DiagnosticInfos))) |
|
9529 | for fieldname in self.DiagnosticInfos: |
|
9530 | packet.append(fieldname.to_binary()) |
|
9531 | return b''.join(packet) |
|
9532 | ||
9533 | @staticmethod |
|
9534 | def from_binary(data): |
|
9535 | obj = WriteResponse() |
|
9536 | obj.TypeId = NodeId.from_binary(data) |
|
9537 | obj.ResponseHeader = ResponseHeader.from_binary(data) |
|
9538 | length = uabin.Primitives.Int32.unpack(data) |
|
9539 | array = [] |
|
9540 | if length != -1: |
|
9541 | for _ in range(0, length): |
|
9542 | array.append(StatusCode.from_binary(data)) |
|
9543 | obj.Results = array |
|
9544 | length = uabin.Primitives.Int32.unpack(data) |
|
9545 | array = [] |
|
9546 | if length != -1: |
|
9547 | for _ in range(0, length): |
|
9548 | array.append(DiagnosticInfo.from_binary(data)) |
|
9549 | obj.DiagnosticInfos = array |
|
9550 | return obj |
|
9551 | ||
9552 | def __str__(self): |
|
9553 | return 'WriteResponse(' + 'TypeId:' + str(self.TypeId) + ', ' + \ |
|
9554 | 'ResponseHeader:' + str(self.ResponseHeader) + ', ' + \ |
|
9555 | 'Results:' + str(self.Results) + ', ' + \ |
|
9556 | 'DiagnosticInfos:' + str(self.DiagnosticInfos) + ')' |
|
9557 | ||
9558 | __repr__ = __str__ |
|
9559 | ||
9560 | ||
9561 | class HistoryUpdateDetails(FrozenClass): |
|
@@ 9289-9353 (lines=65) @@ | ||
9286 | __repr__ = __str__ |
|
9287 | ||
9288 | ||
9289 | class HistoryReadResponse(FrozenClass): |
|
9290 | ''' |
|
9291 | :ivar TypeId: |
|
9292 | :vartype TypeId: NodeId |
|
9293 | :ivar ResponseHeader: |
|
9294 | :vartype ResponseHeader: ResponseHeader |
|
9295 | :ivar Results: |
|
9296 | :vartype Results: HistoryReadResult |
|
9297 | :ivar DiagnosticInfos: |
|
9298 | :vartype DiagnosticInfos: DiagnosticInfo |
|
9299 | ''' |
|
9300 | ||
9301 | ua_types = [ |
|
9302 | ||
9303 | ('TypeId', 'NodeId'), |
|
9304 | ('ResponseHeader', 'ResponseHeader'), |
|
9305 | ('Results', 'ListOfHistoryReadResult'), |
|
9306 | ('DiagnosticInfos', 'ListOfDiagnosticInfo'), |
|
9307 | ] |
|
9308 | ||
9309 | def __init__(self): |
|
9310 | self.TypeId = FourByteNodeId(ObjectIds.HistoryReadResponse_Encoding_DefaultBinary) |
|
9311 | self.ResponseHeader = ResponseHeader() |
|
9312 | self.Results = [] |
|
9313 | self.DiagnosticInfos = [] |
|
9314 | self._freeze = True |
|
9315 | ||
9316 | def to_binary(self): |
|
9317 | packet = [] |
|
9318 | packet.append(self.TypeId.to_binary()) |
|
9319 | packet.append(self.ResponseHeader.to_binary()) |
|
9320 | packet.append(uabin.Primitives.Int32.pack(len(self.Results))) |
|
9321 | for fieldname in self.Results: |
|
9322 | packet.append(fieldname.to_binary()) |
|
9323 | packet.append(uabin.Primitives.Int32.pack(len(self.DiagnosticInfos))) |
|
9324 | for fieldname in self.DiagnosticInfos: |
|
9325 | packet.append(fieldname.to_binary()) |
|
9326 | return b''.join(packet) |
|
9327 | ||
9328 | @staticmethod |
|
9329 | def from_binary(data): |
|
9330 | obj = HistoryReadResponse() |
|
9331 | obj.TypeId = NodeId.from_binary(data) |
|
9332 | obj.ResponseHeader = ResponseHeader.from_binary(data) |
|
9333 | length = uabin.Primitives.Int32.unpack(data) |
|
9334 | array = [] |
|
9335 | if length != -1: |
|
9336 | for _ in range(0, length): |
|
9337 | array.append(HistoryReadResult.from_binary(data)) |
|
9338 | obj.Results = array |
|
9339 | length = uabin.Primitives.Int32.unpack(data) |
|
9340 | array = [] |
|
9341 | if length != -1: |
|
9342 | for _ in range(0, length): |
|
9343 | array.append(DiagnosticInfo.from_binary(data)) |
|
9344 | obj.DiagnosticInfos = array |
|
9345 | return obj |
|
9346 | ||
9347 | def __str__(self): |
|
9348 | return 'HistoryReadResponse(' + 'TypeId:' + str(self.TypeId) + ', ' + \ |
|
9349 | 'ResponseHeader:' + str(self.ResponseHeader) + ', ' + \ |
|
9350 | 'Results:' + str(self.Results) + ', ' + \ |
|
9351 | 'DiagnosticInfos:' + str(self.DiagnosticInfos) + ')' |
|
9352 | ||
9353 | __repr__ = __str__ |
|
9354 | ||
9355 | ||
9356 | class WriteValue(FrozenClass): |
|
@@ 8593-8657 (lines=65) @@ | ||
8590 | __repr__ = __str__ |
|
8591 | ||
8592 | ||
8593 | class ReadResponse(FrozenClass): |
|
8594 | ''' |
|
8595 | :ivar TypeId: |
|
8596 | :vartype TypeId: NodeId |
|
8597 | :ivar ResponseHeader: |
|
8598 | :vartype ResponseHeader: ResponseHeader |
|
8599 | :ivar Results: |
|
8600 | :vartype Results: DataValue |
|
8601 | :ivar DiagnosticInfos: |
|
8602 | :vartype DiagnosticInfos: DiagnosticInfo |
|
8603 | ''' |
|
8604 | ||
8605 | ua_types = [ |
|
8606 | ||
8607 | ('TypeId', 'NodeId'), |
|
8608 | ('ResponseHeader', 'ResponseHeader'), |
|
8609 | ('Results', 'ListOfDataValue'), |
|
8610 | ('DiagnosticInfos', 'ListOfDiagnosticInfo'), |
|
8611 | ] |
|
8612 | ||
8613 | def __init__(self): |
|
8614 | self.TypeId = FourByteNodeId(ObjectIds.ReadResponse_Encoding_DefaultBinary) |
|
8615 | self.ResponseHeader = ResponseHeader() |
|
8616 | self.Results = [] |
|
8617 | self.DiagnosticInfos = [] |
|
8618 | self._freeze = True |
|
8619 | ||
8620 | def to_binary(self): |
|
8621 | packet = [] |
|
8622 | packet.append(self.TypeId.to_binary()) |
|
8623 | packet.append(self.ResponseHeader.to_binary()) |
|
8624 | packet.append(uabin.Primitives.Int32.pack(len(self.Results))) |
|
8625 | for fieldname in self.Results: |
|
8626 | packet.append(fieldname.to_binary()) |
|
8627 | packet.append(uabin.Primitives.Int32.pack(len(self.DiagnosticInfos))) |
|
8628 | for fieldname in self.DiagnosticInfos: |
|
8629 | packet.append(fieldname.to_binary()) |
|
8630 | return b''.join(packet) |
|
8631 | ||
8632 | @staticmethod |
|
8633 | def from_binary(data): |
|
8634 | obj = ReadResponse() |
|
8635 | obj.TypeId = NodeId.from_binary(data) |
|
8636 | obj.ResponseHeader = ResponseHeader.from_binary(data) |
|
8637 | length = uabin.Primitives.Int32.unpack(data) |
|
8638 | array = [] |
|
8639 | if length != -1: |
|
8640 | for _ in range(0, length): |
|
8641 | array.append(DataValue.from_binary(data)) |
|
8642 | obj.Results = array |
|
8643 | length = uabin.Primitives.Int32.unpack(data) |
|
8644 | array = [] |
|
8645 | if length != -1: |
|
8646 | for _ in range(0, length): |
|
8647 | array.append(DiagnosticInfo.from_binary(data)) |
|
8648 | obj.DiagnosticInfos = array |
|
8649 | return obj |
|
8650 | ||
8651 | def __str__(self): |
|
8652 | return 'ReadResponse(' + 'TypeId:' + str(self.TypeId) + ', ' + \ |
|
8653 | 'ResponseHeader:' + str(self.ResponseHeader) + ', ' + \ |
|
8654 | 'Results:' + str(self.Results) + ', ' + \ |
|
8655 | 'DiagnosticInfos:' + str(self.DiagnosticInfos) + ')' |
|
8656 | ||
8657 | __repr__ = __str__ |
|
8658 | ||
8659 | ||
8660 | class HistoryReadValueId(FrozenClass): |
|
@@ 2659-2723 (lines=65) @@ | ||
2656 | __repr__ = __str__ |
|
2657 | ||
2658 | ||
2659 | class RegisterServer2Response(FrozenClass): |
|
2660 | ''' |
|
2661 | :ivar TypeId: |
|
2662 | :vartype TypeId: NodeId |
|
2663 | :ivar ResponseHeader: |
|
2664 | :vartype ResponseHeader: ResponseHeader |
|
2665 | :ivar ConfigurationResults: |
|
2666 | :vartype ConfigurationResults: StatusCode |
|
2667 | :ivar DiagnosticInfos: |
|
2668 | :vartype DiagnosticInfos: DiagnosticInfo |
|
2669 | ''' |
|
2670 | ||
2671 | ua_types = [ |
|
2672 | ||
2673 | ('TypeId', 'NodeId'), |
|
2674 | ('ResponseHeader', 'ResponseHeader'), |
|
2675 | ('ConfigurationResults', 'ListOfStatusCode'), |
|
2676 | ('DiagnosticInfos', 'ListOfDiagnosticInfo'), |
|
2677 | ] |
|
2678 | ||
2679 | def __init__(self): |
|
2680 | self.TypeId = FourByteNodeId(ObjectIds.RegisterServer2Response_Encoding_DefaultBinary) |
|
2681 | self.ResponseHeader = ResponseHeader() |
|
2682 | self.ConfigurationResults = [] |
|
2683 | self.DiagnosticInfos = [] |
|
2684 | self._freeze = True |
|
2685 | ||
2686 | def to_binary(self): |
|
2687 | packet = [] |
|
2688 | packet.append(self.TypeId.to_binary()) |
|
2689 | packet.append(self.ResponseHeader.to_binary()) |
|
2690 | packet.append(uabin.Primitives.Int32.pack(len(self.ConfigurationResults))) |
|
2691 | for fieldname in self.ConfigurationResults: |
|
2692 | packet.append(fieldname.to_binary()) |
|
2693 | packet.append(uabin.Primitives.Int32.pack(len(self.DiagnosticInfos))) |
|
2694 | for fieldname in self.DiagnosticInfos: |
|
2695 | packet.append(fieldname.to_binary()) |
|
2696 | return b''.join(packet) |
|
2697 | ||
2698 | @staticmethod |
|
2699 | def from_binary(data): |
|
2700 | obj = RegisterServer2Response() |
|
2701 | obj.TypeId = NodeId.from_binary(data) |
|
2702 | obj.ResponseHeader = ResponseHeader.from_binary(data) |
|
2703 | length = uabin.Primitives.Int32.unpack(data) |
|
2704 | array = [] |
|
2705 | if length != -1: |
|
2706 | for _ in range(0, length): |
|
2707 | array.append(StatusCode.from_binary(data)) |
|
2708 | obj.ConfigurationResults = array |
|
2709 | length = uabin.Primitives.Int32.unpack(data) |
|
2710 | array = [] |
|
2711 | if length != -1: |
|
2712 | for _ in range(0, length): |
|
2713 | array.append(DiagnosticInfo.from_binary(data)) |
|
2714 | obj.DiagnosticInfos = array |
|
2715 | return obj |
|
2716 | ||
2717 | def __str__(self): |
|
2718 | return 'RegisterServer2Response(' + 'TypeId:' + str(self.TypeId) + ', ' + \ |
|
2719 | 'ResponseHeader:' + str(self.ResponseHeader) + ', ' + \ |
|
2720 | 'ConfigurationResults:' + str(self.ConfigurationResults) + ', ' + \ |
|
2721 | 'DiagnosticInfos:' + str(self.DiagnosticInfos) + ')' |
|
2722 | ||
2723 | __repr__ = __str__ |
|
2724 | ||
2725 | ||
2726 | class ChannelSecurityToken(FrozenClass): |