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

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.

isAdminModeEnabled(value: bool) None

Set the value of isAdminModeEnabled attribute

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.

sdpControllerAdminMode() ska_control_model.AdminMode

Read the admin mode of SDP Controller

update_admin_mode_callback(admin_mode: ska_control_model.AdminMode)

Update SDPMLNAdminMode attribute callback

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