FspModeSubarrayComponentManager Class
- class ska_mid_cbf_mcs.fsp_obs_mode.fsp_mode_subarray_component_manager.FspModeSubarrayComponentManager(*args: Any, **kwargs: Any)[source]
Bases:
CbfObsComponentManagerA base class component manager for the FspModeSubarray devices.
- fhs_health_state_callback(event_data: EventData | None) None[source]
Callback for FHS device healthState events.
- Parameters:
event_data – Tango attribute change event data
- start_communicating(*args: Any, admin_mode: AdminMode, **kwargs: Any) None[source]
Establish communication with the component, then start monitoring.
- stop_communicating(*args: Any, admin_mode: AdminMode, **kwargs: Any) None[source]
Thread for stop_communicating operation.
- update_delay_model(model: str) tuple[list[ResultCode], list[str]][source]
Update the FSP’s delay model (serialized JSON object)
- Parameters:
model – the delay model data
- Returns:
A list containing a return code and a string message indicating status. The message is for information purpose only.
- subarray_scan_start_time_rounded_callback(event_data: EventData | None)[source]
Callback for subarray<X>ScanStartTimeRounded from the FHS FSP.
Queues up events from the subscribed FHS FSP attribute subarray<X>ScanStartTimeRounded, and will be processed by _update_subarray_scan_start_time_rounded
- Parameters:
event_data (Optional[tango.EventData]) – Tango attribute change event data
- scan(params: str, task_callback: Callable | None = None, task_abort_event: Event | None = None) None[source]
Performs the Scan() command functionality
- Parameters:
params – JSON string with input parameters
task_callback – command tracker update_command_info callback
task_abort_event – task executor abort event
- Returns:
None
- end_scan(params: str, task_callback: Callable | None = None, task_abort_event: Event | None = None) None[source]
Performs the EndScan() command functionality
- Parameters:
params – JSON string with input parameters
task_callback – command tracker update_command_info callback
task_abort_event – task executor abort event
- Returns:
None
- go_to_idle(params: str, task_callback: Callable | None = None, task_abort_event: Event | None = None) None[source]
Execute observing state transition from READY to IDLE.
- Parameters:
params – JSON string with input parameters
task_callback – command tracker update_command_info callback
task_abort_event – task executor abort event
- Returns:
None
- abort(params: str, task_callback: Callable | None = None, task_abort_event: Event | None = None) None[source]
Abort the current scan operation.
Due to the obsState model trigger “abort_completed” always transitioning out of ABORTING to ABORTED, this thread must not return until the very end, otherwise the device could successfully transition to ABORTED without issuing a scan abort to sub-devices (refactor in response to SKB-796).
- Parameters:
params – JSON string with input parameters
task_callback – callback for driving status of task executor’s current LRC task
task_abort_event – event indicating AbortCommands has been issued
- Returns:
None
- obs_reset(params: str, task_callback: Callable | None = None, task_abort_event: Event | None = None) None[source]
Reset the scan operation from ABORTED or FAULT.
Due to the obsState model trigger “obsreset_invoked” only allowing a transition out of ABORTED and FAULT states, and “obsreset_completed” always transitioning out of RESETTING to IDLE, this thread must not return until the very end, otherwise the device could successfully transition to IDLE without properly deconfiguring (refactor in response to SKB-796).
- Parameters:
params – JSON string with input parameters
task_callback – callback for driving status of task executor’s current LRC task
task_abort_event – event indicating AbortCommands has been issued
- Returns:
None
- set_first_output_time(first_output_time: int, task_callback: Callable | None = None, task_abort_event: Event | None = None)[source]
Updates the FSP Mode Subarray’s firstOutputTime attribute and synchronizes firstOutputTime with the FHS FSP devices associated with this FSP Mode Subarray.
- Parameters:
first_output_time – The timestamp value that is to be set by the command
task_callback – callback for driving status of task executor’s current LRC task
task_abort_event – event indicating AbortCommands has been issued
- Returns:
None