ska_tmc_sdpmasterleafnode package

Subpackages

Submodules

ska_tmc_sdpmasterleafnode._sdp_master_leaf_node module

SDP Master Leaf node acts as a SDP contact point for the Master Node and also monitors and issues commands to the SDP Master.

class ska_tmc_sdpmasterleafnode.sdp_master_leaf_node.SdpMasterLeafNode(*args: Any, **kwargs: Any)

Bases: SKABaseDevice

SDP Master Leaf node acts as a SDP contact point for Master Node and also to monitor and issue commands to the SDP Master.

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

Bases: InitCommand

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

do()

Initializes the attributes and properties of the SdpMasterLeafNode.

Returns:

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

rtype:

(ResultCode, str)

Off()

This command invokes Off() command on Sdp Master.

always_executed_hook()
create_component_manager()

Returns Sdp Master Leaf Node component manager object

init_command_objects()

Initialises the command handlers for commands supported by this device.

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

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:

bool,CommandNotAllowed,DeviceUnresponsive

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

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:

bool,CommandNotAllowed,DeviceUnresponsive

is_On_allowed() Union[bool, ska_tmc_common.exceptions.CommandNotAllowed, ska_tmc_common.exceptions.DeviceUnresponsive]
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:

bool,CommandNotAllowed,DeviceUnresponsive

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

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:

bool,CommandNotAllowed,DeviceUnresponsive

read_isSubsystemAvailable() bool

Returns the TMC Sdp MasterLeafNode isSubsystemAvailable attribute.

read_sdpMasterDevName() str

Return the sdpmasterdevname attribute.

update_availablity_callback(availablity: bool) None

Change event callback for isSubsystemAvailable

write_sdpMasterDevName(value: str) None

Set the sdpmasterdevname attribute.

ska_tmc_sdpmasterleafnode.sdp_master_leaf_node.main(args=None, **kwargs)

Runs the SdpMasterLeafNodeMid.

Parameters:
  • args – Arguments internal to TANGO

  • kwargs – Arguments internal to TANGO

Returns:

SdpMasterLeafNodeMid TANGO object.

Module contents