-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
__init__.py
165 lines (126 loc) 路 3.25 KB
/
__init__.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
__all__ = ["BasicQualifiedValue", "QualityCode", "QualifiedValue"]
from java.lang import Object
from java.util import Date
class QualityCode(Object):
"""QualityCode contains a 32-bit integer code and optionally a
diagnostic string.
"""
Bad = None
Bad_AccessDenied = None
Bad_AggregateNotFound = None
Bad_DatabaseNotConnected = None
Bad_Disabled = None
Bad_Failure = None
Bad_GatewayCommOff = None
Bad_LicenseExceeded = None
Bad_NotConnected = None
Bad_NotFound = None
Bad_OutOfRange = 524
Bad_ReadOnly = None
Bad_Stale = None
Bad_ReferenceNotFound = None
Bad_TrialExpired = None
Bad_Unauthorized = None
Bad_Unsupported = None
Error = None
Error_Configuration = None
Error_CycleDetected = None
Error_DatabaseQuery = None
Error_Exception = None
Error_ExpressionEval = None
Error_Formatting = None
Error_InvalidPathSyntax = None
Error_IO = None
Error_ScriptEval = None
Error_TagExecution = None
Error_TimeoutExpired = None
Error_TypeConversion = None
Good = None
Good_Backfill = None
Good_Initial = None
Good_Overload = None
Good_Provisional = None
Good_Unspecified = None
Good_WritePending = None
Uncertain = None
Uncertain_LastKnownValue = None
Uncertain_InitialValue = None
Uncertain_DataSubNormal = None
Uncertain_EngineeringUnitsExceeded = None
Uncertain_IncompleteOperation = None
def __init__(self, *args):
pass
def derive(self, diagnosticMessage):
pass
def getCode(self):
pass
def getDiagnosticMessage(self):
pass
def getLevel(self):
pass
def getName(self):
pass
def isBad(self):
pass
def isBadOrError(self):
pass
def isError(self):
pass
def isGood(self):
pass
def isNotGood(self):
pass
def isUncertain(self):
pass
class Level(Object):
def __init__(self):
pass
def code(self, userCode):
pass
@staticmethod
def valueOf(name):
pass
@staticmethod
def values():
pass
class QualifiedValue(object):
"""Represents a value with a DataQuality & timestamp attached to
it.
"""
def getQuality(self):
raise NotImplementedError
def getTimestamp(self):
raise NotImplementedError
def getValue(self):
raise NotImplementedError
class BasicQualifiedValue(QualifiedValue, Object):
"""The basic implementation of QualifiedValue."""
quality = QualityCode.Bad_Stale
timestamp = Date()
value = None
def __init__(self, *arg):
pass
@staticmethod
def fromObject(obj):
pass
def getQuality(self):
return self.quality
def getTimestamp(self):
return self.timestamp
def getValue(self):
return self.value
def setQuality(self, code):
self.quality = code
def setTimestamp(self, timestamp):
self.timestamp = timestamp
def setValue(self, value):
self.value = value
@staticmethod
def unwrap(obj):
pass
@staticmethod
def updateTimestamp(copy):
pass
@staticmethod
def valueOf(obj):
pass