-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
__init__.py
169 lines (112 loc) 路 3.08 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
166
167
168
169
from __future__ import print_function, unicode_literals
__all__ = ["AlarmEvent", "PyAlarmEvent", "PyAlarmEventImpl"]
from java.lang import Iterable
from org.python.core import PyObject
class AlarmEvent(Iterable):
def acknowledge(self, ackData):
raise NotImplementedError
def active(self, activeData):
raise NotImplementedError
def clear(self, clearData):
raise NotImplementedError
def getAckData(self):
raise NotImplementedError
def getActiveData(self):
raise NotImplementedError
def getClearedData(self):
raise NotImplementedError
def getDisplayPath(self):
raise NotImplementedError
def getId(self):
raise NotImplementedError
def getLabel(self):
raise NotImplementedError
def getLastEventState(self):
raise NotImplementedError
def getName(self):
raise NotImplementedError
def getNotes(self):
raise NotImplementedError
def getPriority(self):
raise NotImplementedError
def getSource(self):
raise NotImplementedError
def getState(self):
raise NotImplementedError
def isAcked(self):
raise NotImplementedError
def isCleared(self):
raise NotImplementedError
def isShelved(self):
raise NotImplementedError
def iterator(self):
pass
class PyAlarmEvent(AlarmEvent):
def acknowledge(self, ackData):
pass
def active(self, activeData):
pass
def clear(self, clearData):
pass
def contains(self, property):
raise NotImplementedError
def get(self, property):
raise NotImplementedError
def getAckData(self):
pass
def getActiveData(self):
pass
def getClearedData(self):
pass
def getDisplayPath(self):
pass
def getId(self):
pass
def getLabel(self):
pass
def getLastEventState(self):
pass
def getName(self):
pass
def getNotes(self):
pass
def getOrDefault(self, property):
raise NotImplementedError
def getOrElse(self, property, defaultValue):
raise NotImplementedError
def getPriority(self):
pass
def getSource(self):
pass
def getState(self):
pass
def isAcked(self):
pass
def isCleared(self):
pass
def isShelved(self):
pass
def set(self, property, value):
raise NotImplementedError
def setGlobal(self, property, value):
raise NotImplementedError
def sourceEvent(self):
raise NotImplementedError
class PyAlarmEventImpl(PyAlarmEvent, PyObject):
def __init__(self, event):
print(event)
super(PyAlarmEventImpl, self).__init__()
def contains(self, property):
pass
def get(self, property):
pass
def getOrDefault(self, property):
pass
def getOrElse(self, property, defaultValue):
pass
def set(self, property, value):
pass
def setGlobal(self, property, value):
pass
def sourceEvent(self):
pass