Subarray Beam Device
This module implements the MCCS subarray beam device.
- class MccsSubarrayBeam(*args, **kwargs)
An implementation of a subarray beam Tango device for MCCS.
- Abort()
Abort any long-running command such as
Configure()
orScan()
.
- class AbortCommand(command_tracker, component_manager, callback, logger=None)
A class for MccsSubarrayBeam’s Abort() command.
- __init__(command_tracker, component_manager, callback, logger=None)
Initialise a new AbortCommand instance.
- Parameters:
command_tracker (
CommandTracker
) – the device’s command trackercomponent_manager (
SubarrayBeamComponentManager
) – 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 Abort() 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.
- 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 (
SubarrayBeamComponentManager
) – 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.
- AssignResources(argin)
Assign resources to the subarray_beam with all relevant parameters.
- Configure(argin)
Configure the subarray_beam with all relevant parameters.
- End()
End the scan block (deconfigure).
- EndScan()
End the scan.
- class InitCommand(*args, **kwargs)
A class for
MccsSubarrayBeam
’s Init command.The
do()
method below is called uponMccsSubarrayBeam
’s initialisation.- do()
Initialise the attributes and properties of the MccsSubarrayBeam.
State is managed under the hood; the basic sequence is:
Device state is set to INIT
The do() method is run
Device state is set to the OFF
- 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 current observation process.
To modify behaviour for this command, modify the do() method of the command class.
- ReleaseAllResources()
Release all resources.
- Restart()
Restart the subarray. That is, deconfigure and release all resources.
To modify behaviour for this command, modify the do() method of the command class.
- Scan(argin)
Start a scan on the subarray_beam.
- __init__(*args, **kwargs)
Initialise this device object.
- antennaWeights()
Return the antenna weights configured for this beam.
- channels()
Return the ids of the channels configured for this beam.
- create_component_manager()
Create and return a component manager for this device.
- Return type:
- Returns:
a component manager for this device.
- desiredPointing(values)
Set the desired pointing of this beam.
activation time (s) – value range 0-10^37
azimuth position (deg) – value range 0-360
azimuth speed (deg/s) – value range 0-10^37
elevation position (deg) – value range 0-90
elevation rate (deg/s) – value range 0-10^37
- firstSubarrayChannel()
Return the first logical channel allocated to the beam.
- Return type:
- Returns:
the first logical channel allocated to the beam.
- healthModelParams(argin)
Set the params for health transition rules.
- init_command_objects()
Initialise the command handlers for commands supported by this device.
- Return type:
- isBeamLocked(value)
Set a flag indicating whether the beam is locked or not.
- logicalBeamId(logical_beam_id)
Set the logical beam id.
- numberOfChannels()
Return the first logical channel allocated to the beam.
- Return type:
- Returns:
the first logical channel allocated to the beam.
- stationBeamIds(station_beam_ids)
Set the station beam ids.
- stationIds(station_ids)
Set the station ids.