ska_tmc_sdpmasterleafnode package
Subpackages
- ska_tmc_sdpmasterleafnode.commands package
- Submodules
- ska_tmc_sdpmasterleafnode.commands.sdp_mln_command module
- ska_tmc_sdpmasterleafnode.commands.disable_command module
- ska_tmc_sdpmasterleafnode.commands.off_command module
- ska_tmc_sdpmasterleafnode.commands.on_command module
- ska_tmc_sdpmasterleafnode.commands.standby_command module
- Module contents
- ska_tmc_sdpmasterleafnode.manager package
- Submodules
- ska_tmc_sdpmasterleafnode.manager.component_manager module
SdpMLNComponentManagerSdpMLNComponentManager.disable()SdpMLNComponentManager.get_device()SdpMLNComponentManager.is_command_allowed()SdpMLNComponentManager.off()SdpMLNComponentManager.on()SdpMLNComponentManager.sdp_master_device_nameSdpMLNComponentManager.standby()SdpMLNComponentManager.start_communicating()SdpMLNComponentManager.stop_communicating()SdpMLNComponentManager.update_exception_for_unresponsiveness()SdpMLNComponentManager.update_responsiveness_info()
- Module contents
SdpMLNComponentManagerSdpMLNComponentManager.disable()SdpMLNComponentManager.get_device()SdpMLNComponentManager.is_command_allowed()SdpMLNComponentManager.off()SdpMLNComponentManager.on()SdpMLNComponentManager.sdp_master_device_nameSdpMLNComponentManager.standby()SdpMLNComponentManager.start_communicating()SdpMLNComponentManager.stop_communicating()SdpMLNComponentManager.update_exception_for_unresponsiveness()SdpMLNComponentManager.update_responsiveness_info()
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:
TMCBaseLeafDeviceSDP 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:
InitCommandA 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.