alarmserver.alarmserver.Alarm

Package alarmserver :: Module alarmserver :: Class Alarm |
[hide private]
[frames] | no frames]

# Class Alarm

source code

An instance of this class represents a defined or active alarm.

Instance Methods | [hide private]
__init__(self, alarm_nr, text) | source code
__str__(self) | source code
acknowledge(self) Acknowledge the alarm by setting time_acknowledge and the acknowledged property. | source code
clear(self) Clear the alarm by setting back all instance variables to the init values. | source code

Instance Variables | [hide private]
int | alarm_nr unique alarm number, used as key value
int | counter number of times the alarm has been raised since active
bool | is_acknowledged shows if the alarm has been acknowledged
bool | is_active shows if the alarm is currently active
basestring | text alarm text
datetime | time_acknowledged time when alarm got acknowledged by the user
datetime | time_coming time the alarm started
datetime | time_going time the alarm finished