TaurusDevice

digraph inheritance35013c4dca { 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]; "TaurusDevice" [color=dodgerblue1,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded,tooltip="A Device object. Different schemes may assign different roles, but"]; "TaurusModel" -> "TaurusDevice" [arrowsize=0.5,style="setlinewidth(0.5)"]; "TaurusModel" [color=dodgerblue1,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded]; "Logger" -> "TaurusModel" [arrowsize=0.5,style="setlinewidth(0.5)"]; }
class TaurusDevice(name='', **kw)[source]

Bases: taurus.core.taurusmodel.TaurusModel

A Device object. Different schemes may assign different roles, but in general it is a parent of Taurus Attribute objects and a child of a Taurus Authority

classmethod buildModelName(parent_model, relative_name)[source]

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

Note: This is a basic implementation. You may need to reimplement this
for a specific scheme if it supports “useParentModel”.
description
getChildObj(child_name)[source]
getDisplayDescrObj(cache=True)[source]

A brief description of the model. Can be used as tooltip, for example

classmethod getNameValidator()[source]
classmethod getTaurusElementType()[source]
poll(attrs, asynch=False, req_id=None)[source]

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

state

Returns a scheme-agnostic representation of the state of a Taurus device. This default implementation always returns TaurusDevState.Ready

Subclasses of TaurusDevice may reimplement it to return other taurus.core.TaurusDevState enumeration values.

Return type:TaurusDevState
Returns:TaurusDevState.Ready