ska_tmc_sdpmasterleafnode package

Link to the TMC User documentation is here.

Subpackages

Submodules

ska_tmc_sdpmasterleafnode._sdp_master_leaf_node_low module

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 ska_tmc_sdpmasterleafnode.sdp_master_leaf_node_low.LowTmcLeafNodeSdp(*args: Any, **kwargs: Any)

Bases: TmcLeafNodeSdp

Tango device class for TMC SDP Master Leaf Node Low.

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

Runs the LowTmcLeafNodeSdp.

Parameters:
  • args – Arguments internal to TANGO

  • kwargs – Arguments internal to TANGO

Returns:

LowTmcLeafNodeSdp TANGO object.

ska_tmc_sdpmasterleafnode._sdp_master_leaf_node_mid module

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 ska_tmc_sdpmasterleafnode.sdp_master_leaf_node_mid.MidTmcLeafNodeSdp(*args: Any, **kwargs: Any)

Bases: TmcLeafNodeSdp

Tango device class for TMC SDP Master Leaf Node MID.

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

Runs the MidTmcLeafNodeSdp.

Parameters:
  • args – Arguments internal to TANGO

  • kwargs – Arguments internal to TANGO

Returns:

MidTmcLeafNodeSdp TANGO object.

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.TmcLeafNodeSdp(*args: Any, **kwargs: Any)

Bases: TMCBaseLeafDevice

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.

Return type:

(ResultCode, str)

Off()

This command invokes Off() command on Sdp Master.

always_executed_hook()
create_component_manager() SdpMLNComponentManager

Create Sdp Master Leaf Node component manager object

Returns:

Sdp Master Leaf Node component manager object.

init_command_objects() None

Initialises the command handlers for commands supported by this device.

isAdminModeEnabled(value: bool) None

Set the value of isAdminModeEnabled attribute

Parameters:

value (bool) – isAdminModeEnabled value to be set

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

Reads the TMC Sdp MasterLeafNode isSubsystemAvailable attribute.

Returns:

Sdp MasterLeafNode isSubsystemAvailable attribute

Return type:

bool

read_sdpMasterDevName() str

Read the sdpmasterdevname attribute.

Returns:

sdpmasterdevname attribute

Return type:

str

sdpControllerAdminMode() ska_control_model.AdminMode

Read the admin mode of SDP Controller

Returns:

admin mode of SDP Controller

Return type:

AdminMode

update_admin_mode_callback(admin_mode: ska_control_model.AdminMode)

Update SDPMLNAdminMode attribute callback

Parameters:

admin_mode (AdminMode) – AdminMode to be updated

update_availablity_callback(availablity: bool) None

Change event callback for isSubsystemAvailable

Parameters:

availablity (bool) – availibility status to be updated

write_sdpMasterDevName(value: str) None

Set the sdpmasterdevname attribute.

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

Runs the TmcLeafNodeSdp.

Parameters:
  • args – Arguments internal to TANGO

  • kwargs – Arguments internal to TANGO

Returns:

TmcLeafNodeSdp TANGO object.

Module contents

Properties in SDP Master Leaf Node

Property Name

Data Type

Description

SdpMasterFQDN

DevString

FQDN of the SDP Master 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.