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, **kwargs)

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.

AssignResources
InitCommand = None
ReleaseResources
completed_AssignResources()

AssignResources command completed callback.

create_component_manager()

Create component manager object for command invocation.

init_device()

Initializes the CentralNode device.

is_AssignResources_allowed(request_type=ska_tango_base.long_running_commands.LRCReqType.ENQUEUE_REQ)

Checks whether AssignResources command is allowed with the given input.

Parameters:
  • argin – The command input argument

  • request_type – The type of request (ENQUEUE_REQ or EXECUTE_REQ)

Returns:

True if AssignResources 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(request_type=ska_tango_base.long_running_commands.LRCReqType.ENQUEUE_REQ)

Checks whether ReleaseResources is allowed with the given input.

Parameters:
  • argin – The command input argument

  • request_type – The type of request (ENQUEUE_REQ or EXECUTE_REQ)

Returns:

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

Return type:

boolean

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(request_type=ska_tango_base.long_running_commands.LRCReqType.ENQUEUE_REQ)

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(request_type=ska_tango_base.long_running_commands.LRCReqType.ENQUEUE_REQ)
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(request_type=ska_tango_base.long_running_commands.LRCReqType.ENQUEUE_REQ)

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_DefaultArrayLayoutURL()

Returns the default array layout URL attribute value.

read_arrayLayoutFileProvided()

Reads arrayLayoutFileProvided attribute

read_arrayLayoutURL()

Returns the array layout URL attribute value.

read_desiredTelescopeState()

Read Desired TelescopeState

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_array_layout_url_callback(url_dict)

Called by the component manager whenever the array_layout_url changes. Persists the value in the Tango DB and pushes change/archive events.

Parameters:
  • url_dict (dict) – Dictionary containing the array layout URL

  • stored. (information to be serialized and) –

update_default_array_layout_url_callback(url_dict)

Called by the component manager whenever the default_array_layout_url changes. Persists the value in the Tango DB and pushes change/archive events.

Parameters:

url_dict (dict) – Dictionary containing the default array layout URL information to be serialized and stored.

update_device_callback(devInfo)

Update device callabacks

update_telescope_availability_callback(telescope_availability)

Update device availabililty callbacks

update_telescope_health_state_callback(telescope_health_state)

Update Telescope health state callbacks

update_telescope_state_callback(telescope_state)

Update telescope state callback

update_tmc_op_state_callback(tmc_op_state)

Update tmc operational state callbacks

write_DefaultArrayLayoutURL(url)

Sets the default array layout URL.

write_arrayLayoutURL(url)

Set the Array Layout URL value.

Parameters:

uri (str) – Array Layout URL