ska_tmc_subarraynode.model package
Link to the TMC User documentation is here.
Submodules
component module
Path: src/ska_tmc_subarraynode/model/component.py
This module is used for maintaining and monitoring the components of subarray device.
- class ska_tmc_subarraynode.model.component.SubarrayComponent(logger=<Logger ska_tmc_subarraynode.model.component (WARNING)>)
Bases:
TmcComponentA component class for Subarray Node
It supports:
Maintaining a connection to its component
Monitoring its component
- property assigned_resources
Return the resources assigned to the component.
- property devices
Return the monitored devices.
- Returns
List of the monitored devices
- get_device(device_name)
Return the monitored device info by name.
- invoke_device_callback(dev_info)
This method invoke device callback
- Parameters
dev_info (
DeviceInfo) – device information object- Return type
- remove_device(device_names)
Remove a device from the list
- set_obs_callbacks(_update_assigned_resources_callback=None)
This method sets obs callback
- Parameters
_update_assigned_resources_callback – callback to update assigned resources
- Return type
- set_op_callbacks(_update_device_callback=None, _update_subarray_health_state_callback=None, _update_subarray_availability_status_callback=None)
This method update device callback and subarray health state
- Parameters
_update_device_callback – callback to update device
_update_subarray_health_state_callback – callback to update subarray health state
_update_subarray_availability_status_callback – callback to update subarray availability status
- Return type
- property subarray_availability
Return the aggregated status for subarray node availability
- Returns
the subarray availability
- Return type
- property subarray_health_state
Return the aggregated subarray health state
- Returns
the subarray health state
- Return type
HealthState
- to_dict()
Return result HealthState in dictionary
- Returns
Dictionary containing result HealthState in dictionary
- Return type
- update_device(dev_info)
Update (or add if missing) Device Information into the list of the component.
- Parameters
dev_info (DeviceInfo) – a DeviceInfo object
- Return type
enum module
Path: src/ska_tmc_subarraynode/model/enum.py
Enum Constant Values for Subarray Node
input module
Path: src/ska_tmc_subarraynode/model/input.py
This module provide Provides input parameters to both the telescopes
- class ska_tmc_subarraynode.model.input.InputParameter(changed_callback)
Bases:
objectMethod to Check TMC Subarray Devices
- property csp_subarray_dev_name
Return the CSP Subarray device name
- Returns
the CSP Subarray device name
- Return type
- property sdp_subarray_dev_name
Returns the SDP Subarray device name
- Returns
the SDP Subarray device name
- Return type
- property tmc_csp_sln_device_name
Return the CSP Subarray Leaf Node device names
- Returns
the CSP Subarray Leaf Node device names
- Return type
- property tmc_sdp_sln_device_name
Return the SDP Subarray Leaf Node device names
- Returns
the SDP Subarray Leaf Node device names
- Return type
- class ska_tmc_subarraynode.model.input.InputParameterLow(changed_callback)
Bases:
InputParameterMethod to Check TMC subarray Low Devices
- property mccs_subarray_dev_name
Returns the MCCS Subarray device name
- Returns
the MCCS Subarray device name
- Return type
- property tmc_mccs_sln_device_name
Returns the MCCS Subarray Leaf Node device name
- Returns
the MCCS Subarray Leaf Node device name
- Return type
- class ska_tmc_subarraynode.model.input.InputParameterMid(changed_callback)
Bases:
InputParameterMethod to Check TMC Subarray Mid Devices
- property dish_dev_names
Return the dish device names
- property tmc_dish_ln_device_names
Return the TM dish device names