ska_tmc_sdpsubarrayleafnode package

Subpackages

Submodules

ska_tmc_sdpsubarrayleafnode._sdp_subarray_leaf_node module

SDP Subarray Leaf node is to monitor the SDP Subarray and issue control actions during an observation. It also acts as a SDP contact point for Subarray Node for observation execution

class ska_tmc_sdpsubarrayleafnode.sdp_subarray_leaf_node.SdpSubarrayLeafNode(*args: Any, **kwargs: Any)

Bases: TMCBaseLeafDevice

SDP Subarray Leaf node is to monitor the SDP Subarray and issue control actions during an observation.

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

Bases: InitCommand

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

do(*args, **kwargs) Tuple[ska_tango_base.commands.ResultCode, str]

Initializes the attributes and properties of the SdpSubarrayLeafNode.

Returns:

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

rtype:

(ResultCode, str)

always_executed_hook()
create_component_manager()

Returns Sdp Subarray Leaf Node component manager object

delete_device() None
init_command_objects() None

Initialises the command handlers for commands supported by this device.

init_device()
isAdminModeEnabled(value: bool) None

Set the value of isAdminModeEnabled attribute

is_Abort_allowed() bool

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

Returns:

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

rtype:

boolean

is_AssignResources_allowed() bool

Checks whether AssignResources command is allowed to be run in current device state. :return: True if AssignResources command is allowed to be run in current device state.

Return type:

boolean

is_Configure_allowed() bool

Checks whether Configure command is allowed to be run in current device state. :return: True if Configure command is allowed to be run in current device state :rtype: boolean

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

rtype:

boolean

is_End_allowed()

Checks whether this command is allowed to be run in current device state. :return: 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. :return: True if this command is allowed to be run in current device state. :rtype: boolean

is_On_allowed() Union[bool, ska_tmc_common.exceptions.InvalidObsStateError, ska_tmc_common.exceptions.DeviceUnresponsive, ska_tmc_common.exceptions.CommandNotAllowed]

Checks whether this command is allowed to be run in current device state. :return: True if this command is allowed to be run in current device state. :rtype: boolean

is_ReleaseAllResources_allowed()

Checks whether this command is allowed to be run in current device state. :return: True if this command is allowed to be run in current device state.

Return type:

boolean

is_Restart_allowed() bool
Checks whether Restart command is allowed to be run in current device

state

return:

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

rtype:

boolean

is_Scan_allowed() bool

Checks whether Scan command is allowed to be run in current device state. :return: True if Scan command is allowed to be run in current device state :rtype: boolean

read_isSubsystemAvailable() bool

Read method for issubsystemavailable

read_lastDeviceInfoChanged() str

Return the last device info change

read_sdpSubarrayDevName() str

Return the sdpsubarraydevname attribute.

read_sdpSubarrayObsState() ska_tango_base.control_model.ObsState

Reads the current observation state of the SDP subarray

sdpSubarrayAdminMode() ska_control_model.AdminMode

Get the current admin mode of SDP Subarray

update_admin_mode_callback(admin_mode: ska_control_model.AdminMode) None

Update SDP subarray admin mode attribute callback

update_availablity_callback(availablity)

Change event callback for isSubsystemAvailable

update_device_callback(dev_info: ska_tmc_common.device_info.SdpSubarrayDeviceInfo) None

Updates device callback info

update_lrcr_callback(lrc_result: Tuple[str, Union[ska_tango_base.commands.ResultCode, ska_tango_base.executor.TaskStatus, Exception, str]])

Change event callback for longRunningCommandResult

update_sdp_subarray_obs_state_callback(obs_state: ska_tango_base.control_model.ObsState) None

Updates SDP Subarray ObsState

write_sdpSubarrayDevName(value: str) None

Set the sdpsubarraydevname attribute.

ska_tmc_sdpsubarrayleafnode.sdp_subarray_leaf_node.main(args=None, **kwargs)

Runs the SdpSubarrayLeafNode Tango device. :param args: Arguments internal to TANGO

Parameters:

kwargs – Arguments internal to TANGO

Returns:

integer. Exit code of the run method.

Module contents

SdpSubarrayLeafNode

Properties in SDP Master Leaf Node

Property Name

Data Type

Description

SdpSubarrayFQDN

DevString

FQDN of the SDP Subarray Tango Device Server.

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.

AdapterTimeOut

DevFloat

Timeout for the adapter creation. This property is for internal use.

CommandTimeOut

DevFloat

Timeout for the command execution