Obs Device
SKAObsDevice.
A generic base device for Observations for SKA. It inherits SKABaseDevice class. Any device implementing an obsMode will inherit from SKAObsDevice instead of just SKABaseDevice.
- class ObsDeviceComponentManager(logger: Logger, communication_state_callback: Optional[Callable[[CommunicationStatus], None]] = None, component_state_callback: Optional[Callable[[...], None]] = None, **state: Any)[source]
A stub for an observing device component manager.
- class SKAObsDevice(*args: Any, **kwargs: Any)[source]
A generic base device for Observations for SKA.
- class InitCommand(device: tango.server.Device, logger: Optional[Logger] = None, validator: Optional[ArgumentValidator] = None)[source]
A class for the SKAObsDevice’s init_device() “command”.
- do(*args: Any, **kwargs: Any) tuple[ska_control_model.result_code.ResultCode, str][source]
Stateless hook for device initialisation.
- Parameters:
args – positional arguments to the command. This command does not take any, so this should be empty.
kwargs – keyword arguments to the command. This command does not take any, so this should be empty.
- Returns:
A tuple containing a return code and a string message indicating status. The message is for information purpose only.
- create_component_manager() ComponentManagerT[source]
Create and return a component manager for this device.
- Raises:
NotImplementedError – because it is not implemented.