TaurusPollingTimer
- class TaurusPollingTimer(period, parent=None)[source]
Polling timer manages a list of attributes that have to be polled in the same period
Import from
taurus.core.tauruspollingtimer
as:from taurus.core.tauruspollingtimer import TaurusPollingTimer
- addAttribute(attribute, auto_start=None)[source]
Registers the attribute in this polling.
- Parameters:
attribute (taurus.core.taurusattribute.TaurusAttribute) – the attribute to be added
auto_start (bool) – deprecated. Ignored (always autostarts)
- containsAttribute(attribute)[source]
Determines if the polling timer already contains this attribute
- Parameters:
attribute (taurus.core.taurusattribute.TaurusAttribute) – the attribute
- Returns:
True if the attribute is registered for polling or False otherwise
- Return type:
- getAttributeCount()[source]
Returns the number of attributes registered for polling
- Returns:
the number of attributes registered for polling
- Return type:
- removeAttribute(attribute)[source]
Unregisters the attribute from this polling. If the number of registered attributes decreses to 0 the polling is stopped automatically in order to save resources.
- Parameters:
attribute (taurus.core.taurusattribute.TaurusAttribute) – the attribute to be added