MID CSP.LMC FSP Processing Mode Capability Device

class ska_csp_lmc_mid.mid_capability_fsp_device.MidCspCapabilityFsp(*args: Any, **kwargs: Any)

Bases: SKABaseDevice

Mid CSP Capability FSP device Aggregates FSP information and presents to higher level devices

class InitCommand(*args: Any, **kwargs: Any)

Bases: InitCommand

A class for the SKABaseDevice’s init_device() “command”.

do()

Stateless hook for device initialisation.

Returns:

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

Return type:

(ResultCode, str)

init_device()

Initialise the tango device after startup.

initialize_dynamic_attributes()

This method will be called automatically by the device_factory for each device. Within this method all the dynamic attributes are created. This method is called once, when the device starts

delete_device() None

Hook to delete resources allocated in init_device.

This method allows for any memory or other resources allocated in the init_device method to be released. This method is called by the device destructor and by the device Init command.

set_component_manager(cm_configuration: ska_csp_lmc_common.manager.manager_configuration.ComponentManagerConfiguration) MidFspCapabilityComponentManager

Configure the ComponentManager for the CSP Capability FSP device.

Parameters:

cm_configuration – A class with all the device properties accessible as attributes

Returns:

The CSP Capability FSP ComponentManager

create_component_manager() MidFspCapabilityComponentManager

Override the base method.

Returns:

The CSP ControllerComponentManager

update_device_attribute(attr_name: str, attr_value: Any) None

General method invoked by the ComponentManager to push an event on a device attribute properly configured to push events from the device.

Parameters:
  • attr_name – the TANGO attribute name

  • attr_value – the attribute value

fspsDeployed() int

Read number of deployed FSPs

fspFqdn() List[str]

Read list of fqdn for FSPs

fspFunctionMode() List[str]

Read list of function mode for FSPs

fspState() List[tango.DevState]

Read list of state for FSPs

fspHealthState() List[str]

Read list of health state for FSPs

fspAdminMode() List[str]

Read list of admin mode for FSPs

fspAvailable() List[int]

Read list of available FSPs IDs, meaning function_mode=idle and state=ON

fspUnavailable() List[int]

Read list of unavailable FSPs IDs, meaning state!=ON

fspPss() List[int]

Read list of FSPs IDs which are in function_mode=PSS

fspPst() List[int]

Read list of FSPs IDs which are in function_mode=PST

fspCorrelation() List[int]

Read list of FSPs IDs which are in function_mode=Correlation

fspsSubarrayMembership() List[str]

Return the FSPs subarray membership as a List of strings. Each string contains the IDs of the subarrays to which a FSP belongs to.

fspsFqdnAssigned() str

Return the FQDNs of the FSPs assigned to subarrays.

The value is a matrix of dim 16*4 where in each row is reported the list of the FQDNs of the FSPs belonging to the subarray whose id = nrow * 1

fspJson() str

Read json which contain raw FSP information.

isCommunicating() bool

Whether the TANGO device is communicating with the controlled component.

adminMode(value: ska_control_model.AdminMode) None

Set the Admin Mode of the device.

Parameters:

value – Admin Mode of the device.

Raises:

ValueError – for unknown adminMode

fspsSwVersion() List[str]

Return the online fsps software Version attribute list.

Returns:

the online fsps software Version attribute list.

fspsHwVersion() List[str]

Return the online fsps hardware Version attribute list.

Returns:

the online fsps hardware Version attribute list.

fspsFwVersion() List[str]

Return the online fsps firmare Version attribute list.

Returns:

the online fsps firmware Version attribute list.