-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
__init__.py
39 lines (26 loc) · 904 Bytes
/
__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
__all__ = ["AlarmQueryResult", "AlarmQueryResultImpl"]
from com.inductiveautomation.ignition.common.alarming import PyAlarmEvent
class AlarmQueryResult(object):
"""This is the result of a query against the alarming system, for
both status and history.
It provides the results as a list, but also provides additional
helper functions for getting the event and associated data as a
dataset.
"""
def getAssociatedDate(self, uuid):
raise NotImplementedError
def getDataSet(self):
raise NotImplementedError
def getEvent(self, uuid):
raise NotImplementedError
class AlarmQueryResultImpl(AlarmQueryResult):
def __init__(self, *args):
pass
def __iter__(self):
yield PyAlarmEvent()
def getAssociatedDate(self, uuid):
pass
def getDataSet(self):
pass
def getEvent(self, uuid):
pass