# `TaurusDevice`

digraph inheritance35013c4dca { bgcolor=transparent; rankdir=UD; ratio=compress; size="8.0, 12.0"; "Logger" [URL="taurus-Logger.html#taurus.Logger",color=dodgerblue1,fillcolor=white,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded,target="_top",tooltip="The taurus logger class. All taurus pertinent classes should inherit"]; "TaurusDevice" [URL="#taurus.core.taurusdevice.TaurusDevice",color=dodgerblue1,fillcolor=white,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded,target="_top",tooltip="A Device object. Different schemes may assign different roles, but"]; "TaurusModel" -> "TaurusDevice" [arrowsize=0.5,style="setlinewidth(0.5)"]; "TaurusModel" [URL="taurus.core.taurusmodel-TaurusModel.html#taurus.core.taurusmodel.TaurusModel",color=dodgerblue1,fillcolor=white,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded,target="_top"]; "Logger" -> "TaurusModel" [arrowsize=0.5,style="setlinewidth(0.5)"]; }

class TaurusDevice(name='', **kw)

  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

  Import from `taurus.core.taurusdevice` as:

      from taurus.core.taurusdevice import TaurusDevice

  classmethod buildModelName(parent_model, relative_name)

    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”.

  property description
  getChildObj(child_name)
  getDisplayDescrObj(cache=True)

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

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

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

  property 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.

    Returns:

      TaurusDevState.Ready

    Return type:

      TaurusDevState