ska_tmc_centralnode.model package

Submodules

ska_tmc_centralnode.model.component module

Component class for central node

class ska_tmc_centralnode.model.component.CentralComponent(*args: Any, **kwargs: Any)

Bases: TmcComponent

A component class for Central Node

It supports:

  • Maintaining a connection to its component

  • Monitoring its component

property desired_telescope_state: tango.DevState

Return desired telescope state

Returns:

desired telescope state

Return type:

DevState

property devices: List[tango.DevState]

Return the monitored devices.

Returns:

the monitored devices

Return type:

DeviceInfo[]

get_device(device_name: str) Optional[ska_tmc_common.device_info.DeviceInfo]

Return the monitored device info by name.

Parameters:

dev_name – name of the device

Returns:

the monitored device info

Return type:

DeviceInfo

property imaging: ModesAvailability

Return vlbi ModesAvailability

Returns:

vlbi ModesAvailability

Return type:

ModesAvailability

property pss: ModesAvailability

Return pss ModesAvailability

Returns:

pss ModesAvailability

Return type:

ModesAvailability

property pst: ModesAvailability

Return pss ModesAvailability

Returns:

pss ModesAvailability

Return type:

ModesAvailability

remove_device(dev_name: str) None

Remove a device from the list

Parameters:

dev_name – name of the device

set_op_callbacks(_update_device_callback=None, _update_telescope_state_callback=None, _update_telescope_health_state_callback=None, _update_tmc_op_state_callback=None, _update_imaging_callback=None, _telescope_availability_callback=None)

Sets Op state callback

property telescope_availability: str

Returns the telescope availability

Returns:

the telescope availability

Return type:

DevVarStringArray

property telescope_health_state: ska_control_model.HealthState

Return the telescope health state

Returns:

the telescope health state

Return type:

HealthState

property telescope_state: tango.DevState

Return the telescope state

Returns:

the telescope state

Return type:

DevState

property tmc_op_state: tango.DevState

Return the TMC operational State

Returns:

the TMC operational State

Return type:

DevState

to_dict()

Converts devinfo to python dictionary

to_json() str

Converts dictionary to json :return: Json string :rtype: str

update_device(dev_info: ska_tmc_common.device_info.DeviceInfo) None

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

Parameters:

dev_info – a DeviceInfo object

update_device_exception(device_info: ska_tmc_common.device_info.DeviceInfo, exception: str) None
Update (or add if missing) Device Information into the list of the

component.

Parameters:

dev_info – a DeviceInfo object

property vlbi: ModesAvailability

Return vlbi ModesAvailability

Returns:

vlbi ModesAvailability

Return type:

ModesAvailability

class ska_tmc_centralnode.model.component.MCCSDeviceInfo(*args: Any, **kwargs: Any)

Bases: DeviceInfo

Devicesinfo Class for MCCS Devices

from_dev_info(dev_info: ska_tmc_common.device_info.DeviceInfo) None

Device info to MCCSDeviceInfo

to_dict()

This method Converts Devinfo to Dict :return: resources json :rtype: dict

to_json()

This method Converts DevInfo to Json :return: Json string :rtype: str

ska_tmc_centralnode.model.component.dev_state_2_str(value: tango.DevState) str

Converts DevState to strings

ska_tmc_centralnode.model.enum module

Enum class for central node

class ska_tmc_centralnode.model.enum.ModesAvailability(value)

Bases: IntEnum

Avilable models enum class

available = 1
not_available = 0

ska_tmc_centralnode.model.input module

Input Parameter class for central node

class ska_tmc_centralnode.model.input.InputParameter(changed_callback: Callable)

Bases: object

Class for Input parameter this class is used to distinguish between between low and mid telescope

property csp_master_dev_name: str

Input parameter Return the CSP Master device name

Returns:

the CSP Master device name

Return type:

str

property csp_mln_dev_name: str

Input parameter Return the CSP Master device name

Returns:

the CSP Master device name

Return type:

str

property csp_subarray_dev_names: List[str]

Input parameter Return the CSP Subarray device names

Returns:

the CSP Subarray device names

Return type:

list

property sdp_master_dev_name: str

Input parameter Return the SDP Master device name

Returns:

the SDP Master device name

Return type:

str

property sdp_mln_dev_name: str

Input parameter Return the SDP Master device name

Returns:

the SDP Master device name

Return type:

str

property sdp_subarray_dev_names: List[str]

Input parameter Return the SDP Subarray device names

Returns:

the SDP Subarray device names

Return type:

tuple

property subarray_dev_names: List[str]

Input parameter Return the SubarrayNode device names

Returns:

the SubarrayNode device names

Return type:

tuple

update(component_manager) List[str]

Update method for input parameter

class ska_tmc_centralnode.model.input.InputParameterLow(changed_callback: Callable)

Bases: InputParameter

Class for input parameter for low.

property mccs_master_dev_name

Input parameter Return the MCCS Master device name

Returns:

the MCCS Master device name

Return type:

str

property mccs_mln_dev_name

Input parameter Return the MCCS Master Leaf Node device name

Returns:

the MCCS Master Leaf Node device name

Return type:

str

update(component_manager)

Update method for input parameter

class ska_tmc_centralnode.model.input.InputParameterMid(changed_callback: Callable)

Bases: InputParameter

Class for Input parameter Mid this class is used to distinguish between between low and mid telescope

property dish_dev_names

Input parameter Return the dish device names

Returns:

the TM dish device names

Return type:

tuple

property dish_leaf_node_dev_names: List[str]

Input parameter Return the TM dish device names

Returns:

the TM dish device names

Return type:

List

property dish_leaf_node_prefix: str

Input parameter Return the TM dish prefix

Returns:

the TM dish prefix

Return type:

str

property dish_master_identifier: str

Input parameter Return the TMC dish master device identifier

Returns:

the TMC dish master device identifier

Return type:

str

update(component_manager)

Update method for input parameters

Module contents