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: Callable[[CommunicationStatus], None] | None = None, component_state_callback: Callable[[...], None] | 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: Logger | None = None, validator: ArgumentValidator | None = None)[source]
A class for the SKAObsDevice’s init_device() “command”.
- do(*args: Any, **kwargs: Any) tuple[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.
- obsState() ObsState
Read the Observation State of the device.
- Returns:
the current ObsState enum value
- commandedObsState() ObsState
Read the last commanded stable Observation State of the device.
Initial value is EMPTY. The only stable (nontransitional) state values it can change to is EMPTY, IDLE, READY or ABORTED following the start of any of the SKASubarray device’s long running commands.
- Returns:
the commanded ObsState enum value.