ska_tmc_centralnode package

Subpackages

Submodules

ska_tmc_centralnode.central_node module

Central Node is a coordinator of the complete M&C system. Central Node implements the standard set of state and mode attributes defined by the SKA Control Model.

class ska_tmc_centralnode.central_node.AbstractCentralNode(*args: Any, **kwargs: Any)

Bases: TMCBaseDevice

Central Node is a coordinator of the complete Telescope system. Central Node is inherited from TMCBaseDevice class which is further inherited from SKABaseDevice class. TMCBaseDevice class contains attributes common to CentralNode and SubarrayNode.

class InitCommand(*args: Any, **kwargs: Any)

Bases: InitCommand

A class for the TMC CentralNode’s init_device() method.

do()

Initializes the attributes and properties of the Central Node.

Returns:

A tuple containing a return code and a string message indicating status.The message is for information purpose only.

Return type:

(ReturnCode, str)

Off()

This command invokes SetStandbyLPMode() command on DishLeafNode, TelescopeOff() command on CspMasterLeafNode and SdpMasterLeafNode.

TelescopeOff()

This command invokes SetStandbyLPMode() command on DishLeafNode, Off() command on CspMasterLeafNode and SdpMasterLeafNode.

always_executed_hook()

always executed hook method

create_component_manager()

Create component manager object for command invocation.

delete_device()
init_command_objects()

Initialises the command handlers for commands supported by this device.

is_AssignResources_allowed()

Checks whether this command is allowed to be run in current device state.

Returns:

True if this command is allowed to be run in current device state

Return type:

boolean

is_Off_allowed()

Checks whether this command is allowed to be run in current device state.

Returns:

True if this command is allowed to be run in current device state.

Return type:

boolean

is_On_allowed()

Checks whether this command is allowed to be run in current device state.

Returns:

True if this command is allowed to be run in current device state.

Return type:

boolean

is_ReleaseResources_allowed()
Checks whether ReleaseResources command is allowed to be run in

current device state.

Returns:

True if ReleaseResources command is allowed to be run in current device state.

Return type:

boolean

is_SetAdminMode_allowed() bool

Check if the SetAdminMode command is allowed in the current device state.

Returns:

True if the command is allowed, otherwise False.

Return type:

bool

is_Standby_allowed()

Checks whether this command is allowed to be run in current device state.

Returns:

True if this command is allowed to be run in current device state.

Return type:

boolean

is_TelescopeOff_allowed()

Checks whether this command is allowed to be run in current device state.

Returns:

True if this command is allowed to be run in current device state.

Return type:

boolean

is_TelescopeOn_allowed()
Checks whether this command is allowed to be run in current device

state.

Returns:

True if this command is allowed to be run in current device state.

Return type:

boolean

is_TelescopeStandby_allowed()

Checks whether this command is allowed to be run in current device state.

Returns:

True if this command is allowed to be run in current device state.

Return type:

boolean

read_desiredTelescopeState()

Read Desired TelescopeState

read_isAdminModeEnabled() bool

Return the isAdminModeEnabled attribute value

read_telescopeAvailability()

Returns telescope availability

read_telescopeHealthState()

Read value of telescopeHealthState

read_telescopeState()

Reads telescopeState

read_tmOpState()

Return the tmOpState attribute.

transformedInternalModel_read()

Tranformed InternalModelRead

update_device_callback(devInfo)

Update device callabacks

update_telescope_availability_callback(telescope_availability)

Update device availabililty callabacks

update_telescope_health_state_callback(telescope_health_state)

Update Telescope health state callabacks

update_telescope_state_callback(telescope_state)

Update telescope state callback

update_tmc_op_state_callback(tmc_op_state)

Update tmc operational state callabacks

write_isAdminModeEnabled(value: bool)

Set the value of isAdminModeEnabled attribute

ska_tmc_centralnode.central_node_low module

Central Node is a coordinator of the complete M&C system. Central Node implements the standard set of state and mode attributes defined by the SKA Control Model.

class ska_tmc_centralnode.central_node_low.CentralNodeLow(*args: Any, **kwargs: Any)

Bases: AbstractCentralNode

Central Node is a coordinator of the complete Telescope system

class InitCommand(*args: Any, **kwargs: Any)

Bases: InitCommand

A class for the TMC CentralNode’s init_device() method.

do()

Initializes the attributes and properties of the Central Node.

Returns:

A tuple containing a return code and a string message indicating status.The message is for information purpose only.

Return type:

(ReturnCode, str)

create_component_manager()

Create component manager object for command invocation.

ska_tmc_centralnode.central_node_low.main(args=None, **kwargs)

Runs the CentralNode. :param args: Arguments internal to TANGO

Parameters:

kwargs – Arguments internal to TANGO

Returns:

CentralNode TANGO object.

ska_tmc_centralnode.central_node_mid module

Central Node is a coordinator of the complete M&C system. Central Node implements the standard set of state and mode attributes defined by the SKA Control Model.

class ska_tmc_centralnode.central_node_mid.CentralNodeMid(*args: Any, **kwargs: Any)

Bases: AbstractCentralNode

Central Node is a coordinator of the complete Telescope system

class InitCommand(*args: Any, **kwargs: Any)

Bases: InitCommand

A class for the TMC CentralNode’s init_device() method.

do()

Initializes the attributes and properties of the Central Node.

Returns:

A tuple containing a return code and a string message indicating status.The message is for information purpose only.

Return type:

(ReturnCode, str)

