ska_tmc_dishleafnode.dish_leaf_node module

This is DishLeafNode TANGO device.

class ska_tmc_dishleafnode.dish_leaf_node.DishLeafNode(*args: Any, **kwargs: Any)

Bases: SKABaseDevice

A Leaf control node for DishMaster.

Device Properties:

DishMasterFQDN:

FQDN of Dish Master Device

Device Attributes:

CommandExecuted:

Stores command executed on the device.

DishMasterDevName:

Stores Dish Master Device name.

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

Bases: InitCommand

A class for the TMC DishLeafNode init_device() method.

do()

Initializes the attributes and properties of the DishLeafNode.

Returns:

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

rtype:

(ResultCode, str)

create_component_manager()
delete_device()
init_command_objects() None

Initializes the command handlers for commands supported by this device.

init_device()
is_AbortCommands_allowed() bool

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:

boolean

is_Configure_allowed() bool

Checks whether this command is allowed to be run in the current dish mode.

Returns:

True if this command is allowed to be run in current dish mode.

Return type:

boolean

is_EndScan_allowed() Union[bool, ska_tmc_common.CommandNotAllowed, ska_tmc_common.DeviceUnresponsive]

Checks whether this command is allowed to be run in the current dish mode.

Returns:

True if this command is allowed to be run in current dish mode, raises CommandNotAllowed in case is is not allowed and DeviceUnresponsive in case Device is not responsive.

Return type:

Union[bool, CommandNotAllowed, DeviceUnresponsive]

is_ObsReset_allowed() bool

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:

boolean

is_Restart_allowed() bool

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:

boolean

is_Scan_allowed() Union[bool, ska_tmc_common.CommandNotAllowed, ska_tmc_common.DeviceUnresponsive]

Checks whether this command is allowed to be run in the current dish mode.

Returns:

True if this command is allowed to be run in current dish mode, raises CommandNotAllowed in case is is not allowed and DeviceUnresponsive in case Device is not responsive.

Return type:

Union[bool, CommandNotAllowed, DeviceUnresponsive]

is_SetKValue_allowed() bool

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:

boolean

is_SetOperateMode_allowed() bool

Checks whether this command is allowed to be run in the current dish mode.

Returns:

True if this command is allowed to be run in current dish mode.

Return type:

boolean

is_SetStandbyFPMode_allowed() bool

Checks whether this command is allowed to be run in the current dish mode.

Returns:

True if this command is allowed to be run in current dish mode.

Return type:

boolean

is_SetStandbyLPMode_allowed() bool

Checks whether this command is allowed to be run in the current dish mode.

Returns:

True if this command is allowed to be run in current dish mode

Return type:

boolean

is_SetStowMode_allowed() bool

Checks whether this command is allowed to be run in the current dish mode.

Returns:

True if this command is allowed to be run in current dish mode.

Return type:

boolean

is_StartCapture_allowed() bool

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

Returns:

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

Return type:

boolean

is_StopCapture_allowed() bool

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

Returns:

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

Return type:

boolean

is_TrackLoadStaticOff_allowed() bool

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

Returns:

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

Return type:

boolean

is_TrackStop_allowed() bool

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

Returns:

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

Return type:

boolean

is_Track_allowed() bool

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

Returns:

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

Return type:

boolean

is_off_allowed()

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

Returns:

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

Return type:

boolean

kValue(k_value: int) None

Set the dish k-value.

kValueValidationResult() str

Read method to get the k-value validation result

kvalue_validation_callback() None

Push an event for the kValueValidationResult attribute.

pointing_callback(actual_pointing: list) None

Push an event for the actualPointing attribute.

read_actualPointing() str

Returns the actualPointing attribute value.

read_dishMasterDevName() str

Returns the dishMasterDevName attribute value.

read_dishMode() ska_tmc_common.DishMode

Returns the dishMode attribute value.

Returns:

The current value of the dishMode attribute.

Return type:

DishMode

read_isSubsystemAvailable() bool

Read method for isSubsystemAvailable

read_pointingState() ska_tmc_common.PointingState

Returns the pointingState attribute value.

Returns:

The current value of the pointingState attribute.

Return type:

PointingState

update_availablity_callback(availability)

Change event callback for isSubsystemAvailable

update_dishmode_callback(dish_mode: ska_tmc_common.DishMode) None

Push an event for the change of dishMode attribute.

update_pointingstate_callback(pointing_state: ska_tmc_common.PointingState) None

Push an event for change of pointingState attribute.

write_dishMasterDevName(value: str) None

Set the dishMasterDevName attribute.

ska_tmc_dishleafnode.dish_leaf_node.main(args=None, **kwargs)

Runs the DishLeafNode.

Parameters:
  • args – Arguments internal to TANGO

  • kwargs – Arguments internal to TANGO

Returns:

DishLeafNode TANGO object.

Attributes in DishleafNode

Attribute Name | O/P Data Type | access/AttrWriteType | Description

dishMode | DishMode | READ | This attribute gives the DISH dishMode

pointingState | PointingState | READ | This attribute gives the DISH pointingState