@@ 6938-7008 (lines=71) @@ | ||
6935 | __repr__ = __str__ |
|
6936 | ||
6937 | ||
6938 | class TranslateBrowsePathsToNodeIdsResponse(FrozenClass): |
|
6939 | ''' |
|
6940 | Translates one or more paths in the server address space. |
|
6941 | ||
6942 | :ivar TypeId: |
|
6943 | :vartype TypeId: NodeId |
|
6944 | :ivar ResponseHeader: |
|
6945 | :vartype ResponseHeader: ResponseHeader |
|
6946 | :ivar Results: |
|
6947 | :vartype Results: BrowsePathResult |
|
6948 | :ivar DiagnosticInfos: |
|
6949 | :vartype DiagnosticInfos: DiagnosticInfo |
|
6950 | ''' |
|
6951 | ||
6952 | ua_types = { |
|
6953 | 'TypeId': 'NodeId', |
|
6954 | 'ResponseHeader': 'ResponseHeader', |
|
6955 | 'Results': 'BrowsePathResult', |
|
6956 | 'DiagnosticInfos': 'DiagnosticInfo', |
|
6957 | } |
|
6958 | ||
6959 | def __init__(self, binary=None): |
|
6960 | if binary is not None: |
|
6961 | self._binary_init(binary) |
|
6962 | self._freeze = True |
|
6963 | return |
|
6964 | self.TypeId = FourByteNodeId(ObjectIds.TranslateBrowsePathsToNodeIdsResponse_Encoding_DefaultBinary) |
|
6965 | self.ResponseHeader = ResponseHeader() |
|
6966 | self.Results = [] |
|
6967 | self.DiagnosticInfos = [] |
|
6968 | self._freeze = True |
|
6969 | ||
6970 | def to_binary(self): |
|
6971 | packet = [] |
|
6972 | packet.append(self.TypeId.to_binary()) |
|
6973 | packet.append(self.ResponseHeader.to_binary()) |
|
6974 | packet.append(uabin.Primitives.Int32.pack(len(self.Results))) |
|
6975 | for fieldname in self.Results: |
|
6976 | packet.append(fieldname.to_binary()) |
|
6977 | packet.append(uabin.Primitives.Int32.pack(len(self.DiagnosticInfos))) |
|
6978 | for fieldname in self.DiagnosticInfos: |
|
6979 | packet.append(fieldname.to_binary()) |
|
6980 | return b''.join(packet) |
|
6981 | ||
6982 | @staticmethod |
|
6983 | def from_binary(data): |
|
6984 | return TranslateBrowsePathsToNodeIdsResponse(data) |
|
6985 | ||
6986 | def _binary_init(self, data): |
|
6987 | self.TypeId = NodeId.from_binary(data) |
|
6988 | self.ResponseHeader = ResponseHeader.from_binary(data) |
|
6989 | length = uabin.Primitives.Int32.unpack(data) |
|
6990 | array = [] |
|
6991 | if length != -1: |
|
6992 | for _ in range(0, length): |
|
6993 | array.append(BrowsePathResult.from_binary(data)) |
|
6994 | self.Results = array |
|
6995 | length = uabin.Primitives.Int32.unpack(data) |
|
6996 | array = [] |
|
6997 | if length != -1: |
|
6998 | for _ in range(0, length): |
|
6999 | array.append(DiagnosticInfo.from_binary(data)) |
|
7000 | self.DiagnosticInfos = array |
|
7001 | ||
7002 | def __str__(self): |
|
7003 | return 'TranslateBrowsePathsToNodeIdsResponse(' + 'TypeId:' + str(self.TypeId) + ', ' + \ |
|
7004 | 'ResponseHeader:' + str(self.ResponseHeader) + ', ' + \ |
|
7005 | 'Results:' + str(self.Results) + ', ' + \ |
|
7006 | 'DiagnosticInfos:' + str(self.DiagnosticInfos) + ')' |
|
7007 | ||
7008 | __repr__ = __str__ |
|
7009 | ||
7010 | ||
7011 | class RegisterNodesParameters(FrozenClass): |
|
@@ 6318-6388 (lines=71) @@ | ||
6315 | __repr__ = __str__ |
|
6316 | ||
6317 | ||
6318 | class BrowseResponse(FrozenClass): |
|
6319 | ''' |
|
6320 | Browse the references for one or more nodes from the server address space. |
|
6321 | ||
6322 | :ivar TypeId: |
|
6323 | :vartype TypeId: NodeId |
|
6324 | :ivar ResponseHeader: |
|
6325 | :vartype ResponseHeader: ResponseHeader |
|
6326 | :ivar Results: |
|
6327 | :vartype Results: BrowseResult |
|
6328 | :ivar DiagnosticInfos: |
|
6329 | :vartype DiagnosticInfos: DiagnosticInfo |
|
6330 | ''' |
|
6331 | ||
6332 | ua_types = { |
|
6333 | 'TypeId': 'NodeId', |
|
6334 | 'ResponseHeader': 'ResponseHeader', |
|
6335 | 'Results': 'BrowseResult', |
|
6336 | 'DiagnosticInfos': 'DiagnosticInfo', |
|
6337 | } |
|
6338 | ||
6339 | def __init__(self, binary=None): |
|
6340 | if binary is not None: |
|
6341 | self._binary_init(binary) |
|
6342 | self._freeze = True |
|
6343 | return |
|
6344 | self.TypeId = FourByteNodeId(ObjectIds.BrowseResponse_Encoding_DefaultBinary) |
|
6345 | self.ResponseHeader = ResponseHeader() |
|
6346 | self.Results = [] |
|
6347 | self.DiagnosticInfos = [] |
|
6348 | self._freeze = True |
|
6349 | ||
6350 | def to_binary(self): |
|
6351 | packet = [] |
|
6352 | packet.append(self.TypeId.to_binary()) |
|
6353 | packet.append(self.ResponseHeader.to_binary()) |
|
6354 | packet.append(uabin.Primitives.Int32.pack(len(self.Results))) |
|
6355 | for fieldname in self.Results: |
|
6356 | packet.append(fieldname.to_binary()) |
|
6357 | packet.append(uabin.Primitives.Int32.pack(len(self.DiagnosticInfos))) |
|
6358 | for fieldname in self.DiagnosticInfos: |
|
6359 | packet.append(fieldname.to_binary()) |
|
6360 | return b''.join(packet) |
|
6361 | ||
6362 | @staticmethod |
|
6363 | def from_binary(data): |
|
6364 | return BrowseResponse(data) |
|
6365 | ||
6366 | def _binary_init(self, data): |
|
6367 | self.TypeId = NodeId.from_binary(data) |
|
6368 | self.ResponseHeader = ResponseHeader.from_binary(data) |
|
6369 | length = uabin.Primitives.Int32.unpack(data) |
|
6370 | array = [] |
|
6371 | if length != -1: |
|
6372 | for _ in range(0, length): |
|
6373 | array.append(BrowseResult.from_binary(data)) |
|
6374 | self.Results = array |
|
6375 | length = uabin.Primitives.Int32.unpack(data) |
|
6376 | array = [] |
|
6377 | if length != -1: |
|
6378 | for _ in range(0, length): |
|
6379 | array.append(DiagnosticInfo.from_binary(data)) |
|
6380 | self.DiagnosticInfos = array |
|
6381 | ||
6382 | def __str__(self): |
|
6383 | return 'BrowseResponse(' + 'TypeId:' + str(self.TypeId) + ', ' + \ |
|
6384 | 'ResponseHeader:' + str(self.ResponseHeader) + ', ' + \ |
|
6385 | 'Results:' + str(self.Results) + ', ' + \ |
|
6386 | 'DiagnosticInfos:' + str(self.DiagnosticInfos) + ')' |
|
6387 | ||
6388 | __repr__ = __str__ |
|
6389 | ||
6390 | ||
6391 | class BrowseNextParameters(FrozenClass): |
|
@@ 5602-5672 (lines=71) @@ | ||
5599 | __repr__ = __str__ |
|
5600 | ||
5601 | ||
5602 | class DeleteNodesResponse(FrozenClass): |
|
5603 | ''' |
|
5604 | Delete one or more nodes from the server address space. |
|
5605 | ||
5606 | :ivar TypeId: |
|
5607 | :vartype TypeId: NodeId |
|
5608 | :ivar ResponseHeader: |
|
5609 | :vartype ResponseHeader: ResponseHeader |
|
5610 | :ivar Results: |
|
5611 | :vartype Results: StatusCode |
|
5612 | :ivar DiagnosticInfos: |
|
5613 | :vartype DiagnosticInfos: DiagnosticInfo |
|
5614 | ''' |
|
5615 | ||
5616 | ua_types = { |
|
5617 | 'TypeId': 'NodeId', |
|
5618 | 'ResponseHeader': 'ResponseHeader', |
|
5619 | 'Results': 'StatusCode', |
|
5620 | 'DiagnosticInfos': 'DiagnosticInfo', |
|
5621 | } |
|
5622 | ||
5623 | def __init__(self, binary=None): |
|
5624 | if binary is not None: |
|
5625 | self._binary_init(binary) |
|
5626 | self._freeze = True |
|
5627 | return |
|
5628 | self.TypeId = FourByteNodeId(ObjectIds.DeleteNodesResponse_Encoding_DefaultBinary) |
|
5629 | self.ResponseHeader = ResponseHeader() |
|
5630 | self.Results = [] |
|
5631 | self.DiagnosticInfos = [] |
|
5632 | self._freeze = True |
|
5633 | ||
5634 | def to_binary(self): |
|
5635 | packet = [] |
|
5636 | packet.append(self.TypeId.to_binary()) |
|
5637 | packet.append(self.ResponseHeader.to_binary()) |
|
5638 | packet.append(uabin.Primitives.Int32.pack(len(self.Results))) |
|
5639 | for fieldname in self.Results: |
|
5640 | packet.append(fieldname.to_binary()) |
|
5641 | packet.append(uabin.Primitives.Int32.pack(len(self.DiagnosticInfos))) |
|
5642 | for fieldname in self.DiagnosticInfos: |
|
5643 | packet.append(fieldname.to_binary()) |
|
5644 | return b''.join(packet) |
|
5645 | ||
5646 | @staticmethod |
|
5647 | def from_binary(data): |
|
5648 | return DeleteNodesResponse(data) |
|
5649 | ||
5650 | def _binary_init(self, data): |
|
5651 | self.TypeId = NodeId.from_binary(data) |
|
5652 | self.ResponseHeader = ResponseHeader.from_binary(data) |
|
5653 | length = uabin.Primitives.Int32.unpack(data) |
|
5654 | array = [] |
|
5655 | if length != -1: |
|
5656 | for _ in range(0, length): |
|
5657 | array.append(StatusCode.from_binary(data)) |
|
5658 | self.Results = array |
|
5659 | length = uabin.Primitives.Int32.unpack(data) |
|
5660 | array = [] |
|
5661 | if length != -1: |
|
5662 | for _ in range(0, length): |
|
5663 | array.append(DiagnosticInfo.from_binary(data)) |
|
5664 | self.DiagnosticInfos = array |
|
5665 | ||
5666 | def __str__(self): |
|
5667 | return 'DeleteNodesResponse(' + 'TypeId:' + str(self.TypeId) + ', ' + \ |
|
5668 | 'ResponseHeader:' + str(self.ResponseHeader) + ', ' + \ |
|
5669 | 'Results:' + str(self.Results) + ', ' + \ |
|
5670 | 'DiagnosticInfos:' + str(self.DiagnosticInfos) + ')' |
|
5671 | ||
5672 | __repr__ = __str__ |
|
5673 | ||
5674 | ||
5675 | class DeleteReferencesItem(FrozenClass): |
|
@@ 5389-5459 (lines=71) @@ | ||
5386 | __repr__ = __str__ |
|
5387 | ||
5388 | ||
5389 | class AddReferencesResponse(FrozenClass): |
|
5390 | ''' |
|
5391 | Adds one or more references to the server address space. |
|
5392 | ||
5393 | :ivar TypeId: |
|
5394 | :vartype TypeId: NodeId |
|
5395 | :ivar ResponseHeader: |
|
5396 | :vartype ResponseHeader: ResponseHeader |
|
5397 | :ivar Results: |
|
5398 | :vartype Results: StatusCode |
|
5399 | :ivar DiagnosticInfos: |
|
5400 | :vartype DiagnosticInfos: DiagnosticInfo |
|
5401 | ''' |
|
5402 | ||
5403 | ua_types = { |
|
5404 | 'TypeId': 'NodeId', |
|
5405 | 'ResponseHeader': 'ResponseHeader', |
|
5406 | 'Results': 'StatusCode', |
|
5407 | 'DiagnosticInfos': 'DiagnosticInfo', |
|
5408 | } |
|
5409 | ||
5410 | def __init__(self, binary=None): |
|
5411 | if binary is not None: |
|
5412 | self._binary_init(binary) |
|
5413 | self._freeze = True |
|
5414 | return |
|
5415 | self.TypeId = FourByteNodeId(ObjectIds.AddReferencesResponse_Encoding_DefaultBinary) |
|
5416 | self.ResponseHeader = ResponseHeader() |
|
5417 | self.Results = [] |
|
5418 | self.DiagnosticInfos = [] |
|
5419 | self._freeze = True |
|
5420 | ||
5421 | def to_binary(self): |
|
5422 | packet = [] |
|
5423 | packet.append(self.TypeId.to_binary()) |
|
5424 | packet.append(self.ResponseHeader.to_binary()) |
|
5425 | packet.append(uabin.Primitives.Int32.pack(len(self.Results))) |
|
5426 | for fieldname in self.Results: |
|
5427 | packet.append(fieldname.to_binary()) |
|
5428 | packet.append(uabin.Primitives.Int32.pack(len(self.DiagnosticInfos))) |
|
5429 | for fieldname in self.DiagnosticInfos: |
|
5430 | packet.append(fieldname.to_binary()) |
|
5431 | return b''.join(packet) |
|
5432 | ||
5433 | @staticmethod |
|
5434 | def from_binary(data): |
|
5435 | return AddReferencesResponse(data) |
|
5436 | ||
5437 | def _binary_init(self, data): |
|
5438 | self.TypeId = NodeId.from_binary(data) |
|
5439 | self.ResponseHeader = ResponseHeader.from_binary(data) |
|
5440 | length = uabin.Primitives.Int32.unpack(data) |
|
5441 | array = [] |
|
5442 | if length != -1: |
|
5443 | for _ in range(0, length): |
|
5444 | array.append(StatusCode.from_binary(data)) |
|
5445 | self.Results = array |
|
5446 | length = uabin.Primitives.Int32.unpack(data) |
|
5447 | array = [] |
|
5448 | if length != -1: |
|
5449 | for _ in range(0, length): |
|
5450 | array.append(DiagnosticInfo.from_binary(data)) |
|
5451 | self.DiagnosticInfos = array |
|
5452 | ||
5453 | def __str__(self): |
|
5454 | return 'AddReferencesResponse(' + 'TypeId:' + str(self.TypeId) + ', ' + \ |
|
5455 | 'ResponseHeader:' + str(self.ResponseHeader) + ', ' + \ |
|
5456 | 'Results:' + str(self.Results) + ', ' + \ |
|
5457 | 'DiagnosticInfos:' + str(self.DiagnosticInfos) + ')' |
|
5458 | ||
5459 | __repr__ = __str__ |
|
5460 | ||
5461 | ||
5462 | class DeleteNodesItem(FrozenClass): |
|
@@ 5148-5218 (lines=71) @@ | ||
5145 | __repr__ = __str__ |
|
5146 | ||
5147 | ||
5148 | class AddNodesResponse(FrozenClass): |
|
5149 | ''' |
|
5150 | Adds one or more nodes to the server address space. |
|
5151 | ||
5152 | :ivar TypeId: |
|
5153 | :vartype TypeId: NodeId |
|
5154 | :ivar ResponseHeader: |
|
5155 | :vartype ResponseHeader: ResponseHeader |
|
5156 | :ivar Results: |
|
5157 | :vartype Results: AddNodesResult |
|
5158 | :ivar DiagnosticInfos: |
|
5159 | :vartype DiagnosticInfos: DiagnosticInfo |
|
5160 | ''' |
|
5161 | ||
5162 | ua_types = { |
|
5163 | 'TypeId': 'NodeId', |
|
5164 | 'ResponseHeader': 'ResponseHeader', |
|
5165 | 'Results': 'AddNodesResult', |
|
5166 | 'DiagnosticInfos': 'DiagnosticInfo', |
|
5167 | } |
|
5168 | ||
5169 | def __init__(self, binary=None): |
|
5170 | if binary is not None: |
|
5171 | self._binary_init(binary) |
|
5172 | self._freeze = True |
|
5173 | return |
|
5174 | self.TypeId = FourByteNodeId(ObjectIds.AddNodesResponse_Encoding_DefaultBinary) |
|
5175 | self.ResponseHeader = ResponseHeader() |
|
5176 | self.Results = [] |
|
5177 | self.DiagnosticInfos = [] |
|
5178 | self._freeze = True |
|
5179 | ||
5180 | def to_binary(self): |
|
5181 | packet = [] |
|
5182 | packet.append(self.TypeId.to_binary()) |
|
5183 | packet.append(self.ResponseHeader.to_binary()) |
|
5184 | packet.append(uabin.Primitives.Int32.pack(len(self.Results))) |
|
5185 | for fieldname in self.Results: |
|
5186 | packet.append(fieldname.to_binary()) |
|
5187 | packet.append(uabin.Primitives.Int32.pack(len(self.DiagnosticInfos))) |
|
5188 | for fieldname in self.DiagnosticInfos: |
|
5189 | packet.append(fieldname.to_binary()) |
|
5190 | return b''.join(packet) |
|
5191 | ||
5192 | @staticmethod |
|
5193 | def from_binary(data): |
|
5194 | return AddNodesResponse(data) |
|
5195 | ||
5196 | def _binary_init(self, data): |
|
5197 | self.TypeId = NodeId.from_binary(data) |
|
5198 | self.ResponseHeader = ResponseHeader.from_binary(data) |
|
5199 | length = uabin.Primitives.Int32.unpack(data) |
|
5200 | array = [] |
|
5201 | if length != -1: |
|
5202 | for _ in range(0, length): |
|
5203 | array.append(AddNodesResult.from_binary(data)) |
|
5204 | self.Results = array |
|
5205 | length = uabin.Primitives.Int32.unpack(data) |
|
5206 | array = [] |
|
5207 | if length != -1: |
|
5208 | for _ in range(0, length): |
|
5209 | array.append(DiagnosticInfo.from_binary(data)) |
|
5210 | self.DiagnosticInfos = array |
|
5211 | ||
5212 | def __str__(self): |
|
5213 | return 'AddNodesResponse(' + 'TypeId:' + str(self.TypeId) + ', ' + \ |
|
5214 | 'ResponseHeader:' + str(self.ResponseHeader) + ', ' + \ |
|
5215 | 'Results:' + str(self.Results) + ', ' + \ |
|
5216 | 'DiagnosticInfos:' + str(self.DiagnosticInfos) + ')' |
|
5217 | ||
5218 | __repr__ = __str__ |
|
5219 | ||
5220 | ||
5221 | class AddReferencesItem(FrozenClass): |
|
@@ 14285-14353 (lines=69) @@ | ||
14282 | __repr__ = __str__ |
|
14283 | ||
14284 | ||
14285 | class DeleteSubscriptionsResponse(FrozenClass): |
|
14286 | ''' |
|
14287 | :ivar TypeId: |
|
14288 | :vartype TypeId: NodeId |
|
14289 | :ivar ResponseHeader: |
|
14290 | :vartype ResponseHeader: ResponseHeader |
|
14291 | :ivar Results: |
|
14292 | :vartype Results: StatusCode |
|
14293 | :ivar DiagnosticInfos: |
|
14294 | :vartype DiagnosticInfos: DiagnosticInfo |
|
14295 | ''' |
|
14296 | ||
14297 | ua_types = { |
|
14298 | 'TypeId': 'NodeId', |
|
14299 | 'ResponseHeader': 'ResponseHeader', |
|
14300 | 'Results': 'StatusCode', |
|
14301 | 'DiagnosticInfos': 'DiagnosticInfo', |
|
14302 | } |
|
14303 | ||
14304 | def __init__(self, binary=None): |
|
14305 | if binary is not None: |
|
14306 | self._binary_init(binary) |
|
14307 | self._freeze = True |
|
14308 | return |
|
14309 | self.TypeId = FourByteNodeId(ObjectIds.DeleteSubscriptionsResponse_Encoding_DefaultBinary) |
|
14310 | self.ResponseHeader = ResponseHeader() |
|
14311 | self.Results = [] |
|
14312 | self.DiagnosticInfos = [] |
|
14313 | self._freeze = True |
|
14314 | ||
14315 | def to_binary(self): |
|
14316 | packet = [] |
|
14317 | packet.append(self.TypeId.to_binary()) |
|
14318 | packet.append(self.ResponseHeader.to_binary()) |
|
14319 | packet.append(uabin.Primitives.Int32.pack(len(self.Results))) |
|
14320 | for fieldname in self.Results: |
|
14321 | packet.append(fieldname.to_binary()) |
|
14322 | packet.append(uabin.Primitives.Int32.pack(len(self.DiagnosticInfos))) |
|
14323 | for fieldname in self.DiagnosticInfos: |
|
14324 | packet.append(fieldname.to_binary()) |
|
14325 | return b''.join(packet) |
|
14326 | ||
14327 | @staticmethod |
|
14328 | def from_binary(data): |
|
14329 | return DeleteSubscriptionsResponse(data) |
|
14330 | ||
14331 | def _binary_init(self, data): |
|
14332 | self.TypeId = NodeId.from_binary(data) |
|
14333 | self.ResponseHeader = ResponseHeader.from_binary(data) |
|
14334 | length = uabin.Primitives.Int32.unpack(data) |
|
14335 | array = [] |
|
14336 | if length != -1: |
|
14337 | for _ in range(0, length): |
|
14338 | array.append(StatusCode.from_binary(data)) |
|
14339 | self.Results = array |
|
14340 | length = uabin.Primitives.Int32.unpack(data) |
|
14341 | array = [] |
|
14342 | if length != -1: |
|
14343 | for _ in range(0, length): |
|
14344 | array.append(DiagnosticInfo.from_binary(data)) |
|
14345 | self.DiagnosticInfos = array |
|
14346 | ||
14347 | def __str__(self): |
|
14348 | return 'DeleteSubscriptionsResponse(' + 'TypeId:' + str(self.TypeId) + ', ' + \ |
|
14349 | 'ResponseHeader:' + str(self.ResponseHeader) + ', ' + \ |
|
14350 | 'Results:' + str(self.Results) + ', ' + \ |
|
14351 | 'DiagnosticInfos:' + str(self.DiagnosticInfos) + ')' |
|
14352 | ||
14353 | __repr__ = __str__ |
|
14354 | ||
14355 | ||
14356 | class BuildInfo(FrozenClass): |
|
@@ 12445-12513 (lines=69) @@ | ||
12442 | __repr__ = __str__ |
|
12443 | ||
12444 | ||
12445 | class DeleteMonitoredItemsResponse(FrozenClass): |
|
12446 | ''' |
|
12447 | :ivar TypeId: |
|
12448 | :vartype TypeId: NodeId |
|
12449 | :ivar ResponseHeader: |
|
12450 | :vartype ResponseHeader: ResponseHeader |
|
12451 | :ivar Results: |
|
12452 | :vartype Results: StatusCode |
|
12453 | :ivar DiagnosticInfos: |
|
12454 | :vartype DiagnosticInfos: DiagnosticInfo |
|
12455 | ''' |
|
12456 | ||
12457 | ua_types = { |
|
12458 | 'TypeId': 'NodeId', |
|
12459 | 'ResponseHeader': 'ResponseHeader', |
|
12460 | 'Results': 'StatusCode', |
|
12461 | 'DiagnosticInfos': 'DiagnosticInfo', |
|
12462 | } |
|
12463 | ||
12464 | def __init__(self, binary=None): |
|
12465 | if binary is not None: |
|
12466 | self._binary_init(binary) |
|
12467 | self._freeze = True |
|
12468 | return |
|
12469 | self.TypeId = FourByteNodeId(ObjectIds.DeleteMonitoredItemsResponse_Encoding_DefaultBinary) |
|
12470 | self.ResponseHeader = ResponseHeader() |
|
12471 | self.Results = [] |
|
12472 | self.DiagnosticInfos = [] |
|
12473 | self._freeze = True |
|
12474 | ||
12475 | def to_binary(self): |
|
12476 | packet = [] |
|
12477 | packet.append(self.TypeId.to_binary()) |
|
12478 | packet.append(self.ResponseHeader.to_binary()) |
|
12479 | packet.append(uabin.Primitives.Int32.pack(len(self.Results))) |
|
12480 | for fieldname in self.Results: |
|
12481 | packet.append(fieldname.to_binary()) |
|
12482 | packet.append(uabin.Primitives.Int32.pack(len(self.DiagnosticInfos))) |
|
12483 | for fieldname in self.DiagnosticInfos: |
|
12484 | packet.append(fieldname.to_binary()) |
|
12485 | return b''.join(packet) |
|
12486 | ||
12487 | @staticmethod |
|
12488 | def from_binary(data): |
|
12489 | return DeleteMonitoredItemsResponse(data) |
|
12490 | ||
12491 | def _binary_init(self, data): |
|
12492 | self.TypeId = NodeId.from_binary(data) |
|
12493 | self.ResponseHeader = ResponseHeader.from_binary(data) |
|
12494 | length = uabin.Primitives.Int32.unpack(data) |
|
12495 | array = [] |
|
12496 | if length != -1: |
|
12497 | for _ in range(0, length): |
|
12498 | array.append(StatusCode.from_binary(data)) |
|
12499 | self.Results = array |
|
12500 | length = uabin.Primitives.Int32.unpack(data) |
|
12501 | array = [] |
|
12502 | if length != -1: |
|
12503 | for _ in range(0, length): |
|
12504 | array.append(DiagnosticInfo.from_binary(data)) |
|
12505 | self.DiagnosticInfos = array |
|
12506 | ||
12507 | def __str__(self): |
|
12508 | return 'DeleteMonitoredItemsResponse(' + 'TypeId:' + str(self.TypeId) + ', ' + \ |
|
12509 | 'ResponseHeader:' + str(self.ResponseHeader) + ', ' + \ |
|
12510 | 'Results:' + str(self.Results) + ', ' + \ |
|
12511 | 'DiagnosticInfos:' + str(self.DiagnosticInfos) + ')' |
|
12512 | ||
12513 | __repr__ = __str__ |
|
12514 | ||
12515 | ||
12516 | class CreateSubscriptionParameters(FrozenClass): |
|
@@ 11824-11892 (lines=69) @@ | ||
11821 | __repr__ = __str__ |
|
11822 | ||
11823 | ||
11824 | class ModifyMonitoredItemsResponse(FrozenClass): |
|
11825 | ''' |
|
11826 | :ivar TypeId: |
|
11827 | :vartype TypeId: NodeId |
|
11828 | :ivar ResponseHeader: |
|
11829 | :vartype ResponseHeader: ResponseHeader |
|
11830 | :ivar Results: |
|
11831 | :vartype Results: MonitoredItemModifyResult |
|
11832 | :ivar DiagnosticInfos: |
|
11833 | :vartype DiagnosticInfos: DiagnosticInfo |
|
11834 | ''' |
|
11835 | ||
11836 | ua_types = { |
|
11837 | 'TypeId': 'NodeId', |
|
11838 | 'ResponseHeader': 'ResponseHeader', |
|
11839 | 'Results': 'MonitoredItemModifyResult', |
|
11840 | 'DiagnosticInfos': 'DiagnosticInfo', |
|
11841 | } |
|
11842 | ||
11843 | def __init__(self, binary=None): |
|
11844 | if binary is not None: |
|
11845 | self._binary_init(binary) |
|
11846 | self._freeze = True |
|
11847 | return |
|
11848 | self.TypeId = FourByteNodeId(ObjectIds.ModifyMonitoredItemsResponse_Encoding_DefaultBinary) |
|
11849 | self.ResponseHeader = ResponseHeader() |
|
11850 | self.Results = [] |
|
11851 | self.DiagnosticInfos = [] |
|
11852 | self._freeze = True |
|
11853 | ||
11854 | def to_binary(self): |
|
11855 | packet = [] |
|
11856 | packet.append(self.TypeId.to_binary()) |
|
11857 | packet.append(self.ResponseHeader.to_binary()) |
|
11858 | packet.append(uabin.Primitives.Int32.pack(len(self.Results))) |
|
11859 | for fieldname in self.Results: |
|
11860 | packet.append(fieldname.to_binary()) |
|
11861 | packet.append(uabin.Primitives.Int32.pack(len(self.DiagnosticInfos))) |
|
11862 | for fieldname in self.DiagnosticInfos: |
|
11863 | packet.append(fieldname.to_binary()) |
|
11864 | return b''.join(packet) |
|
11865 | ||
11866 | @staticmethod |
|
11867 | def from_binary(data): |
|
11868 | return ModifyMonitoredItemsResponse(data) |
|
11869 | ||
11870 | def _binary_init(self, data): |
|
11871 | self.TypeId = NodeId.from_binary(data) |
|
11872 | self.ResponseHeader = ResponseHeader.from_binary(data) |
|
11873 | length = uabin.Primitives.Int32.unpack(data) |
|
11874 | array = [] |
|
11875 | if length != -1: |
|
11876 | for _ in range(0, length): |
|
11877 | array.append(MonitoredItemModifyResult.from_binary(data)) |
|
11878 | self.Results = array |
|
11879 | length = uabin.Primitives.Int32.unpack(data) |
|
11880 | array = [] |
|
11881 | if length != -1: |
|
11882 | for _ in range(0, length): |
|
11883 | array.append(DiagnosticInfo.from_binary(data)) |
|
11884 | self.DiagnosticInfos = array |
|
11885 | ||
11886 | def __str__(self): |
|
11887 | return 'ModifyMonitoredItemsResponse(' + 'TypeId:' + str(self.TypeId) + ', ' + \ |
|
11888 | 'ResponseHeader:' + str(self.ResponseHeader) + ', ' + \ |
|
11889 | 'Results:' + str(self.Results) + ', ' + \ |
|
11890 | 'DiagnosticInfos:' + str(self.DiagnosticInfos) + ')' |
|
11891 | ||
11892 | __repr__ = __str__ |
|
11893 | ||
11894 | ||
11895 | class SetMonitoringModeParameters(FrozenClass): |
|
@@ 11546-11614 (lines=69) @@ | ||
11543 | __repr__ = __str__ |
|
11544 | ||
11545 | ||
11546 | class CreateMonitoredItemsResponse(FrozenClass): |
|
11547 | ''' |
|
11548 | :ivar TypeId: |
|
11549 | :vartype TypeId: NodeId |
|
11550 | :ivar ResponseHeader: |
|
11551 | :vartype ResponseHeader: ResponseHeader |
|
11552 | :ivar Results: |
|
11553 | :vartype Results: MonitoredItemCreateResult |
|
11554 | :ivar DiagnosticInfos: |
|
11555 | :vartype DiagnosticInfos: DiagnosticInfo |
|
11556 | ''' |
|
11557 | ||
11558 | ua_types = { |
|
11559 | 'TypeId': 'NodeId', |
|
11560 | 'ResponseHeader': 'ResponseHeader', |
|
11561 | 'Results': 'MonitoredItemCreateResult', |
|
11562 | 'DiagnosticInfos': 'DiagnosticInfo', |
|
11563 | } |
|
11564 | ||
11565 | def __init__(self, binary=None): |
|
11566 | if binary is not None: |
|
11567 | self._binary_init(binary) |
|
11568 | self._freeze = True |
|
11569 | return |
|
11570 | self.TypeId = FourByteNodeId(ObjectIds.CreateMonitoredItemsResponse_Encoding_DefaultBinary) |
|
11571 | self.ResponseHeader = ResponseHeader() |
|
11572 | self.Results = [] |
|
11573 | self.DiagnosticInfos = [] |
|
11574 | self._freeze = True |
|
11575 | ||
11576 | def to_binary(self): |
|
11577 | packet = [] |
|
11578 | packet.append(self.TypeId.to_binary()) |
|
11579 | packet.append(self.ResponseHeader.to_binary()) |
|
11580 | packet.append(uabin.Primitives.Int32.pack(len(self.Results))) |
|
11581 | for fieldname in self.Results: |
|
11582 | packet.append(fieldname.to_binary()) |
|
11583 | packet.append(uabin.Primitives.Int32.pack(len(self.DiagnosticInfos))) |
|
11584 | for fieldname in self.DiagnosticInfos: |
|
11585 | packet.append(fieldname.to_binary()) |
|
11586 | return b''.join(packet) |
|
11587 | ||
11588 | @staticmethod |
|
11589 | def from_binary(data): |
|
11590 | return CreateMonitoredItemsResponse(data) |
|
11591 | ||
11592 | def _binary_init(self, data): |
|
11593 | self.TypeId = NodeId.from_binary(data) |
|
11594 | self.ResponseHeader = ResponseHeader.from_binary(data) |
|
11595 | length = uabin.Primitives.Int32.unpack(data) |
|
11596 | array = [] |
|
11597 | if length != -1: |
|
11598 | for _ in range(0, length): |
|
11599 | array.append(MonitoredItemCreateResult.from_binary(data)) |
|
11600 | self.Results = array |
|
11601 | length = uabin.Primitives.Int32.unpack(data) |
|
11602 | array = [] |
|
11603 | if length != -1: |
|
11604 | for _ in range(0, length): |
|
11605 | array.append(DiagnosticInfo.from_binary(data)) |
|
11606 | self.DiagnosticInfos = array |
|
11607 | ||
11608 | def __str__(self): |
|
11609 | return 'CreateMonitoredItemsResponse(' + 'TypeId:' + str(self.TypeId) + ', ' + \ |
|
11610 | 'ResponseHeader:' + str(self.ResponseHeader) + ', ' + \ |
|
11611 | 'Results:' + str(self.Results) + ', ' + \ |
|
11612 | 'DiagnosticInfos:' + str(self.DiagnosticInfos) + ')' |
|
11613 | ||
11614 | __repr__ = __str__ |
|
11615 | ||
11616 | ||
11617 | class MonitoredItemModifyRequest(FrozenClass): |
|
@@ 10793-10861 (lines=69) @@ | ||
10790 | __repr__ = __str__ |
|
10791 | ||
10792 | ||
10793 | class CallResponse(FrozenClass): |
|
10794 | ''' |
|
10795 | :ivar TypeId: |
|
10796 | :vartype TypeId: NodeId |
|
10797 | :ivar ResponseHeader: |
|
10798 | :vartype ResponseHeader: ResponseHeader |
|
10799 | :ivar Results: |
|
10800 | :vartype Results: CallMethodResult |
|
10801 | :ivar DiagnosticInfos: |
|
10802 | :vartype DiagnosticInfos: DiagnosticInfo |
|
10803 | ''' |
|
10804 | ||
10805 | ua_types = { |
|
10806 | 'TypeId': 'NodeId', |
|
10807 | 'ResponseHeader': 'ResponseHeader', |
|
10808 | 'Results': 'CallMethodResult', |
|
10809 | 'DiagnosticInfos': 'DiagnosticInfo', |
|
10810 | } |
|
10811 | ||
10812 | def __init__(self, binary=None): |
|
10813 | if binary is not None: |
|
10814 | self._binary_init(binary) |
|
10815 | self._freeze = True |
|
10816 | return |
|
10817 | self.TypeId = FourByteNodeId(ObjectIds.CallResponse_Encoding_DefaultBinary) |
|
10818 | self.ResponseHeader = ResponseHeader() |
|
10819 | self.Results = [] |
|
10820 | self.DiagnosticInfos = [] |
|
10821 | self._freeze = True |
|
10822 | ||
10823 | def to_binary(self): |
|
10824 | packet = [] |
|
10825 | packet.append(self.TypeId.to_binary()) |
|
10826 | packet.append(self.ResponseHeader.to_binary()) |
|
10827 | packet.append(uabin.Primitives.Int32.pack(len(self.Results))) |
|
10828 | for fieldname in self.Results: |
|
10829 | packet.append(fieldname.to_binary()) |
|
10830 | packet.append(uabin.Primitives.Int32.pack(len(self.DiagnosticInfos))) |
|
10831 | for fieldname in self.DiagnosticInfos: |
|
10832 | packet.append(fieldname.to_binary()) |
|
10833 | return b''.join(packet) |
|
10834 | ||
10835 | @staticmethod |
|
10836 | def from_binary(data): |
|
10837 | return CallResponse(data) |
|
10838 | ||
10839 | def _binary_init(self, data): |
|
10840 | self.TypeId = NodeId.from_binary(data) |
|
10841 | self.ResponseHeader = ResponseHeader.from_binary(data) |
|
10842 | length = uabin.Primitives.Int32.unpack(data) |
|
10843 | array = [] |
|
10844 | if length != -1: |
|
10845 | for _ in range(0, length): |
|
10846 | array.append(CallMethodResult.from_binary(data)) |
|
10847 | self.Results = array |
|
10848 | length = uabin.Primitives.Int32.unpack(data) |
|
10849 | array = [] |
|
10850 | if length != -1: |
|
10851 | for _ in range(0, length): |
|
10852 | array.append(DiagnosticInfo.from_binary(data)) |
|
10853 | self.DiagnosticInfos = array |
|
10854 | ||
10855 | def __str__(self): |
|
10856 | return 'CallResponse(' + 'TypeId:' + str(self.TypeId) + ', ' + \ |
|
10857 | 'ResponseHeader:' + str(self.ResponseHeader) + ', ' + \ |
|
10858 | 'Results:' + str(self.Results) + ', ' + \ |
|
10859 | 'DiagnosticInfos:' + str(self.DiagnosticInfos) + ')' |
|
10860 | ||
10861 | __repr__ = __str__ |
|
10862 | ||
10863 | ||
10864 | class MonitoringFilter(FrozenClass): |
|
@@ 10494-10562 (lines=69) @@ | ||
10491 | __repr__ = __str__ |
|
10492 | ||
10493 | ||
10494 | class HistoryUpdateResponse(FrozenClass): |
|
10495 | ''' |
|
10496 | :ivar TypeId: |
|
10497 | :vartype TypeId: NodeId |
|
10498 | :ivar ResponseHeader: |
|
10499 | :vartype ResponseHeader: ResponseHeader |
|
10500 | :ivar Results: |
|
10501 | :vartype Results: HistoryUpdateResult |
|
10502 | :ivar DiagnosticInfos: |
|
10503 | :vartype DiagnosticInfos: DiagnosticInfo |
|
10504 | ''' |
|
10505 | ||
10506 | ua_types = { |
|
10507 | 'TypeId': 'NodeId', |
|
10508 | 'ResponseHeader': 'ResponseHeader', |
|
10509 | 'Results': 'HistoryUpdateResult', |
|
10510 | 'DiagnosticInfos': 'DiagnosticInfo', |
|
10511 | } |
|
10512 | ||
10513 | def __init__(self, binary=None): |
|
10514 | if binary is not None: |
|
10515 | self._binary_init(binary) |
|
10516 | self._freeze = True |
|
10517 | return |
|
10518 | self.TypeId = FourByteNodeId(ObjectIds.HistoryUpdateResponse_Encoding_DefaultBinary) |
|
10519 | self.ResponseHeader = ResponseHeader() |
|
10520 | self.Results = [] |
|
10521 | self.DiagnosticInfos = [] |
|
10522 | self._freeze = True |
|
10523 | ||
10524 | def to_binary(self): |
|
10525 | packet = [] |
|
10526 | packet.append(self.TypeId.to_binary()) |
|
10527 | packet.append(self.ResponseHeader.to_binary()) |
|
10528 | packet.append(uabin.Primitives.Int32.pack(len(self.Results))) |
|
10529 | for fieldname in self.Results: |
|
10530 | packet.append(fieldname.to_binary()) |
|
10531 | packet.append(uabin.Primitives.Int32.pack(len(self.DiagnosticInfos))) |
|
10532 | for fieldname in self.DiagnosticInfos: |
|
10533 | packet.append(fieldname.to_binary()) |
|
10534 | return b''.join(packet) |
|
10535 | ||
10536 | @staticmethod |
|
10537 | def from_binary(data): |
|
10538 | return HistoryUpdateResponse(data) |
|
10539 | ||
10540 | def _binary_init(self, data): |
|
10541 | self.TypeId = NodeId.from_binary(data) |
|
10542 | self.ResponseHeader = ResponseHeader.from_binary(data) |
|
10543 | length = uabin.Primitives.Int32.unpack(data) |
|
10544 | array = [] |
|
10545 | if length != -1: |
|
10546 | for _ in range(0, length): |
|
10547 | array.append(HistoryUpdateResult.from_binary(data)) |
|
10548 | self.Results = array |
|
10549 | length = uabin.Primitives.Int32.unpack(data) |
|
10550 | array = [] |
|
10551 | if length != -1: |
|
10552 | for _ in range(0, length): |
|
10553 | array.append(DiagnosticInfo.from_binary(data)) |
|
10554 | self.DiagnosticInfos = array |
|
10555 | ||
10556 | def __str__(self): |
|
10557 | return 'HistoryUpdateResponse(' + 'TypeId:' + str(self.TypeId) + ', ' + \ |
|
10558 | 'ResponseHeader:' + str(self.ResponseHeader) + ', ' + \ |
|
10559 | 'Results:' + str(self.Results) + ', ' + \ |
|
10560 | 'DiagnosticInfos:' + str(self.DiagnosticInfos) + ')' |
|
10561 | ||
10562 | __repr__ = __str__ |
|
10563 | ||
10564 | ||
10565 | class CallMethodRequest(FrozenClass): |
|
@@ 9905-9973 (lines=69) @@ | ||
9902 | __repr__ = __str__ |
|
9903 | ||
9904 | ||
9905 | class WriteResponse(FrozenClass): |
|
9906 | ''' |
|
9907 | :ivar TypeId: |
|
9908 | :vartype TypeId: NodeId |
|
9909 | :ivar ResponseHeader: |
|
9910 | :vartype ResponseHeader: ResponseHeader |
|
9911 | :ivar Results: |
|
9912 | :vartype Results: StatusCode |
|
9913 | :ivar DiagnosticInfos: |
|
9914 | :vartype DiagnosticInfos: DiagnosticInfo |
|
9915 | ''' |
|
9916 | ||
9917 | ua_types = { |
|
9918 | 'TypeId': 'NodeId', |
|
9919 | 'ResponseHeader': 'ResponseHeader', |
|
9920 | 'Results': 'StatusCode', |
|
9921 | 'DiagnosticInfos': 'DiagnosticInfo', |
|
9922 | } |
|
9923 | ||
9924 | def __init__(self, binary=None): |
|
9925 | if binary is not None: |
|
9926 | self._binary_init(binary) |
|
9927 | self._freeze = True |
|
9928 | return |
|
9929 | self.TypeId = FourByteNodeId(ObjectIds.WriteResponse_Encoding_DefaultBinary) |
|
9930 | self.ResponseHeader = ResponseHeader() |
|
9931 | self.Results = [] |
|
9932 | self.DiagnosticInfos = [] |
|
9933 | self._freeze = True |
|
9934 | ||
9935 | def to_binary(self): |
|
9936 | packet = [] |
|
9937 | packet.append(self.TypeId.to_binary()) |
|
9938 | packet.append(self.ResponseHeader.to_binary()) |
|
9939 | packet.append(uabin.Primitives.Int32.pack(len(self.Results))) |
|
9940 | for fieldname in self.Results: |
|
9941 | packet.append(fieldname.to_binary()) |
|
9942 | packet.append(uabin.Primitives.Int32.pack(len(self.DiagnosticInfos))) |
|
9943 | for fieldname in self.DiagnosticInfos: |
|
9944 | packet.append(fieldname.to_binary()) |
|
9945 | return b''.join(packet) |
|
9946 | ||
9947 | @staticmethod |
|
9948 | def from_binary(data): |
|
9949 | return WriteResponse(data) |
|
9950 | ||
9951 | def _binary_init(self, data): |
|
9952 | self.TypeId = NodeId.from_binary(data) |
|
9953 | self.ResponseHeader = ResponseHeader.from_binary(data) |
|
9954 | length = uabin.Primitives.Int32.unpack(data) |
|
9955 | array = [] |
|
9956 | if length != -1: |
|
9957 | for _ in range(0, length): |
|
9958 | array.append(StatusCode.from_binary(data)) |
|
9959 | self.Results = array |
|
9960 | length = uabin.Primitives.Int32.unpack(data) |
|
9961 | array = [] |
|
9962 | if length != -1: |
|
9963 | for _ in range(0, length): |
|
9964 | array.append(DiagnosticInfo.from_binary(data)) |
|
9965 | self.DiagnosticInfos = array |
|
9966 | ||
9967 | def __str__(self): |
|
9968 | return 'WriteResponse(' + 'TypeId:' + str(self.TypeId) + ', ' + \ |
|
9969 | 'ResponseHeader:' + str(self.ResponseHeader) + ', ' + \ |
|
9970 | 'Results:' + str(self.Results) + ', ' + \ |
|
9971 | 'DiagnosticInfos:' + str(self.DiagnosticInfos) + ')' |
|
9972 | ||
9973 | __repr__ = __str__ |
|
9974 | ||
9975 | ||
9976 | class HistoryUpdateDetails(FrozenClass): |
|
@@ 9684-9752 (lines=69) @@ | ||
9681 | __repr__ = __str__ |
|
9682 | ||
9683 | ||
9684 | class HistoryReadResponse(FrozenClass): |
|
9685 | ''' |
|
9686 | :ivar TypeId: |
|
9687 | :vartype TypeId: NodeId |
|
9688 | :ivar ResponseHeader: |
|
9689 | :vartype ResponseHeader: ResponseHeader |
|
9690 | :ivar Results: |
|
9691 | :vartype Results: HistoryReadResult |
|
9692 | :ivar DiagnosticInfos: |
|
9693 | :vartype DiagnosticInfos: DiagnosticInfo |
|
9694 | ''' |
|
9695 | ||
9696 | ua_types = { |
|
9697 | 'TypeId': 'NodeId', |
|
9698 | 'ResponseHeader': 'ResponseHeader', |
|
9699 | 'Results': 'HistoryReadResult', |
|
9700 | 'DiagnosticInfos': 'DiagnosticInfo', |
|
9701 | } |
|
9702 | ||
9703 | def __init__(self, binary=None): |
|
9704 | if binary is not None: |
|
9705 | self._binary_init(binary) |
|
9706 | self._freeze = True |
|
9707 | return |
|
9708 | self.TypeId = FourByteNodeId(ObjectIds.HistoryReadResponse_Encoding_DefaultBinary) |
|
9709 | self.ResponseHeader = ResponseHeader() |
|
9710 | self.Results = [] |
|
9711 | self.DiagnosticInfos = [] |
|
9712 | self._freeze = True |
|
9713 | ||
9714 | def to_binary(self): |
|
9715 | packet = [] |
|
9716 | packet.append(self.TypeId.to_binary()) |
|
9717 | packet.append(self.ResponseHeader.to_binary()) |
|
9718 | packet.append(uabin.Primitives.Int32.pack(len(self.Results))) |
|
9719 | for fieldname in self.Results: |
|
9720 | packet.append(fieldname.to_binary()) |
|
9721 | packet.append(uabin.Primitives.Int32.pack(len(self.DiagnosticInfos))) |
|
9722 | for fieldname in self.DiagnosticInfos: |
|
9723 | packet.append(fieldname.to_binary()) |
|
9724 | return b''.join(packet) |
|
9725 | ||
9726 | @staticmethod |
|
9727 | def from_binary(data): |
|
9728 | return HistoryReadResponse(data) |
|
9729 | ||
9730 | def _binary_init(self, data): |
|
9731 | self.TypeId = NodeId.from_binary(data) |
|
9732 | self.ResponseHeader = ResponseHeader.from_binary(data) |
|
9733 | length = uabin.Primitives.Int32.unpack(data) |
|
9734 | array = [] |
|
9735 | if length != -1: |
|
9736 | for _ in range(0, length): |
|
9737 | array.append(HistoryReadResult.from_binary(data)) |
|
9738 | self.Results = array |
|
9739 | length = uabin.Primitives.Int32.unpack(data) |
|
9740 | array = [] |
|
9741 | if length != -1: |
|
9742 | for _ in range(0, length): |
|
9743 | array.append(DiagnosticInfo.from_binary(data)) |
|
9744 | self.DiagnosticInfos = array |
|
9745 | ||
9746 | def __str__(self): |
|
9747 | return 'HistoryReadResponse(' + 'TypeId:' + str(self.TypeId) + ', ' + \ |
|
9748 | 'ResponseHeader:' + str(self.ResponseHeader) + ', ' + \ |
|
9749 | 'Results:' + str(self.Results) + ', ' + \ |
|
9750 | 'DiagnosticInfos:' + str(self.DiagnosticInfos) + ')' |
|
9751 | ||
9752 | __repr__ = __str__ |
|
9753 | ||
9754 | ||
9755 | class WriteValue(FrozenClass): |
|
@@ 8931-8999 (lines=69) @@ | ||
8928 | __repr__ = __str__ |
|
8929 | ||
8930 | ||
8931 | class ReadResponse(FrozenClass): |
|
8932 | ''' |
|
8933 | :ivar TypeId: |
|
8934 | :vartype TypeId: NodeId |
|
8935 | :ivar ResponseHeader: |
|
8936 | :vartype ResponseHeader: ResponseHeader |
|
8937 | :ivar Results: |
|
8938 | :vartype Results: DataValue |
|
8939 | :ivar DiagnosticInfos: |
|
8940 | :vartype DiagnosticInfos: DiagnosticInfo |
|
8941 | ''' |
|
8942 | ||
8943 | ua_types = { |
|
8944 | 'TypeId': 'NodeId', |
|
8945 | 'ResponseHeader': 'ResponseHeader', |
|
8946 | 'Results': 'DataValue', |
|
8947 | 'DiagnosticInfos': 'DiagnosticInfo', |
|
8948 | } |
|
8949 | ||
8950 | def __init__(self, binary=None): |
|
8951 | if binary is not None: |
|
8952 | self._binary_init(binary) |
|
8953 | self._freeze = True |
|
8954 | return |
|
8955 | self.TypeId = FourByteNodeId(ObjectIds.ReadResponse_Encoding_DefaultBinary) |
|
8956 | self.ResponseHeader = ResponseHeader() |
|
8957 | self.Results = [] |
|
8958 | self.DiagnosticInfos = [] |
|
8959 | self._freeze = True |
|
8960 | ||
8961 | def to_binary(self): |
|
8962 | packet = [] |
|
8963 | packet.append(self.TypeId.to_binary()) |
|
8964 | packet.append(self.ResponseHeader.to_binary()) |
|
8965 | packet.append(uabin.Primitives.Int32.pack(len(self.Results))) |
|
8966 | for fieldname in self.Results: |
|
8967 | packet.append(fieldname.to_binary()) |
|
8968 | packet.append(uabin.Primitives.Int32.pack(len(self.DiagnosticInfos))) |
|
8969 | for fieldname in self.DiagnosticInfos: |
|
8970 | packet.append(fieldname.to_binary()) |
|
8971 | return b''.join(packet) |
|
8972 | ||
8973 | @staticmethod |
|
8974 | def from_binary(data): |
|
8975 | return ReadResponse(data) |
|
8976 | ||
8977 | def _binary_init(self, data): |
|
8978 | self.TypeId = NodeId.from_binary(data) |
|
8979 | self.ResponseHeader = ResponseHeader.from_binary(data) |
|
8980 | length = uabin.Primitives.Int32.unpack(data) |
|
8981 | array = [] |
|
8982 | if length != -1: |
|
8983 | for _ in range(0, length): |
|
8984 | array.append(DataValue.from_binary(data)) |
|
8985 | self.Results = array |
|
8986 | length = uabin.Primitives.Int32.unpack(data) |
|
8987 | array = [] |
|
8988 | if length != -1: |
|
8989 | for _ in range(0, length): |
|
8990 | array.append(DiagnosticInfo.from_binary(data)) |
|
8991 | self.DiagnosticInfos = array |
|
8992 | ||
8993 | def __str__(self): |
|
8994 | return 'ReadResponse(' + 'TypeId:' + str(self.TypeId) + ', ' + \ |
|
8995 | 'ResponseHeader:' + str(self.ResponseHeader) + ', ' + \ |
|
8996 | 'Results:' + str(self.Results) + ', ' + \ |
|
8997 | 'DiagnosticInfos:' + str(self.DiagnosticInfos) + ')' |
|
8998 | ||
8999 | __repr__ = __str__ |
|
9000 | ||
9001 | ||
9002 | class HistoryReadValueId(FrozenClass): |
|
@@ 2557-2625 (lines=69) @@ | ||
2554 | __repr__ = __str__ |
|
2555 | ||
2556 | ||
2557 | class RegisterServer2Response(FrozenClass): |
|
2558 | ''' |
|
2559 | :ivar TypeId: |
|
2560 | :vartype TypeId: NodeId |
|
2561 | :ivar ResponseHeader: |
|
2562 | :vartype ResponseHeader: ResponseHeader |
|
2563 | :ivar ConfigurationResults: |
|
2564 | :vartype ConfigurationResults: StatusCode |
|
2565 | :ivar DiagnosticInfos: |
|
2566 | :vartype DiagnosticInfos: DiagnosticInfo |
|
2567 | ''' |
|
2568 | ||
2569 | ua_types = { |
|
2570 | 'TypeId': 'NodeId', |
|
2571 | 'ResponseHeader': 'ResponseHeader', |
|
2572 | 'ConfigurationResults': 'StatusCode', |
|
2573 | 'DiagnosticInfos': 'DiagnosticInfo', |
|
2574 | } |
|
2575 | ||
2576 | def __init__(self, binary=None): |
|
2577 | if binary is not None: |
|
2578 | self._binary_init(binary) |
|
2579 | self._freeze = True |
|
2580 | return |
|
2581 | self.TypeId = FourByteNodeId(ObjectIds.RegisterServer2Response_Encoding_DefaultBinary) |
|
2582 | self.ResponseHeader = ResponseHeader() |
|
2583 | self.ConfigurationResults = [] |
|
2584 | self.DiagnosticInfos = [] |
|
2585 | self._freeze = True |
|
2586 | ||
2587 | def to_binary(self): |
|
2588 | packet = [] |
|
2589 | packet.append(self.TypeId.to_binary()) |
|
2590 | packet.append(self.ResponseHeader.to_binary()) |
|
2591 | packet.append(uabin.Primitives.Int32.pack(len(self.ConfigurationResults))) |
|
2592 | for fieldname in self.ConfigurationResults: |
|
2593 | packet.append(fieldname.to_binary()) |
|
2594 | packet.append(uabin.Primitives.Int32.pack(len(self.DiagnosticInfos))) |
|
2595 | for fieldname in self.DiagnosticInfos: |
|
2596 | packet.append(fieldname.to_binary()) |
|
2597 | return b''.join(packet) |
|
2598 | ||
2599 | @staticmethod |
|
2600 | def from_binary(data): |
|
2601 | return RegisterServer2Response(data) |
|
2602 | ||
2603 | def _binary_init(self, data): |
|
2604 | self.TypeId = NodeId.from_binary(data) |
|
2605 | self.ResponseHeader = ResponseHeader.from_binary(data) |
|
2606 | length = uabin.Primitives.Int32.unpack(data) |
|
2607 | array = [] |
|
2608 | if length != -1: |
|
2609 | for _ in range(0, length): |
|
2610 | array.append(StatusCode.from_binary(data)) |
|
2611 | self.ConfigurationResults = array |
|
2612 | length = uabin.Primitives.Int32.unpack(data) |
|
2613 | array = [] |
|
2614 | if length != -1: |
|
2615 | for _ in range(0, length): |
|
2616 | array.append(DiagnosticInfo.from_binary(data)) |
|
2617 | self.DiagnosticInfos = array |
|
2618 | ||
2619 | def __str__(self): |
|
2620 | return 'RegisterServer2Response(' + 'TypeId:' + str(self.TypeId) + ', ' + \ |
|
2621 | 'ResponseHeader:' + str(self.ResponseHeader) + ', ' + \ |
|
2622 | 'ConfigurationResults:' + str(self.ConfigurationResults) + ', ' + \ |
|
2623 | 'DiagnosticInfos:' + str(self.DiagnosticInfos) + ')' |
|
2624 | ||
2625 | __repr__ = __str__ |
|
2626 | ||
2627 | ||
2628 | class ChannelSecurityToken(FrozenClass): |