Station Beam Component Manager
This module implements component management for station beams.
- class StationBeamComponentManager(beam_id, logger, max_workers, communication_state_callback, component_state_callback)
A component manager for a station beam.
- __init__(beam_id, logger, max_workers, communication_state_callback, component_state_callback)
Initialise a new instance.
- Parameters:
beam_id (
int
) – the beam id of this station beamlogger (
Logger
) – the logger to be used by this object.communication_state_callback (
Callable
[[CommunicationStatus
],None
]) – callback to be called when the status of the communications channel between the component manager and its component changescomponent_state_callback (
Callable
[...
,None
]) – a callback to be called whenever the state of the station beam changes.max_workers (
int
) – Maximum number of workers in the worker pool. Defaults to None.
- abort(task_callback=None)
Abort the observation.
- apply_pointing(task_callback=None, task_abort_event=None)
Submit the apply_pointing slow task.
This method returns immediately after it is submitted for execution.
- assign_resources(task_callback=None, *, interface=None, subarray_id, subarray_beam_id, aperture_id, station_id, station_trl, channel_blocks, hardware_beam, first_subarray_channel, number_of_channels)
Submit the assign_resources slow task.
This method returns immediately after it is submitted for execution.
- Parameters:
task_callback (
Optional
[Callable
]) – Update task state, defaults to Noneinterface (
Optional
[str
]) – the schema version this is running against.subarray_id (
int
) – ID of the subarray to which the beam belongssubarray_beam_id (
int
) – ID of the subarray beamaperture_id (
str
) – ID of the aperture, of the form “APx.y”station_id (
int
) – ID of the associated stationstation_trl (
int
) – TRL of the associated stationchannel_blocks (
list
[int
]) – List of the allocated station channel blockshardware_beam (
int
) – Allocated station hardware beamfirst_subarray_channel (
int
) – First channelnumber_of_channels (
int
) – Number of channels
- Return type:
- Returns:
A tuple containing a task status and a unique id string to identify the command
- property channels: list[list[int]]
Return the ids of the channels configured for this station beam.
- Returns:
the ids of the channels configured for this subarray beam.
- configure(task_callback=None, task_abort_event=None, *, interface=None, update_rate=1.0, logical_bands, weighting_key_ref='uniform', sky_coordinates)
Submit the configure slow task.
This method returns immediately after it is submitted for execution.
- Parameters:
task_callback (
Optional
[Callable
]) – Update task state, defaults to Nonetask_abort_event (
Optional
[Event
]) – Check for abort, defaults to Noneinterface (
Optional
[str
]) – the schema version this is running against.update_rate (
Optional
[float
]) – Update rate for pointing, default neverlogical_bands (
list
[dict
]) – Description of observed sky frequency bandsweighting_key_ref (
Optional
[str
]) – Antenna weights, default uniform,
- Return type:
- Returns:
A return code and a unique command ID.
- end(task_callback=None)
Submit the end slow task.
This method returns immediately after it is submitted for execution.
- end_scan(task_callback=None, task_abort_event=None)
Submit the EndScan slow task.
This method returns immediately after it is submitted for execution.
- property is_beam_locked: bool
Return whether the beam is locked.
- Returns:
whether the beam is locked
- obsreset(task_callback=None, task_abort_event=None)
Submit the obs_reset slow task.
This method returns immediately after it is submitted for execution.
- property pointing_delay_rate: list[float]
Return the pointing delay rate.
- Returns:
the pointing delay rate
- property power_state: ska_control_model.PowerState | None
Return my power state.
- Returns:
my power state
- release_all_resources(task_callback=None)
Submit the release__all_resources slow task.
This method returns immediately after it is submitted for execution.
- restart(task_callback=None, task_abort_event=None)
Submit the restart slow task.
This method returns immediately after it is submitted for execution.
- scan(task_callback=None, *, scan_id, start_time=None, duration=864000.0)
Submit the Scan slow task.
This method returns immediately after it is submitted for execution.
- Parameters:
- Return type:
- Returns:
Task status and response message
- property station_trl: str
Return the station TRL.
If the station TRL is not set, return the empty string.
- Returns:
the station TRL
- stop_communicating()
Cease monitoring the component, and break off all communication with it.
- Return type: