taurus taurus

Previous topic

TaurusAttrValue

Next topic

TaurusConfigValue

This Page

TaurusAttribute

Inheritance diagram of TaurusAttribute

class TaurusAttribute(name, parent, **kwargs)

Bases: taurus.core.taurusmodel.TaurusModel

activatePolling(period, unsubscribe_evts=False, force=False)

activate polling for attribute.

Parameters:period (int) – polling period (in miliseconds)
areStrValuesEqual(v1, v2)
classmethod buildModelName(parent_model, relative_name)

build an ‘absolute’ model name from the parent model and the ‘relative’ name. - If parent_model is a TaurusDevice, the return is a composition of the database model name and is device name - If parent_model is a TaurusAttribute, the relative name is ignored and the parent name is returned

changePollingPeriod(period)

change polling period to period miliseconds

cleanUp()
deactivatePolling(maintain_enabled=False)

unregister attribute from polling

decode(attr_value)
disablePolling()
displayValue(value)
enablePolling(force=False)
encode(value)
eventReceived(src, src_type, evt_value)

Method invoked by the configuration object when a configuration event is received. Default implementation propagates the event to all listeners.

getConfig()

Returns the current configuration of the attribute.

getDisplayDescrObj(cache=True)
getDisplayValue(cache=True)
getDisplayWriteValue(cache=True)
classmethod getNameValidator()
getPollingPeriod()

returns the polling period

getTaurusElementType()
getValueObj(cache=True)
getWritable(cache=True)
hasEvents()
isBoolean()
isNumeric()
isPolled()
isPollingActive()
isPollingEnabled()
isPollingForced()
isReadOnly(cache=True)
isReadWrite(cache=True)
isState()
isUsingEvents()
isWritable(cache=True)
isWrite(cache=True)
poll()
read(cache=True)
write(value, with_read=True)