Subarray Device
This module implements MCCS functionality for monitoring and control of subarrays.
- class MccsSubarray(*args, **kwargs)
MccsSubarray is the Tango device class for the MCCS Subarray prototype.
- AbortDevice()
Abort any long-running command such as
Configure()
orScan()
.This will only cancel commands on this device, not further down the hierarchy, use Abort() for that use case.
- class AbortDeviceCommand(command_tracker, component_manager, callback, logger=None)
A class for MccsSubarray’s AbortDevice() command.
- __init__(command_tracker, component_manager, callback, logger=None)
Initialise a new AbortCommand instance.
- Parameters:
command_tracker (
CommandTracker
) – the device’s command trackercomponent_manager (
SubarrayComponentManager
) – the device’s component managercallback (
Callable
[[bool
],None
]) – callback to be called when this command states and finisheslogger (
Optional
[Logger
]) – a logger for this command object to yuse
- do(*args, **kwargs)
Stateless hook for AbortDevice() command functionality.
- Parameters:
- Return type:
- Returns:
A tuple containing a return code and a string message indicating status. The message is for information purpose only.
- class AssignResourcesCommand(command_tracker, component_manager, callback=None, logger=None)
A class for SKASubarray’s AssignResources() command.
- __init__(command_tracker, component_manager, callback=None, logger=None)
Initialise a new instance.
- Parameters:
command_tracker (
CommandTracker
) – the device’s command trackercomponent_manager (
SubarrayComponentManager
) – the device’s component managercallback (
Optional
[Callable
]) – an optional callback to be called when this command starts and finishes.logger (
Optional
[Logger
]) – a logger for this command to log with.
- class ConfigureCommand(command_tracker, component_manager, callback=None, logger=None)
A class for SKASubarray’s Configure() command.
- __init__(command_tracker, component_manager, callback=None, logger=None)
Initialise a new instance.
- Parameters:
command_tracker (
CommandTracker
) – the device’s command trackercomponent_manager (
SubarrayComponentManager
) – the device’s component managercallback (
Optional
[Callable
]) – an optional callback to be called when this command starts and finishes.logger (
Optional
[Logger
]) – a logger for this command to log with.
- End()
Deconfigure resources.
- EndScan()
Stop scanning.
- class InitCommand(*args, **kwargs)
Command class for device initialisation.
- do()
Initialise the attributes and properties of MccsSubarray.
- Return type:
- Returns:
A tuple containing a return code and a string message indicating status. The message is for information purpose only.
- ObsReset()
Reset the observation by returning to unconfigured state.
- ReleaseAllResources()
Release all resources from this subarray.
- ReleaseResources(argin)
Release resources from this subarray.
- Restart()
Restart the subarray by returning to unresourced state.
- Scan(argin)
Start scanning.
- class ScanCommand(command_tracker, component_manager, callback=None, logger=None)
A class for SKASubarray’s Scan() command.
- __init__(command_tracker, component_manager, callback=None, logger=None)
Initialise a new instance.
- Parameters:
command_tracker (
CommandTracker
) – the device’s command trackercomponent_manager (
SubarrayComponentManager
) – the device’s component managercallback (
Optional
[Callable
]) – an optional callback to be called when this command starts and finishes.logger (
Optional
[Logger
]) – a logger for this command to log with.
- SendTransientBuffer(argin)
Cause the subarray to send the requested segment of the transient buffer to SDP.
The requested segment is specified by:
Start time (timestamp: milliseconds since UNIX epoch)
End time (timestamp: milliseconds since UNIX epoch)
Dispersion measure
Together, these parameters narrow the selection of transient buffer data to the period of time and frequencies that are of interest.
Additional metadata, such as the ID of a triggering Scheduling Block, may need to be supplied to allow SDP to assign data ownership correctly (TBD75).
- __init__(*args, **kwargs)
Initialise this device object.
- assignedResources()
Return this subarray’s assigned resources.
- Return type:
- Returns:
this subarray’s assigned resources.
- create_component_manager()
Create and return a component manager for this device.
- Return type:
- Returns:
a component manager for this device.
- healthModelParams(argin)
Set the params for health transition rules.
- init_command_objects()
Initialise the command handlers for commands supported by this device.
- Return type:
- stationBeamTrls()
Return the TRLs of station beams assigned to this subarray.
- stationTrls()
Return the TRLs of stations assigned to this subarray.