Modules

ska_tmc_cspsubarrayleafnode.csp_subarray_leaf_nodemodule

Csp Subarray Leaf node monitors the CSP Subarray and issues control actions during an observation. It also acts as a CSP contact point for Subarray Node for observation execution for TMC.

class ska_tmc_cspsubarrayleafnode.csp_subarray_leaf_node.CspSubarrayLeafNode(*args: Any, **kwargs: Any)

Bases: SKABaseDevice

CSP Subarray Leaf node monitors the CSP Subarray and issues control actions during an observation.

Device Properties:
CspSubarrayFQDN:

Property to provide FQDN of CSP Subarray Device

Device Attributes:
commandExecuted:

Stores command executed on the device.

lastDeviceInfoChanged:

Json String representing the last device changed in the internal model.

cspSubarrayDevName:

Stores CSP Subarray Device name.

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

Bases: InitCommand

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

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

Initializes the attributes and properties of the CspSubarrayLeafNode :return: A tuple containing a return code and a string message indicating status. The message is for information purpose only. :rtype: (ReturnCode, str)

create_component_manager()

Empty method for resolving lint issue #abstract-method

init_command_objects() None

Initialises the command handlers for commands supported by this device.

init_device()
is_Abort_allowed()

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

Raises:
  • DevFailed if this command is not allowed to be run in current

  • device state

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 :rtype: 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

Return type:

boolean

is_EndScan_allowed()

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

Returns:

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

rtype:

boolean

is_End_allowed() bool

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

Returns:

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

rtype:

boolean

is_ReleaseAllResources_allowed() bool

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

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

raises:

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

is_Scan_allowed()

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

Returns:

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

rtype:

boolean

read_cspSubarrayDevName() str

Returns the CspSubarrayDevName attribute value.

read_cspSubarrayObsState() ska_tango_base.control_model.ObsState

Read method for cspSubarrayObsState

read_delayModel()

Returns the delay model.

read_isSubsystemAvailable() bool

Read method for isSubsystemAvailable

read_lastDeviceInfoChanged() str

Read method for Last Device info Changed

update_availablity_callback(csp_subarray_availability)

Change event callback for isSubsystemAvailable

update_csp_subarray_obs_state_callback(obs_state: ska_tango_base.control_model.ObsState) None

Change event callback for cspSubarrayObsState

update_delay_model_callback(delay_model)

Change event callback for delay model

update_device_callback(dev_info: ska_tmc_common.device_info.SdpSubarrayDeviceInfo) None

Updates the device callback

write_cspSubarrayDevName(value: str) None

Set the cspsubarraydevname attribute.

write_cspSubarrayObsState(value: ska_tango_base.control_model.ObsState) None

Write method for cspSubarrayObsState

ska_tmc_cspsubarrayleafnode.csp_subarray_leaf_node.main(args=None, **kwargs) int

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

Parameters:

kwargs – Arguments internal to TANGO

Returns:

integer. Exit code of the run method.

ska_tmc_cspsubarrayleafnode.csp_subarray_leaf_node_mid module

Csp Subarray Leaf node mid monitors the CSP Subarray and issues control actions during an observation. It also acts as a CSP contact point for Subarray Node for observation execution for TMC.

class ska_tmc_cspsubarrayleafnode.csp_subarray_leaf_node_mid.CspSubarrayLeafNodeMid(*args: Any, **kwargs: Any)

Bases: CspSubarrayLeafNode

Tango device class for tmc csp subarray leaf node low

create_component_manager() CspSLNComponentManagerMid

Empty method for resolving lint issue #abstract-method

ska_tmc_cspsubarrayleafnode.csp_subarray_leaf_node_mid.main(args=None, **kwargs)

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

Parameters:

kwargs – Arguments internal to TANGO

Returns:

CspsubarrayLeafNodeMid TANGO object.

ska_tmc_cspsubarrayleafnode.csp_subarray_leaf_node_low module

CSP Subarray Leaf node low monitors the CSP Subarray and issues control actions during an observation. It also acts as a CSP contact point for Subarray Node for observation execution for TMC.

class ska_tmc_cspsubarrayleafnode.csp_subarray_leaf_node_low.CspSubarrayLeafNodeLow(*args: Any, **kwargs: Any)

Bases: CspSubarrayLeafNode

Tango device calss for tmc csp subarray leafnode low

create_component_manager() CspSLNComponentManagerLow

Method for creating component manager instance

ska_tmc_cspsubarrayleafnode.csp_subarray_leaf_node_low.main(args=None, **kwargs)

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

Parameters:

kwargs – Arguments internal to TANGO

Returns:

CspSubarrayLeafNodeLow TANGO object.