@@ 7667-7696 (lines=30) @@ | ||
7664 | if length != -1: |
|
7665 | for _ in range(0, length): |
|
7666 | array.append(DiagnosticInfo.from_binary(data)) |
|
7667 | obj.ElementDiagnosticInfos = array |
|
7668 | return obj |
|
7669 | ||
7670 | def __str__(self): |
|
7671 | return 'ContentFilterResult(' + 'ElementResults:' + str(self.ElementResults) + ', ' + \ |
|
7672 | 'ElementDiagnosticInfos:' + str(self.ElementDiagnosticInfos) + ')' |
|
7673 | ||
7674 | __repr__ = __str__ |
|
7675 | ||
7676 | ||
7677 | class ParsingResult(FrozenClass): |
|
7678 | ''' |
|
7679 | :ivar StatusCode: |
|
7680 | :vartype StatusCode: StatusCode |
|
7681 | :ivar DataStatusCodes: |
|
7682 | :vartype DataStatusCodes: StatusCode |
|
7683 | :ivar DataDiagnosticInfos: |
|
7684 | :vartype DataDiagnosticInfos: DiagnosticInfo |
|
7685 | ''' |
|
7686 | ||
7687 | ua_types = [ |
|
7688 | ('StatusCode', 'StatusCode'), |
|
7689 | ('DataStatusCodes', 'ListOfStatusCode'), |
|
7690 | ('DataDiagnosticInfos', 'ListOfDiagnosticInfo'), |
|
7691 | ] |
|
7692 | ||
7693 | def __init__(self): |
|
7694 | self.StatusCode = StatusCode() |
|
7695 | self.DataStatusCodes = [] |
|
7696 | self.DataDiagnosticInfos = [] |
|
7697 | self._freeze = True |
|
7698 | ||
7699 | def to_binary(self): |
|
@@ 4071-4100 (lines=30) @@ | ||
4068 | :vartype DisplayName: LocalizedText |
|
4069 | :ivar Description: |
|
4070 | :vartype Description: LocalizedText |
|
4071 | :ivar WriteMask: |
|
4072 | :vartype WriteMask: UInt32 |
|
4073 | :ivar UserWriteMask: |
|
4074 | :vartype UserWriteMask: UInt32 |
|
4075 | :ivar Value: |
|
4076 | :vartype Value: Variant |
|
4077 | :ivar DataType: |
|
4078 | :vartype DataType: NodeId |
|
4079 | :ivar ValueRank: |
|
4080 | :vartype ValueRank: Int32 |
|
4081 | :ivar ArrayDimensions: |
|
4082 | :vartype ArrayDimensions: UInt32 |
|
4083 | :ivar AccessLevel: |
|
4084 | :vartype AccessLevel: Byte |
|
4085 | :ivar UserAccessLevel: |
|
4086 | :vartype UserAccessLevel: Byte |
|
4087 | :ivar MinimumSamplingInterval: |
|
4088 | :vartype MinimumSamplingInterval: Double |
|
4089 | :ivar Historizing: |
|
4090 | :vartype Historizing: Boolean |
|
4091 | ''' |
|
4092 | ||
4093 | ua_types = [ |
|
4094 | ('SpecifiedAttributes', 'UInt32'), |
|
4095 | ('DisplayName', 'LocalizedText'), |
|
4096 | ('Description', 'LocalizedText'), |
|
4097 | ('WriteMask', 'UInt32'), |
|
4098 | ('UserWriteMask', 'UInt32'), |
|
4099 | ('Value', 'Variant'), |
|
4100 | ('DataType', 'NodeId'), |
|
4101 | ('ValueRank', 'Int32'), |
|
4102 | ('ArrayDimensions', 'ListOfUInt32'), |
|
4103 | ('AccessLevel', 'Byte'), |
|
@@ 3991-4020 (lines=30) @@ | ||
3988 | 'UserWriteMask:' + str(self.UserWriteMask) + ')' |
|
3989 | ||
3990 | __repr__ = __str__ |
|
3991 | ||
3992 | ||
3993 | class ObjectAttributes(FrozenClass): |
|
3994 | ''' |
|
3995 | The attributes for an object node. |
|
3996 | ||
3997 | :ivar SpecifiedAttributes: |
|
3998 | :vartype SpecifiedAttributes: UInt32 |
|
3999 | :ivar DisplayName: |
|
4000 | :vartype DisplayName: LocalizedText |
|
4001 | :ivar Description: |
|
4002 | :vartype Description: LocalizedText |
|
4003 | :ivar WriteMask: |
|
4004 | :vartype WriteMask: UInt32 |
|
4005 | :ivar UserWriteMask: |
|
4006 | :vartype UserWriteMask: UInt32 |
|
4007 | :ivar EventNotifier: |
|
4008 | :vartype EventNotifier: Byte |
|
4009 | ''' |
|
4010 | ||
4011 | ua_types = [ |
|
4012 | ('SpecifiedAttributes', 'UInt32'), |
|
4013 | ('DisplayName', 'LocalizedText'), |
|
4014 | ('Description', 'LocalizedText'), |
|
4015 | ('WriteMask', 'UInt32'), |
|
4016 | ('UserWriteMask', 'UInt32'), |
|
4017 | ('EventNotifier', 'Byte'), |
|
4018 | ] |
|
4019 | ||
4020 | def __init__(self): |
|
4021 | self.SpecifiedAttributes = 0 |
|
4022 | self.DisplayName = LocalizedText() |
|
4023 | self.Description = LocalizedText() |