create_component_manager()

Create component manager object for command invocation.

dishvccvalidation_callback(dishvccvalidationstatus)

Update DishVccValidationStatus callbacks

init_command_objects()

Initialises the command handlers for commands supported by this device.

invoke_load_dish_cfg_command_callback()

This callback is called when dishVccValidationResult is Unknown and Central Node needs to load dish cfg on csp

is_LoadDishCfg_allowed()

Checks whether LoadDishCfg command is allowed to be run in current device state.

Return type:

boolean

read_DishVccValidationStatus()

Return the DishVccValidationStatus

read_imaging()

Read Attribute for imaging

read_isDishVccConfigSet()

Return the isDishVccConfigSet attribute.

read_pss()

Read attribute for pss

read_pst()

Read attribute value of pst

read_vlbi()

Read attribute value of vlbi

update_dishvccconfig_callback(isdishvccconfigset)

Update isDishVccConfigSet callbacks

update_imaging_callback(imaging)

Callback for Update imaging

ska_tmc_centralnode.central_node_mid.main(args=None, **kwargs)

Runs the CentralNode. :param args: Arguments internal to TANGO

Parameters:

kwargs – Arguments internal to TANGO

Returns:

CentralNode TANGO object.

ska_tmc_centralnode.input_validator module

Input Validator class for central node

class ska_tmc_centralnode.input_validator.AssignResourceValidator(subarray_list, receptor_list, dish_leaf_node_prefix, logger=<Logger ska_tmc_centralnode.input_validator (WARNING)>)

Bases: object

Class to validate the input string of AssignResources command of Central Node

loads(input_string)

Validates the input string received as an argument of AssignResources command. If the request is correct, returns the deserialized JSON object. The ska-tmc-cdm is used to validate the JSON.

Param:

input_string: A JSON string

Returns:

Deserialized JSON object if successful.

Throws:

InvalidJSONError: When the JSON string is not formatted properly.

SubarrayNotPresentError: If the subarray is not present.

ResourceNotPresentError: When a receptor in the receptor_id_list is not present.

class ska_tmc_centralnode.input_validator.ReleaseResourceValidator(logger=<Logger ska_tmc_centralnode.input_validator (WARNING)>)

Bases: object

Class to validate the input string of ReleaseResources command of Central Node

loads(input_string)

Validates the input string received as an argument of ReleaseResources command. If the request is correct, returns the deserialized JSON object. The ska-tmc-cdm is used to validate the JSON.

Param:

input_string: A JSON string

Returns:

Deserialized JSON object if successful.

Throws:

InvalidJSONError: When the JSON string is not formatted properly.

SubarrayNotPresentError: If the subarray is not present.

ResourceNotPresentError: When a receptor in the receptor_id_list is not present.

ska_tmc_centralnode.release module

Release information for Python Package

Module contents

CentralNode

Central Node is a coordinator of the complete M&C system.

Properties in Central Node

Property Name

Data Type

Description

TMCSubarrayNodes

DevStringArray

List of TMC Mid Subarray Node devices

CspMasterLeafNodeFQDN

DevString

FQDN of the CSP Master Leaf Node device

CspMasterFQDN

DevString

FQDN of the CSP Master device

SdpMasterLeafNodeFQDN

DevString

FQDN of the SDP Master Leaf Node device

SdpMasterFQDN

DevString

FQDN of the SDP Master device

CspSubarrayLeafNodes

DevStringArray

List of the CSP Subarray Leaf Node devices

SdpSubarrayLeafNodes

DevStringArray

List of the CSP Subarray Leaf Node devices

SkuidService

DevString

Default value for SKUID service

CommandTimeOut

DevFloat

Timeout for the command execution

LivelinessCheckPeriod

DevFloat

Period for the liveliness probe to monitor each device in a loop

EventSubscriptionCheckPeriod

DevFloat

Period for the event subscriber to check the device subscriptions in a loop

Additional Properties in Central Node Mid

Property Name

Data Type

Description

DishIDs

DevStringArray

List containing the ids of the dishes available . This property is for internal use. It needs to be changed only when there is update in the dishes available/usable.

DishLeafNodePrefix

DevString

Device name prefix for Dish Leaf Node. This property is for internal use.

DishMasterIdentifier

DevString

Device name tag/identifier for Dish Master device. This property is for internal use.

DishMasterFQDNs

DevStringArray

List of Dish Master devices. This property derived from the values of properties DishIDs and DishMasterIdentifier. It is for internal use.

DishVccUri

DevString

Default URI for Dish VCC Configuration.

DishVccFilePath

DevString

Default file path for Dish VCC Configuration

EnableDishVccInit

DevBoolean

This property is set to true to load the dish vcc during initialization.

DishKvalueAggregationAllowedPercent

DevDouble

Percentage of the dishes to be considered for DishKValue aggregation.

DishVccInitTimeout

DevUShort

Timeout for the dish vcc initialization

KValueValidRangeUpperLimit

int

Upper limit of the valid k-value range

KValueValidRangelowerLimit

int

Lower limit of the valid k-value range

Additional Properties in Central Node Low

Property Name

Data Type

Description

MCCSMasterLeafNodeFQDN

DevString

FQDN of the MCCS Master Leaf Node Tango Device Server

MCCSMasterFQDN

DevString

FQDN of the MCCS Master device

AssignResourcesInterface

DevString

Interface value of AsignResources schema

ReleaseResourcesInterface

DevString

Interface value of ReleaseResources schema