Base class for all TANGO device-class class. A TANGO device-class class is a class where is stored all data/method common to all devices of a TANGO device class
add_wiz_class_prop (self, str, str, str) -> None
For internal usage only
Parameters: None Return: None
add_wiz_dev_prop (self, str, str, str) -> None
For internal usage only
Parameters: None Return: None
Creates a new device of the given class in the database, creates a new DeviceImpl for it and calls init_device (just like it is done for existing devices when the DS starts up)
An optional parameter callback is called AFTER the device is registered in the database and BEFORE the init_device for the newly created device is called
New in PyTango 7.1.2
Parameters : |
|
||||||
---|---|---|---|---|---|---|---|
Return : | None |
Deletes an existing device from the database and from this running server
- Throws PyTango.DevFailed:
- the device name doesn’t exist in the database
- the device name doesn’t exist in this DS.
New in PyTango 7.1.2
Parameters : |
|
||||
---|---|---|---|---|---|
Return : | None |
for internal usage only
for internal usage only
Create device(s) name list (for no database device server). This method can be re-defined in DeviceClass sub-class for device server started without database. Its rule is to initialise class device name. The default method does nothing.
Parameters : |
|
||
---|---|---|---|
Return : | None |
Default implementation does not do anything Overwrite in order to provide dynamic attributes
Parameters : |
|
||
---|---|---|---|
Return : | None |
For internal usage only
Parameters:
dev: (DeviceImpl) device object corba_dev_name: (str) CORBA device name. Default value is ‘Unused’ Return: None
Get a reference to a command object.
Parameters:
cmd_name: (str) command name Return: (PyTango.Command) PyTango.Command object
New in PyTango 8.0.0
Gets the list of PyTango.Command objects for this class
Parameters: None Return: (sequence<PyTango.Command>) list of PyTango.Command objects for this class New in PyTango 8.0.0
Gets the list of PyTango.DeviceImpl objects for this class
Parameters: None Return: (sequence<PyTango.DeviceImpl>) list of PyTango.DeviceImpl objects for this class
Get the TANGO device class documentation URL.
Parameters: None Return: (str) the TANGO device type name
Get the TANGO device class name.
Parameters: None Return: (str) the TANGO device class name.
Gets the TANGO device type name.
Parameters: None Return: (str) the TANGO device type name
register_signal (self, signo, own_handler=false) -> None
Register a signal. Register this class as class to be informed when signal signo is sent to to the device server process. The second version of the method is available only under Linux.
- Throws PyTango.DevFailed:
- if the signal number is out of range
- if the operating system failed to register a signal for the process.
Parameters:
signo: (int) signal identifier own_handler: (bool) true if you want the device signal handler to be executed in its own handler instead of being executed by the signal thread. If this parameter is set to true, care should be taken on how the handler is written. A default false value is provided Return: None
Set the TANGO device type name.
Parameters:
dev_type: (str) the new TANGO device type name Return: None