taurus taurus

Previous topic

PyImageViewer

Next topic

TangoAttributeEventListener

This Page

TangoAttribute

Inheritance diagram of TangoAttribute

class TangoAttribute(name, parent, **kwargs)

Bases: taurus.core.taurusattribute.TaurusAttribute

addListener(listener)

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)

Decodes a value that was received from PyTango into the expected representation

encode(value)

Translates the given value into a tango compatible value according to the attribute data type

classmethod factory()
getDisplayValue(cache=True)
getNewOperation(value)
isBoolean(inc_array=False)
isFloat(inc_array=False)
isInformDeviceOfErrors()
isInteger(inc_array=False)
isNumeric(inc_array=False)
isState()
isUsingEvents()
poll(**kwargs)

Notify listeners when the attribute has been polled

push_event(event)

Method invoked by the PyTango layer when a change event occurs. Default implementation propagates the event to all listeners.

read(cache=True)

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.

removeListener(listener)

Remove a TaurusListener from the listeners list. If polling enabled and it is the last element the stop the polling timer. If the listener is not registered nothing happens.

setConfigEx(config)
write(value, with_read=True)

Write the value in the Tango Device Attribute