ska_tmc_subarraynode.model package

Submodules

ska_tmc_subarraynode.model.component module

class ska_tmc_subarraynode.model.component.DishDeviceInfo(*args: Any, **kwargs: Any)

Bases: ska_tmc_common.device_info.ska_tmc_common.device_info.DeviceInfo._name

from_dev_info(dishDeviceInfo)
to_dict()
to_json()
class ska_tmc_subarraynode.model.component.SdpSubarrayDeviceInfo(*args: Any, **kwargs: Any)

Bases: ska_tmc_common.device_info.ska_tmc_common.device_info.SubArrayDeviceInfo._name

from_dev_info(sdpSubarrayDeviceInfo)
to_dict()
to_json()
class ska_tmc_subarraynode.model.component.SubarrayComponent(*args: Any, **kwargs: Any)

Bases: ska_tmc_common.tmc_component_manager.ska_tmc_common.tmc_component_manager.TmcComponent._name

A 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.

Returns

the resources assigned to the component

Return type

list of str

property devices

Return the monitored devices.

Returns

the monitored devices

Return type

DeviceInfo[]

get_device(dev_name)

Return the monitored device info by name.

Parameters

dev_name – name of the device

Returns

the monitored device info

Return type

DeviceInfo

remove_device(dev_name)

Remove a device from the list

Parameters

dev_name – name of the device

property sb_id

Return the Sb_id

Returns

the Sb_id

Return type

str

property scan_duration

Return the duration of scan

Returns

the scan duration

Return type

int

property scan_id

Return the Scan id

Returns

the Scan id

Return type

str

set_obs_callbacks(_update_assigned_resources_callback=None)
set_op_callbacks(_update_device_callback=None, _update_subarray_health_state_callback=None)
property subarray_health_state

Return the aggregated subarray health state

Returns

the subarray health state

Return type

HealthState

to_dict()
update_device(dev_info)

Update (or add if missing) Device Information into the list of the component.

Parameters

dev_info – a DeviceInfo object

update_device_exception(dev_info, exception)

Update (or add if missing) Device Information into the list of the component.

Parameters

dev_info – a DeviceInfo object

ska_tmc_subarraynode.model.enum module

class ska_tmc_subarraynode.model.enum.PointingState(value)

Bases: enum.IntEnum

An enumeration.

NONE = 0
READY = 1
SCAN = 4
SLEW = 2
TRACK = 3
UNKNOWN = 5

ska_tmc_subarraynode.model.input module

class ska_tmc_subarraynode.model.input.InputParameter(changed_callback)

Bases: object

update(component_manager)
class ska_tmc_subarraynode.model.input.InputParameterLow(changed_callback)

Bases: ska_tmc_subarraynode.model.input.InputParameter

property mccs_subarray_dev_name

Return the MCCS Subarray device name

Returns

the MCCS Subarray device name

Return type

str

property tm_leaf_mccs_subarray_dev_name

Return the TM Leaf MCCS Subarray device name

Returns

the TM Leaf MCCS Subarray device name

Return type

str

update(component_manager)
class ska_tmc_subarraynode.model.input.InputParameterMid(changed_callback)

Bases: ska_tmc_subarraynode.model.input.InputParameter

property csp_subarray_dev_name

Return the CSP Subarray device name

Returns

the CSP Subarray device name

Return type

str

property dish_dev_names

Return the dish device names

Returns

the TM dish device names

Return type

list

property sdp_subarray_dev_name

Returns the SDP Subarray device name

Returns

the SDP Subarray device name

Return type

str

property tm_leaf_csp_subarray_dev_name

Return the CSP Subarray Leaf Node device names

Returns

the CSP Subarray Leaf Node device names

Return type

str

property tm_leaf_dish_dev_names

Return the TM dish device names

Returns

the TM dish device names

Return type

list

property tm_leaf_sdp_subarray_dev_name

Return the SDP Subarray Leaf Node device names

Returns

the SDP Subarray Leaf Node device names

Return type

str

update(component_manager)

Module contents