Controller¶
Classes
Controller¶
-
class
Controller(dclass, name)[source]¶ Bases:
sardana.tango.pool.PoolDevice.PoolDevice-
init(name)[source]¶ initialize the device once in the object lifetime. Override when necessary but always call the method from your super class
Parameters: name (str) – device name
-
ctrl¶
-
delete_device¶
-
init_device¶
-
dev_state()[source]¶ Calculates and returns the device state. Called by Tango on a read state request.
Returns: the device state Return type: DevState
-
dev_status()[source]¶ Calculates and returns the device status. Called by Tango on a read status request.
Returns: the device status Return type: str
-
get_dynamic_attributes()[source]¶ Returns the standard dynamic and fully dynamic attributes for this device. The return is a tuple of two dictionaries:
- standard attributes: caseless dictionary with key being the attribute name and value is a tuple of attribute name(str), tango information, attribute information
- dynamic attributes: caseless dictionary with key being the attribute name and value is a tuple of attribute name(str), tango information, attribute information
- tango information
- seq<
CmdArgType,AttrDataFormat,AttrWriteType> - attribute information
- attribute information as returned by the sardana controller
Returns: the standard dynamic and fully dynamic attributes Return type: seq< CaselessDict,CaselessDict>
-
read_DynamicAttribute(attr)[source]¶ Generic read dynamic attribute. Default implementation raises
NotImplementedErrorParameters: attr ( Attribute) – attribute to be readRaises: NotImplementedError
-
write_DynamicAttribute(attr)[source]¶ Generic write dynamic attribute. Default implementation raises
NotImplementedErrorParameters: attr ( Attribute) – attribute to be writtenRaises: NotImplementedError
-
ControllerClass¶
-
class
ControllerClass(name)[source]¶ Bases:
sardana.tango.pool.PoolDevice.PoolDeviceClass-
class_property_list= {}¶
-
device_property_list= {'Force_HW_Read': [<_mock._Mock object at 0x7fc23ece6fd0>, 'Force a hardware read of value even when in operation (motion/acquisition', False], 'Id': [<_mock._Mock object at 0x7fc23ece7190>, 'Internal ID', 0], 'Klass': [<_mock._Mock object at 0x7fc23ece7210>, '', None], 'Library': [<_mock._Mock object at 0x7fc23ece7210>, '', None], 'Role_ids': [<_mock._Mock object at 0x7fc23ece74d0>, '', []], 'Type': [<_mock._Mock object at 0x7fc23ece7210>, '', None]}¶
-
cmd_list= {'Abort': [[<_mock._Mock object at 0x7fc23ece7690>, ''], [<_mock._Mock object at 0x7fc23ece7690>, '']], 'CreateElement': [[<_mock._Mock object at 0x7fc23ece7590>, ''], [<_mock._Mock object at 0x7fc23ece7690>, '']], 'DeleteElement': [[<_mock._Mock object at 0x7fc23ece7210>, ''], [<_mock._Mock object at 0x7fc23ece7690>, '']], 'Restore': [[<_mock._Mock object at 0x7fc23ece7690>, ''], [<_mock._Mock object at 0x7fc23ece7690>, '']], 'Stop': [[<_mock._Mock object at 0x7fc23ece7690>, ''], [<_mock._Mock object at 0x7fc23ece7690>, '']]}¶
-
attr_list= {'ElementList': [[<_mock._Mock object at 0x7fc23ece7210>, <_mock._Mock object at 0x7fc23ece7850>, <_mock._Mock object at 0x7fc23ece7750>, 4096]], 'LogLevel': [[<_mock._Mock object at 0x7fc23ece7150>, <_mock._Mock object at 0x7fc23ece7810>, <_mock._Mock object at 0x7fc23ece77d0>], {'label': 'Log level', 'Display level': <_mock._Mock object at 0x7fc239f34f90>, 'Memorized': 'true'}]}¶
-