Antenna Component Manager
This module implements an component manager for an MCCS antenna Tango device.
- class AntennaComponentManager(*args: Any, **kwargs: Any)[source]
A component manager for managing the component of an MCCS antenna Tango device.
Since there is no way to monitor and control an antenna directly, this component manager simply proxies certain commands to the FieldStation and/or tile Tango device.
- __init__(field_station_name: str, antenna_id: int, tile_trl: str, tile_channels: tuple[int, int], logger: Logger, communication_state_callback: Callable[[ska_control_model.CommunicationStatus], None], component_state_callback: Callable[[...], None]) None[source]
Initialise a new instance.
- Parameters:
field_station_name – the TRL of the Tango device for this antenna’s FieldStation.
antenna_id – the logical id of this antenna (1-256)
tile_trl – the TRL of the Tango device for this antenna’s tile.
tile_channels – the tile ADC channels containing Y and X signal from this antenna.
logger – a logger for this object to use
communication_state_callback – callback to be called when the status of the communications channel between the component manager and its component changes
component_state_callback – callback to be called when the component state changes
- configure(task_callback: Callable | None = None, *, interface: str | None = None, antenna_config: dict, tile_config: dict) tuple[ska_control_model.TaskStatus, str][source]
Submit the configure method.
This method returns immediately after it submitted self._configure for execution.
- Parameters:
interface – the schema version this is running against.
antenna_config – antenna config
tile_config – tile config
task_callback – Update task state, defaults to None
- Returns:
a result code and response string
- off(task_callback: Callable | None = None) tuple[ska_control_model.TaskStatus, str][source]
Submit the off slow task.
This method returns immediately after it submitted self._off for execution.
- Parameters:
task_callback – Update task state, defaults to None
- Returns:
task status and message
- on(task_callback: Callable | None = None) tuple[ska_control_model.TaskStatus, str][source]
Submit the on slow task.
This method returns immediately after it submitted self._on for execution.
- Parameters:
task_callback – Update task state, defaults to None
- Returns:
task status and message
- property power_state: ska_control_model.PowerState | None
Return my power state.
- Returns:
my power state
- property power_state_lock: RLock
Return the power state lock of this component manager.
- Returns:
the power state lock of this component manager.
- reset(task_callback: Callable | None = None) tuple[ska_control_model.TaskStatus, str][source]
Reset the antenna; this is not implemented.
This raises NotImplementedError because the antenna is passive hardware and cannot meaningfully be reset.
- Parameters:
task_callback – Update task state, defaults to None
- Raises:
NotImplementedError – because the antenna’s power state is not controlled via the Tile device; it is controlled via the FieldStation device.
- standby(task_callback: Callable | None = None) tuple[ska_control_model.TaskStatus, str][source]
Put the antenna into standby state; this is not implemented.
This raises NotImplementedError because the antenna has no standby state.
- Parameters:
task_callback – Update task state, defaults to None
- Raises:
NotImplementedError – because the antenna has no standby state.
- start_communicating() None[source]
Establish communication with the component, then start monitoring.
- stop_communicating() None[source]
Cease monitoring the component, and break off all communication with it.