| @@ 9942-9975 (lines=34) @@ | ||
| 9939 | __repr__ = __str__ |
|
| 9940 | ||
| 9941 | ||
| 9942 | class HistoryUpdateDetails(FrozenClass): |
|
| 9943 | ''' |
|
| 9944 | :ivar NodeId: |
|
| 9945 | :vartype NodeId: NodeId |
|
| 9946 | ''' |
|
| 9947 | ||
| 9948 | ua_types = { |
|
| 9949 | 'NodeId': 'NodeId', |
|
| 9950 | } |
|
| 9951 | ||
| 9952 | def __init__(self, binary=None): |
|
| 9953 | if binary is not None: |
|
| 9954 | self._binary_init(binary) |
|
| 9955 | self._freeze = True |
|
| 9956 | return |
|
| 9957 | self.NodeId = NodeId() |
|
| 9958 | self._freeze = True |
|
| 9959 | ||
| 9960 | def to_binary(self): |
|
| 9961 | packet = [] |
|
| 9962 | packet.append(self.NodeId.to_binary()) |
|
| 9963 | return b''.join(packet) |
|
| 9964 | ||
| 9965 | @staticmethod |
|
| 9966 | def from_binary(data): |
|
| 9967 | return HistoryUpdateDetails(data) |
|
| 9968 | ||
| 9969 | def _binary_init(self, data): |
|
| 9970 | self.NodeId = NodeId.from_binary(data) |
|
| 9971 | ||
| 9972 | def __str__(self): |
|
| 9973 | return 'HistoryUpdateDetails(' + 'NodeId:' + str(self.NodeId) + ')' |
|
| 9974 | ||
| 9975 | __repr__ = __str__ |
|
| 9976 | ||
| 9977 | ||
| 9978 | class UpdateDataDetails(FrozenClass): |
|
| @@ 7935-7968 (lines=34) @@ | ||
| 7932 | __repr__ = __str__ |
|
| 7933 | ||
| 7934 | ||
| 7935 | class LiteralOperand(FrozenClass): |
|
| 7936 | ''' |
|
| 7937 | :ivar Value: |
|
| 7938 | :vartype Value: Variant |
|
| 7939 | ''' |
|
| 7940 | ||
| 7941 | ua_types = { |
|
| 7942 | 'Value': 'Variant', |
|
| 7943 | } |
|
| 7944 | ||
| 7945 | def __init__(self, binary=None): |
|
| 7946 | if binary is not None: |
|
| 7947 | self._binary_init(binary) |
|
| 7948 | self._freeze = True |
|
| 7949 | return |
|
| 7950 | self.Value = Variant() |
|
| 7951 | self._freeze = True |
|
| 7952 | ||
| 7953 | def to_binary(self): |
|
| 7954 | packet = [] |
|
| 7955 | packet.append(self.Value.to_binary()) |
|
| 7956 | return b''.join(packet) |
|
| 7957 | ||
| 7958 | @staticmethod |
|
| 7959 | def from_binary(data): |
|
| 7960 | return LiteralOperand(data) |
|
| 7961 | ||
| 7962 | def _binary_init(self, data): |
|
| 7963 | self.Value = Variant.from_binary(data) |
|
| 7964 | ||
| 7965 | def __str__(self): |
|
| 7966 | return 'LiteralOperand(' + 'Value:' + str(self.Value) + ')' |
|
| 7967 | ||
| 7968 | __repr__ = __str__ |
|
| 7969 | ||
| 7970 | ||
| 7971 | class AttributeOperand(FrozenClass): |
|