| @@ 9976-10009 (lines=34) @@ | ||
| 9973 | 'DiagnosticInfos:' + str(self.DiagnosticInfos) + ')' |
|
| 9974 | ||
| 9975 | __repr__ = __str__ |
|
| 9976 | ||
| 9977 | ||
| 9978 | class HistoryUpdateDetails(FrozenClass): |
|
| 9979 | ''' |
|
| 9980 | :ivar NodeId: |
|
| 9981 | :vartype NodeId: NodeId |
|
| 9982 | ''' |
|
| 9983 | ||
| 9984 | ua_types = { |
|
| 9985 | 'NodeId': 'NodeId', |
|
| 9986 | } |
|
| 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.NodeId = NodeId() |
|
| 9994 | self._freeze = True |
|
| 9995 | ||
| 9996 | def to_binary(self): |
|
| 9997 | packet = [] |
|
| 9998 | packet.append(self.NodeId.to_binary()) |
|
| 9999 | return b''.join(packet) |
|
| 10000 | ||
| 10001 | @staticmethod |
|
| 10002 | def from_binary(data): |
|
| 10003 | return HistoryUpdateDetails(data) |
|
| 10004 | ||
| 10005 | def _binary_init(self, data): |
|
| 10006 | self.NodeId = NodeId.from_binary(data) |
|
| 10007 | ||
| 10008 | def __str__(self): |
|
| 10009 | return 'HistoryUpdateDetails(' + 'NodeId:' + str(self.NodeId) + ')' |
|
| 10010 | ||
| 10011 | __repr__ = __str__ |
|
| 10012 | ||
| @@ 7969-8002 (lines=34) @@ | ||
| 7966 | return 'ElementOperand(' + 'Index:' + str(self.Index) + ')' |
|
| 7967 | ||
| 7968 | __repr__ = __str__ |
|
| 7969 | ||
| 7970 | ||
| 7971 | class LiteralOperand(FrozenClass): |
|
| 7972 | ''' |
|
| 7973 | :ivar Value: |
|
| 7974 | :vartype Value: Variant |
|
| 7975 | ''' |
|
| 7976 | ||
| 7977 | ua_types = { |
|
| 7978 | 'Value': 'Variant', |
|
| 7979 | } |
|
| 7980 | ||
| 7981 | def __init__(self, binary=None): |
|
| 7982 | if binary is not None: |
|
| 7983 | self._binary_init(binary) |
|
| 7984 | self._freeze = True |
|
| 7985 | return |
|
| 7986 | self.Value = Variant() |
|
| 7987 | self._freeze = True |
|
| 7988 | ||
| 7989 | def to_binary(self): |
|
| 7990 | packet = [] |
|
| 7991 | packet.append(self.Value.to_binary()) |
|
| 7992 | return b''.join(packet) |
|
| 7993 | ||
| 7994 | @staticmethod |
|
| 7995 | def from_binary(data): |
|
| 7996 | return LiteralOperand(data) |
|
| 7997 | ||
| 7998 | def _binary_init(self, data): |
|
| 7999 | self.Value = Variant.from_binary(data) |
|
| 8000 | ||
| 8001 | def __str__(self): |
|
| 8002 | return 'LiteralOperand(' + 'Value:' + str(self.Value) + ')' |
|
| 8003 | ||
| 8004 | __repr__ = __str__ |
|
| 8005 | ||