taurus taurus

Previous topic

TaurusOperation

Next topic

TaurusServInfo

This Page

TaurusPollingTimer

Inheritance diagram of TaurusPollingTimer

class TaurusPollingTimer(period, parent=None)

Bases: taurus.core.util.log.Logger

Polling timer manages a list of attributes that have to be polled in the same period

addAttribute(attribute, auto_start=True)

Registers the attribute in this polling.

Parameters:
  • attribute (:class:~`taurus.core.TaurusAttribute`) – the attribute to be added
  • auto_start (:class:~`bool`) – if True (default) it tells the polling timer that it should startup as soon as there is at least one attribute registered.
containsAttribute(attribute)

Determines if the polling timer already contains this attribute

Parameters:attribute (:class:~`taurus.core.TaurusAttribute`) – the attribute
Return type::class:~`bool`
Returns:True if the attribute is registered for polling or False otherwise
getAttributeCount()

Returns the number of attributes registered for polling

Return type::class:~`int`
Returns:the number of attributes registered for polling
removeAttribute(attribute)

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 (:class:~`taurus.core.TaurusAttribute`) – the attribute to be added
start()

Starts the polling timer

stop()

Stop the polling timer