CbfSubarray Component Class

class ska_mid_cbf_tdc_mcs.subarray.subarray_component_manager.CbfSubarrayComponentManager(*args: Any, **kwargs: Any)[source]

Bases: CbfObsComponentManager

A component manager for the CbfSubarray device.

property vcc_ids: list[int]

Return the list of assigned VCC IDs

Returns:

list of assigned VCC IDs

property fsp_ids: list[int]

Return the list of assigned FSP IDs

Returns:

list of assigned VCC IDs

update_sys_param(sys_param_str: str) None[source]

Submit reload sys param operation to task executor queue

Parameters:

sys_param_str – sys params JSON string

is_assign_vcc_allowed() bool[source]

Check if AddReceptors command is allowed in current state

Returns:

True if command is allowed, otherwise False

assign_vcc(argin: list[str], task_callback: Callable | None = None) tuple[ska_control_model.task_status.TaskStatus, str][source]

Submit AddReceptors operation method to task executor queue.

Parameters:
  • argin – The list of DISH (receptor) IDs to be assigned

  • task_callback – callback for driving status of task executor’s current LRC task

Returns:

A tuple containing a return code and a string message indicating status. The message is for information purpose only.

Return type:

(TaskStatus, str)

is_release_vcc_allowed() bool[source]

Check if RemoveReceptors command is allowed in current state

Returns:

True if command is allowed, otherwise False

release_vcc(argin: list[str], task_callback: Callable | None = None) tuple[ska_control_model.task_status.TaskStatus, str][source]

Submit RemoveReceptors operation method to task executor queue.

Parameters:
  • argin – The list of DISH (receptor) IDs to be removed

  • task_callback – callback for driving status of task executor’s current LRC task

Returns:

A tuple containing a return code and a string message indicating status. The message is for information purpose only.

Return type:

(TaskStatus, str)

is_release_all_vcc_allowed() bool[source]

Check if RemoveAllReceptors command is allowed in current state

Returns:

True if command is allowed, otherwise False

release_all_vcc(task_callback: Callable | None = None) tuple[ska_control_model.task_status.TaskStatus, str][source]

Submit RemoveAllReceptors operation method to task executor queue.

Parameters:

task_callback – callback for driving status of task executor’s current LRC task

Returns:

A tuple containing a return code and a string message indicating status. The message is for information purpose only.

Return type:

(TaskStatus, str)

is_restart_allowed() bool[source]

Check if Restart command is allowed in current state

Returns:

True if command is allowed, otherwise False

restart(task_callback: Callable | None = None) tuple[ska_control_model.task_status.TaskStatus, str][source]

Submit Restart operation method to task executor queue.

Parameters:

task_callback – callback for driving status of task executor’s current LRC task

Returns:

A tuple containing a return code and a string message indicating status. The message is for information purpose only.

Return type:

(TaskStatus, str)