TangoAttribute
¶
-
class
TangoAttribute
(name, parent, **kwargs)[source]¶ Bases:
taurus.core.taurusattribute.TaurusAttribute
-
addListener
(listener)[source]¶ Add a TaurusListener object in the listeners list. If it is the first element and Polling is enabled starts the polling mechanism. If the listener is already registered nothing happens.
-
decode
(attr_value)[source]¶ Decodes a value that was received from PyTango into the expected representation
-
encode
(value)[source]¶ Translates the given value into a tango compatible value according to the attribute data type
-
push_event
(event)[source]¶ Method invoked by the PyTango layer when a change event occurs. Default implementation propagates the event to all listeners.
-
read
(cache=True)[source]¶ Returns the current value of the attribute. if cache is set to True (default) or the attribute has events active then it will return the local cached value. Otherwise it will read the attribute value from the tango device.
-