taurus taurus

Previous topic

TaurusDevTree

Next topic

TaurusException

This Page

TaurusDevice

Inheritance diagram of TaurusDevice

class TaurusDevice(name, **kw)

Bases: taurus.core.taurusmodel.TaurusModel

SHUTDOWNS = (2, 3, 4)

A Device object representing an abstraction of the PyTango.DeviceProxy object in the taurus.core layer

addListener(listener)
classmethod buildModelName(parent_model, relative_name)

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

cleanUp()
eventReceived(event_src, event_type, event_value)
getAttribute(attrname)

Returns the attribute object given its name

getChildObj(child_name)
getDescription(cache=True)
getDisplayDescrObj(cache=True)
getDisplayValue(cache=True)
getHWObj()
getLockInfo(cache=False)
classmethod getNameValidator()
getSWState(cache=True)
getState(cache=True)
getStateObj()
classmethod getTaurusElementType()
getValueObj(cache=True)
isValidDev()

returns True if the device is in “working conditions

The default implementation always returns True. Reimplement it in subclasses if there are cases in which the device cannot be queried (e.g. in Tango, the TangoDevice object may exist even if there is not a real hardware device associated, in which case this method should return False)

lock(force=False)
poll(attrs)

Polling certain attributes of the device. This default implementation simply polls each attribute one by one

removeListener(listener)
unlock(force=False)