|
@@ 13803-13853 (lines=51) @@
|
| 13800 |
|
__repr__ = __str__ |
| 13801 |
|
|
| 13802 |
|
|
| 13803 |
|
class SamplingIntervalDiagnosticsDataType(FrozenClass): |
| 13804 |
|
''' |
| 13805 |
|
:ivar SamplingInterval: |
| 13806 |
|
:vartype SamplingInterval: Double |
| 13807 |
|
:ivar MonitoredItemCount: |
| 13808 |
|
:vartype MonitoredItemCount: UInt32 |
| 13809 |
|
:ivar MaxMonitoredItemCount: |
| 13810 |
|
:vartype MaxMonitoredItemCount: UInt32 |
| 13811 |
|
:ivar DisabledMonitoredItemCount: |
| 13812 |
|
:vartype DisabledMonitoredItemCount: UInt32 |
| 13813 |
|
''' |
| 13814 |
|
|
| 13815 |
|
ua_types = [ |
| 13816 |
|
|
| 13817 |
|
('SamplingInterval', 'Double'), |
| 13818 |
|
('MonitoredItemCount', 'UInt32'), |
| 13819 |
|
('MaxMonitoredItemCount', 'UInt32'), |
| 13820 |
|
('DisabledMonitoredItemCount', 'UInt32'), |
| 13821 |
|
] |
| 13822 |
|
|
| 13823 |
|
def __init__(self): |
| 13824 |
|
self.SamplingInterval = 0 |
| 13825 |
|
self.MonitoredItemCount = 0 |
| 13826 |
|
self.MaxMonitoredItemCount = 0 |
| 13827 |
|
self.DisabledMonitoredItemCount = 0 |
| 13828 |
|
self._freeze = True |
| 13829 |
|
|
| 13830 |
|
def to_binary(self): |
| 13831 |
|
packet = [] |
| 13832 |
|
packet.append(uabin.Primitives.Double.pack(self.SamplingInterval)) |
| 13833 |
|
packet.append(uabin.Primitives.UInt32.pack(self.MonitoredItemCount)) |
| 13834 |
|
packet.append(uabin.Primitives.UInt32.pack(self.MaxMonitoredItemCount)) |
| 13835 |
|
packet.append(uabin.Primitives.UInt32.pack(self.DisabledMonitoredItemCount)) |
| 13836 |
|
return b''.join(packet) |
| 13837 |
|
|
| 13838 |
|
@staticmethod |
| 13839 |
|
def from_binary(data): |
| 13840 |
|
obj = SamplingIntervalDiagnosticsDataType() |
| 13841 |
|
self.SamplingInterval = uabin.Primitives.Double.unpack(data) |
| 13842 |
|
self.MonitoredItemCount = uabin.Primitives.UInt32.unpack(data) |
| 13843 |
|
self.MaxMonitoredItemCount = uabin.Primitives.UInt32.unpack(data) |
| 13844 |
|
self.DisabledMonitoredItemCount = uabin.Primitives.UInt32.unpack(data) |
| 13845 |
|
return obj |
| 13846 |
|
|
| 13847 |
|
def __str__(self): |
| 13848 |
|
return 'SamplingIntervalDiagnosticsDataType(' + 'SamplingInterval:' + str(self.SamplingInterval) + ', ' + \ |
| 13849 |
|
'MonitoredItemCount:' + str(self.MonitoredItemCount) + ', ' + \ |
| 13850 |
|
'MaxMonitoredItemCount:' + str(self.MaxMonitoredItemCount) + ', ' + \ |
| 13851 |
|
'DisabledMonitoredItemCount:' + str(self.DisabledMonitoredItemCount) + ')' |
| 13852 |
|
|
| 13853 |
|
__repr__ = __str__ |
| 13854 |
|
|
| 13855 |
|
|
| 13856 |
|
class ServerDiagnosticsSummaryDataType(FrozenClass): |
|
@@ 12028-12078 (lines=51) @@
|
| 12025 |
|
__repr__ = __str__ |
| 12026 |
|
|
| 12027 |
|
|
| 12028 |
|
class CreateSubscriptionResult(FrozenClass): |
| 12029 |
|
''' |
| 12030 |
|
:ivar SubscriptionId: |
| 12031 |
|
:vartype SubscriptionId: UInt32 |
| 12032 |
|
:ivar RevisedPublishingInterval: |
| 12033 |
|
:vartype RevisedPublishingInterval: Double |
| 12034 |
|
:ivar RevisedLifetimeCount: |
| 12035 |
|
:vartype RevisedLifetimeCount: UInt32 |
| 12036 |
|
:ivar RevisedMaxKeepAliveCount: |
| 12037 |
|
:vartype RevisedMaxKeepAliveCount: UInt32 |
| 12038 |
|
''' |
| 12039 |
|
|
| 12040 |
|
ua_types = [ |
| 12041 |
|
|
| 12042 |
|
('SubscriptionId', 'UInt32'), |
| 12043 |
|
('RevisedPublishingInterval', 'Double'), |
| 12044 |
|
('RevisedLifetimeCount', 'UInt32'), |
| 12045 |
|
('RevisedMaxKeepAliveCount', 'UInt32'), |
| 12046 |
|
] |
| 12047 |
|
|
| 12048 |
|
def __init__(self): |
| 12049 |
|
self.SubscriptionId = 0 |
| 12050 |
|
self.RevisedPublishingInterval = 0 |
| 12051 |
|
self.RevisedLifetimeCount = 0 |
| 12052 |
|
self.RevisedMaxKeepAliveCount = 0 |
| 12053 |
|
self._freeze = True |
| 12054 |
|
|
| 12055 |
|
def to_binary(self): |
| 12056 |
|
packet = [] |
| 12057 |
|
packet.append(uabin.Primitives.UInt32.pack(self.SubscriptionId)) |
| 12058 |
|
packet.append(uabin.Primitives.Double.pack(self.RevisedPublishingInterval)) |
| 12059 |
|
packet.append(uabin.Primitives.UInt32.pack(self.RevisedLifetimeCount)) |
| 12060 |
|
packet.append(uabin.Primitives.UInt32.pack(self.RevisedMaxKeepAliveCount)) |
| 12061 |
|
return b''.join(packet) |
| 12062 |
|
|
| 12063 |
|
@staticmethod |
| 12064 |
|
def from_binary(data): |
| 12065 |
|
obj = CreateSubscriptionResult() |
| 12066 |
|
self.SubscriptionId = uabin.Primitives.UInt32.unpack(data) |
| 12067 |
|
self.RevisedPublishingInterval = uabin.Primitives.Double.unpack(data) |
| 12068 |
|
self.RevisedLifetimeCount = uabin.Primitives.UInt32.unpack(data) |
| 12069 |
|
self.RevisedMaxKeepAliveCount = uabin.Primitives.UInt32.unpack(data) |
| 12070 |
|
return obj |
| 12071 |
|
|
| 12072 |
|
def __str__(self): |
| 12073 |
|
return 'CreateSubscriptionResult(' + 'SubscriptionId:' + str(self.SubscriptionId) + ', ' + \ |
| 12074 |
|
'RevisedPublishingInterval:' + str(self.RevisedPublishingInterval) + ', ' + \ |
| 12075 |
|
'RevisedLifetimeCount:' + str(self.RevisedLifetimeCount) + ', ' + \ |
| 12076 |
|
'RevisedMaxKeepAliveCount:' + str(self.RevisedMaxKeepAliveCount) + ')' |
| 12077 |
|
|
| 12078 |
|
__repr__ = __str__ |
| 12079 |
|
|
| 12080 |
|
|
| 12081 |
|
class CreateSubscriptionResponse(FrozenClass): |