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

Class AlarmWord

source code

object --+
         |
        AlarmWord

Hold the value of an alarm word and raise alarms for each alarm bit.

Instance Methods [hide private]
 
__init__(self, alarmserver, offset=0)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
bool
_bit_value(self, n)
Return value of bit n of value
source code
 
check(self)
Check alarm word for active alarms identified by their bit number.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Instance Variables [hide private]
AlarmServer alarmserver
alarm server with the define alarms
int offset
offset added to the alarm number
Properties [hide private]
  value

Inherited from object: __class__

Method Details [hide private]

__init__(self, alarmserver, offset=0)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Parameters:
  • offset (int) - offset added to the alarm number
  • alarmserver (AlarmServer)
Overrides: object.__init__

_bit_value(self, n)

source code 

Return value of bit n of value

Parameters:
  • n (int) - bit number, starting with 0
Returns: bool
value of bit n

check(self)

source code 

Check alarm word for active alarms identified by their bit number. Call alarm_coming function of the alarmserver for each active alarm.


Property Details [hide private]

value

Get Method:
unreachable.value(self)
Set Method:
unreachable.value(self, value)