CBF Subarray Component

class ska_csp_lmc_common.subarray.cbf_subarray.CbfSubarrayComponent(fqdn: str, logger: Logger | None = None)

Bases: ObservingComponent

Class to specialize communication and control of the CBF subarray.

assignresources(resources_dict: Dict, callback: Callable | None = None) None

Specialize the assignresources method for the CBF subarray.

To be specialize in Mid and Low components

Parameters:
  • resources_dict – The dictionary with the resources to assign.

  • callback – the async callback to invoke.

releaseresources(resources_dict: Dict, callback: Callable | None = None) None

Specialize the releaseresources method for the CBF subarray.

To be specialize in Mid and Low components

Parameters:
  • resources_dict – The dictionary with the resources to remove.

  • callback – the async callback to invoke.

releaseallresources(callback: Callable | None = None)

Specialize the releaseallresources method for the CBF subarray.

To be specialize in Mid and Low components

Parameters:

callback – the async callback to invoke.

scan(scan_data: Dict, callback: Callable) None

Invoke the Scan command on the Mid CBF subarray.

Parameters:
  • scan_data – The dictionary with scan data

  • callback – Method invoked when the commands end on the target device

update_pst_json_configuration(original_dict: Dict, updated_info: Dict)

Update the configuration script adding the PST Beam(s) addresses. “To be specialized in Low/Mid if needed”

Parameters:
  • original_dict – the original input configuration.

  • updated_info – the updated configuration.

configure(resources_dict: Dict, callback: Callable | None = None) None

Specialization of the configure method from observing_component

To be specialize in Mid and Low components

Parameters:

callback – the async callback to invoke.

gotoidle(callback: Callable | None = None) None

Specialize the command gotoidle from observing_component.

To be specialize in Mid and Low components

Parameters:

callback – the async callback to invoke.

PSS Subarray Component

class ska_csp_lmc_common.subarray.pss_subarray.PssSubarrayComponent(fqdn: str, logger: Logger | None = None)

Bases: ObservingComponent

Class to specialize communication and control of the pss subarray.

assignresources(resources_dict: Dict, callback: Callable | None = None) None

Specialization of the method for the PSS Subarray.

To specialize in Mid and Low components.The current code is used only for testing purposes

Parameters:
  • resources_dict – the dictionary with the resources to assign.

  • callback – callable object invoked when command completes on the target TANGO Device.

releaseresources(resources_dict: Dict, callback: Callable | None = None) None

Specialization of the method for the PSS Subarray.

To specialize in Mid and Low components.The current code is used only for testing purposes

Parameters:
  • resources_dict – the dictionary with the resources to remove from the subarray.

  • callback – callable object invoked when command completes on the target TANGO Device.

releaseallresources(callback: Callable | None = None) None

Specialization of the method for the PSS Subarray.

To specialize in Mid and Low components.The current code is used only for testing purposes

Parameters:

callback – the async callback to invoke.

scan(argument: Dict, callback: Callable | None = None) None

Define the behavior of the Scan command for a component. Override this method as required.

Parameters:
  • argument – the input argument

  • callback – callable object invoked when command completes on the target TANGO Device.

PST Beam Component

class ska_csp_lmc_common.subarray.pst_beam.PstBeamComponent(fqdn: str, logger: Logger | None = None)

Bases: ObservingComponent

Adaptor class for a PstBeam device.

property subarray_id

Return the subarray membership.

set_component_disconnected()

This method is called when the CSP TANGO Device adminMode is set to OFFLINE.

In this case the CSP Device componentManager does no longer monitor the component and its information are reported as unknown. The component admin mode is not changed.

set_component_unknown(admin_mode_value: ska_control_model.AdminMode) None

Specialized version for observing sub-system components.

Parameters:

admin_mode_value – the value of the CSP sub-system device adminMode.

Returns:

None

set_component_offline(admin_mode_value: ska_control_model.AdminMode) None

Specialized version for observing sub-system components.

Parameters:

admin_mode_value – the value of the CSP sub-system device adminMode.

releaseresources(resources_dict: Dict, callback: Callable | None = None) None

Specialization of the releaseresources method for a PstBeam. The connection with the PstBeam Tango device is deleted.

Parameters:
  • resources_dict – the dictionary with the subarray ID from whih the PST Beam has to be removed.

  • callback – callable object invoked when command completes on the target TANGO Device.

property channel_block_configuration

Return the channel block configuration

releaseresources_succeeded()

ReleaseResources succeeded method for a PstBeam

releaseallresources(callback: Callable | None = None) None

Specialization of the method for a PstBeam.

Parameters:

callback – callable object invoked when command completes on the target TANGO Device.

releaseallresources_succeeded()

ReleaseAllResources succeeded method for a PstBeam

assignresources(resources_dict: Dict, callback: Callable | None = None) None

Specialization of the method for a PstBeam.

The connection with the PstBeam Tango device is established.

Parameters:
  • resources_dict – the dictionary with the subarray ID to which the PST Beam is assigned.

  • callback – callable object invoked when command completes on the target TANGO Device.

assignresources_succeeded()

Method invoked when the assignresources method completes with success.

configure(resources_dict: Dict, callback: Callable | None = None) None

Specialization of the method for a PstBeam.

Parameters:
  • resources_dict – the dictionary with the configuration for the PST beam.

  • callback – callable object invoked when command completes on the target TANGO Device.

scan(resources_dict: Dict, callback: Callable | None = None) None

Specialization of the method for a PstBeam.

Parameters:
  • resources_dict – the dictionary with the information to start the scan on a PST beam.

  • callback – callable object invoked when command completes on the target TANGO Device.