Fsp Class
- class ska_mid_cbf_mcs.fsp.fsp_device.Fsp(*args: Any, **kwargs: Any)[source]
Bases:
CbfDeviceFsp TANGO device class for the prototype
- FspCorrSubarrayFQDNs
Fully Qualified Domain Names (FQDNs) for all of the MCS FspCorrSubarray devices for this FSP.
- FspPstSubarrayFQDNs
Fully Qualified Domain Names (FQDNs) for all of the MCS FspPstSubarray devices for this FSP.
- FhsFspModeControllerFQDNs
Fully Qualified Domain Names (FQDNs) for all of the FHS FSPModeManagementController devices for this FSP.
- FhsFspCorrControllerFQDNs
Fully Qualified Domain Names (FQDNs) for all of the FHS FspCorrController devices for this FSP.
- obs_mode_signal: AttrSignal[ObsMode]
Signal for the obsMode attribute. Values are emitted for this signal whenever a client changes the attribute.
- subarray_membership_signal: AttrSignal[list[int]]
Signal for the subarrayMembership attribute. Values are emitted for this signal whenever a client changes the attribute.
- corner_turner_started_signal: AttrSignal[bool]
Signal for the cornerTurnerStarted attribute. Values are emitted for this signal whenever a client changes the attribute.
- obsMode: attribute_from_signal
obsMode device attribute
- subarrayMembership: attribute_from_signal
subarrayMembership device attribute
- cornerTurnerStarted: attribute_from_signal
cornerTurnerStarted device attribute
- is_UpdateObsMode_allowed(request_type: LRCReqType = LRCReqType.ENQUEUE_REQ) bool[source]
Check if UpdateObsMode is allowed.
- Parameters:
request_type – if LRCReqType.ENQUEUE_REQ, the task has only been submitted to the LRC queue, and this method will always return True; otherwise, task has been popped off the LRC queue, and the command allowance can be checked.
- Returns:
True if allowed, else False.
- UpdateObsMode(obs_mode_config: str) tuple[list[ResultCode], list[str]][source]
Used by subarray devices to update the observing mode and subarrayMembership of this FSP.
If the requested ObsMode is not IDLE, observing mode will only be set if this FSP is currently in ObsMode.IDLE or already in the requested ObsMode. Subarray ID will only be added to subarrayMembership if the requesting subarray has not already been added.
If IDLE is requested, the observing mode will only be set if this FSP does not belong to any other subarrays. Whether or not the observing mode is set to IDLE, the subarray ID will be removed from subarrayMembership.
- Parameters:
obs_mode_config – a JSON-formatted string containing a subarray ID to be added to membership and the ObsMode of the requested configuration.
- Returns:
tuple containing a return code and a unique command identifier
- create_component_manager() FspComponentManager[source]
Create and return a component manager for this device.
- Returns:
a component manager for this device.