TaurusPollingTimer¶
-
class
TaurusPollingTimer(period, parent=None)[source]¶ Bases:
taurus.core.util.log.LoggerPolling timer manages a list of attributes that have to be polled in the same period
-
addAttribute(attribute, auto_start=True)[source]¶ Registers the attribute in this polling.
Parameters: - attribute (
TaurusAttribute) – the attribute to be added - auto_start (
bool) – if True (default) it tells the polling timer that it should startup as soon as there is at least one attribute registered.
- attribute (
-
containsAttribute(attribute)[source]¶ Determines if the polling timer already contains this attribute
Parameters: attribute ( TaurusAttribute) – the attributeReturn type: boolReturns: True if the attribute is registered for polling or False otherwise
-
getAttributeCount()[source]¶ Returns the number of attributes registered for polling
Return type: intReturns: the number of attributes registered for polling
-