|
@@ 10995-11056 (lines=62) @@
|
| 10992 |
|
__repr__ = __str__ |
| 10993 |
|
|
| 10994 |
|
|
| 10995 |
|
class AggregateConfiguration(FrozenClass): |
| 10996 |
|
''' |
| 10997 |
|
:ivar UseServerCapabilitiesDefaults: |
| 10998 |
|
:vartype UseServerCapabilitiesDefaults: Boolean |
| 10999 |
|
:ivar TreatUncertainAsBad: |
| 11000 |
|
:vartype TreatUncertainAsBad: Boolean |
| 11001 |
|
:ivar PercentDataBad: |
| 11002 |
|
:vartype PercentDataBad: Byte |
| 11003 |
|
:ivar PercentDataGood: |
| 11004 |
|
:vartype PercentDataGood: Byte |
| 11005 |
|
:ivar UseSlopedExtrapolation: |
| 11006 |
|
:vartype UseSlopedExtrapolation: Boolean |
| 11007 |
|
''' |
| 11008 |
|
|
| 11009 |
|
ua_types = { |
| 11010 |
|
'UseServerCapabilitiesDefaults': 'Boolean', |
| 11011 |
|
'TreatUncertainAsBad': 'Boolean', |
| 11012 |
|
'PercentDataBad': 'Byte', |
| 11013 |
|
'PercentDataGood': 'Byte', |
| 11014 |
|
'UseSlopedExtrapolation': 'Boolean', |
| 11015 |
|
} |
| 11016 |
|
|
| 11017 |
|
def __init__(self, binary=None): |
| 11018 |
|
if binary is not None: |
| 11019 |
|
self._binary_init(binary) |
| 11020 |
|
self._freeze = True |
| 11021 |
|
return |
| 11022 |
|
self.UseServerCapabilitiesDefaults = True |
| 11023 |
|
self.TreatUncertainAsBad = True |
| 11024 |
|
self.PercentDataBad = 0 |
| 11025 |
|
self.PercentDataGood = 0 |
| 11026 |
|
self.UseSlopedExtrapolation = True |
| 11027 |
|
self._freeze = True |
| 11028 |
|
|
| 11029 |
|
def to_binary(self): |
| 11030 |
|
packet = [] |
| 11031 |
|
packet.append(uabin.Primitives.Boolean.pack(self.UseServerCapabilitiesDefaults)) |
| 11032 |
|
packet.append(uabin.Primitives.Boolean.pack(self.TreatUncertainAsBad)) |
| 11033 |
|
packet.append(uabin.Primitives.Byte.pack(self.PercentDataBad)) |
| 11034 |
|
packet.append(uabin.Primitives.Byte.pack(self.PercentDataGood)) |
| 11035 |
|
packet.append(uabin.Primitives.Boolean.pack(self.UseSlopedExtrapolation)) |
| 11036 |
|
return b''.join(packet) |
| 11037 |
|
|
| 11038 |
|
@staticmethod |
| 11039 |
|
def from_binary(data): |
| 11040 |
|
return AggregateConfiguration(data) |
| 11041 |
|
|
| 11042 |
|
def _binary_init(self, data): |
| 11043 |
|
self.UseServerCapabilitiesDefaults = uabin.Primitives.Boolean.unpack(data) |
| 11044 |
|
self.TreatUncertainAsBad = uabin.Primitives.Boolean.unpack(data) |
| 11045 |
|
self.PercentDataBad = uabin.Primitives.Byte.unpack(data) |
| 11046 |
|
self.PercentDataGood = uabin.Primitives.Byte.unpack(data) |
| 11047 |
|
self.UseSlopedExtrapolation = uabin.Primitives.Boolean.unpack(data) |
| 11048 |
|
|
| 11049 |
|
def __str__(self): |
| 11050 |
|
return 'AggregateConfiguration(' + 'UseServerCapabilitiesDefaults:' + str(self.UseServerCapabilitiesDefaults) + ', ' + \ |
| 11051 |
|
'TreatUncertainAsBad:' + str(self.TreatUncertainAsBad) + ', ' + \ |
| 11052 |
|
'PercentDataBad:' + str(self.PercentDataBad) + ', ' + \ |
| 11053 |
|
'PercentDataGood:' + str(self.PercentDataGood) + ', ' + \ |
| 11054 |
|
'UseSlopedExtrapolation:' + str(self.UseSlopedExtrapolation) + ')' |
| 11055 |
|
|
| 11056 |
|
__repr__ = __str__ |
| 11057 |
|
|
| 11058 |
|
|
| 11059 |
|
class AggregateFilter(FrozenClass): |
|
@@ 9197-9258 (lines=62) @@
|
| 9194 |
|
__repr__ = __str__ |
| 9195 |
|
|
| 9196 |
|
|
| 9197 |
|
class ReadRawModifiedDetails(FrozenClass): |
| 9198 |
|
''' |
| 9199 |
|
:ivar IsReadModified: |
| 9200 |
|
:vartype IsReadModified: Boolean |
| 9201 |
|
:ivar StartTime: |
| 9202 |
|
:vartype StartTime: DateTime |
| 9203 |
|
:ivar EndTime: |
| 9204 |
|
:vartype EndTime: DateTime |
| 9205 |
|
:ivar NumValuesPerNode: |
| 9206 |
|
:vartype NumValuesPerNode: UInt32 |
| 9207 |
|
:ivar ReturnBounds: |
| 9208 |
|
:vartype ReturnBounds: Boolean |
| 9209 |
|
''' |
| 9210 |
|
|
| 9211 |
|
ua_types = { |
| 9212 |
|
'IsReadModified': 'Boolean', |
| 9213 |
|
'StartTime': 'DateTime', |
| 9214 |
|
'EndTime': 'DateTime', |
| 9215 |
|
'NumValuesPerNode': 'UInt32', |
| 9216 |
|
'ReturnBounds': 'Boolean', |
| 9217 |
|
} |
| 9218 |
|
|
| 9219 |
|
def __init__(self, binary=None): |
| 9220 |
|
if binary is not None: |
| 9221 |
|
self._binary_init(binary) |
| 9222 |
|
self._freeze = True |
| 9223 |
|
return |
| 9224 |
|
self.IsReadModified = True |
| 9225 |
|
self.StartTime = datetime.utcnow() |
| 9226 |
|
self.EndTime = datetime.utcnow() |
| 9227 |
|
self.NumValuesPerNode = 0 |
| 9228 |
|
self.ReturnBounds = True |
| 9229 |
|
self._freeze = True |
| 9230 |
|
|
| 9231 |
|
def to_binary(self): |
| 9232 |
|
packet = [] |
| 9233 |
|
packet.append(uabin.Primitives.Boolean.pack(self.IsReadModified)) |
| 9234 |
|
packet.append(uabin.Primitives.DateTime.pack(self.StartTime)) |
| 9235 |
|
packet.append(uabin.Primitives.DateTime.pack(self.EndTime)) |
| 9236 |
|
packet.append(uabin.Primitives.UInt32.pack(self.NumValuesPerNode)) |
| 9237 |
|
packet.append(uabin.Primitives.Boolean.pack(self.ReturnBounds)) |
| 9238 |
|
return b''.join(packet) |
| 9239 |
|
|
| 9240 |
|
@staticmethod |
| 9241 |
|
def from_binary(data): |
| 9242 |
|
return ReadRawModifiedDetails(data) |
| 9243 |
|
|
| 9244 |
|
def _binary_init(self, data): |
| 9245 |
|
self.IsReadModified = uabin.Primitives.Boolean.unpack(data) |
| 9246 |
|
self.StartTime = uabin.Primitives.DateTime.unpack(data) |
| 9247 |
|
self.EndTime = uabin.Primitives.DateTime.unpack(data) |
| 9248 |
|
self.NumValuesPerNode = uabin.Primitives.UInt32.unpack(data) |
| 9249 |
|
self.ReturnBounds = uabin.Primitives.Boolean.unpack(data) |
| 9250 |
|
|
| 9251 |
|
def __str__(self): |
| 9252 |
|
return 'ReadRawModifiedDetails(' + 'IsReadModified:' + str(self.IsReadModified) + ', ' + \ |
| 9253 |
|
'StartTime:' + str(self.StartTime) + ', ' + \ |
| 9254 |
|
'EndTime:' + str(self.EndTime) + ', ' + \ |
| 9255 |
|
'NumValuesPerNode:' + str(self.NumValuesPerNode) + ', ' + \ |
| 9256 |
|
'ReturnBounds:' + str(self.ReturnBounds) + ')' |
| 9257 |
|
|
| 9258 |
|
__repr__ = __str__ |
| 9259 |
|
|
| 9260 |
|
|
| 9261 |
|
class ReadProcessedDetails(FrozenClass): |