TaurusPollingTimer

digraph inheritance93284e931d { rankdir=UD; ratio=compress; size="8.0, 12.0"; "Logger" [color=dodgerblue1,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded,tooltip="The taurus logger class. All taurus pertinent classes should inherit"]; "Object" -> "Logger" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Object" [color=dodgerblue1,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded]; "TaurusPollingTimer" [color=dodgerblue1,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded,tooltip="Polling timer manages a list of attributes that have to be polled in"]; "Logger" -> "TaurusPollingTimer" [arrowsize=0.5,style="setlinewidth(0.5)"]; }
class TaurusPollingTimer(period, parent=None)[source]

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)[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.
containsAttribute(attribute)[source]

Determines if the polling timer already contains this attribute

Parameters:attribute (TaurusAttribute) – the attribute
Return type:bool
Returns:True if the attribute is registered for polling or False otherwise
getAttributeCount()[source]

Returns the number of attributes registered for polling

Return type:int
Returns:the number of attributes registered for polling
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 (TaurusAttribute) – the attribute to be added
start()[source]

Starts the polling timer

stop()[source]

Stop the polling timer