ska_tmc_subarraynode.subarray_node module

Subarray Node Provides the monitoring and control interface required by users as well as other TM Components (such as OET, Central Node) for a Subarray.

class ska_tmc_subarraynode.subarray_node.BaseSubarrayNode(*args, **kwargs)

Bases: SKASubarray, TMCBaseDevice

Provides the monitoring and control interface required by users as well as other TM Components (such as OET, Central Node) for a Subarray.

BaseSubarrayNode class is inherited from SKASubarray class and TMCBaseDevice class. TMCBaseDevice class is further inherited from SKABaseDevice class.

Common attributes and device_properties within TMC nodes are getting inherited from TMCBaseDevice.

Device Properties
SdpSubarrayLNFQDN:

This property contains the FQDN of the SDP Subarray Leaf Node associated with the Subarray Node.

CspSubarrayLNFQDN:

This property contains the FQDN of the CSP Subarray Leaf Node associated with the Subarray Node.

CspSubarrayFQDN:

FQDN of the CSP Subarray Tango Device Server.

SdpSubarrayFQDN:

FQDN of the SDP Subarray Tango Device Server.

Device Attributes
scanID:

ID of ongoing SCAN

sbID:

ID of ongoing Scheduling Block

isSubarrayAvailable:

Shows availability of subarray device

InitCommand = None
completed_Abort()

Abort command completed callback.

Return type

None

completed_AssignResources()

AssignResources command completed callback.

Return type

None

completed_Configure()

Configure command completed callback.

Return type

None

completed_End()

End command completed callback.

Return type

None

completed_EndScan()

EndScan command completed callback.

Return type

None

completed_ReleaseAllResources()

ReleaseAllResources command completed callback.

Return type

None

completed_Restart()

Restart command completed callback.

Return type

None

completed_Scan()

Scan command completed callback.

Return type

None

create_component_manager()

Create component manager object for command invocation.

Return type

None

init_device()

Initializes the Subarray Node device.

Return type

None

internalModel_read()

Internal construct of TANGO. Returns the internal model.

Returns

JSON-encoded string with the internal model

Return type

str

is_Abort_allowed(request_type=ska_tango_base.long_running_commands.LRCReqType.ENQUEUE_REQ)

Check if command Abort is allowed in the current device state.

Returns

True if the command is allowed

is_AssignResources_allowed(request_type=ska_tango_base.long_running_commands.LRCReqType.ENQUEUE_REQ)

Return whether the AssignResource command may be called in the current state.

Returns

whether the command may be called in the current observational state

Return type

bool

is_Configure_allowed(request_type=ska_tango_base.long_running_commands.LRCReqType.ENQUEUE_REQ)

Check if command Configure is allowed in the current device state.

Return type

Union[bool, CommandNotAllowed, DeviceUnresponsive]

Returns

True if the command is allowed

is_EndScan_allowed(request_type=ska_tango_base.long_running_commands.LRCReqType.ENQUEUE_REQ)

Check if command EndScan is allowed in the current device state.

Return type

Union[bool, CommandNotAllowed, DeviceUnresponsive]

Returns

True if the command is allowed

is_End_allowed(request_type=ska_tango_base.long_running_commands.LRCReqType.ENQUEUE_REQ)

Check if command End is allowed in the current device state.

Return type

Union[bool, CommandNotAllowed, DeviceUnresponsive]

Returns

True if the command is allowed

is_Off_allowed(request_type=ska_tango_base.long_running_commands.LRCReqType.ENQUEUE_REQ)

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

Return type

Union[bool, CommandNotAllowed, DeviceUnresponsive]

Returns

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

Raises:DevFailed if this command is not allowed to be run

in current device state

is_On_allowed(request_type=ska_tango_base.long_running_commands.LRCReqType.ENQUEUE_REQ)

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

Returns

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

Return type

bool

Raises

DevFailed if this command is not allowed to be run in current device state

is_ReleaseAllResources_allowed(request_type=ska_tango_base.long_running_commands.LRCReqType.ENQUEUE_REQ)

Check if command ReleaseAllResources is allowed in the current device state.

Return type

Union[bool, CommandNotAllowed, DeviceUnresponsive]

Returns

True if the command is allowed

is_Restart_allowed(request_type=ska_tango_base.long_running_commands.LRCReqType.ENQUEUE_REQ)

Check if command Restart is allowed in the current device state.

Return type

Union[bool, CommandNotAllowed, DeviceUnresponsive]

Returns

True if the command is allowed

is_Scan_allowed(request_type=ska_tango_base.long_running_commands.LRCReqType.ENQUEUE_REQ)

Check if command Scan is allowed in the current device state.

Return type

Union[bool, CommandNotAllowed, DeviceUnresponsive]

Returns

True if the command is allowed

is_SetAdminMode_allowed(request_type=ska_tango_base.long_running_commands.LRCReqType.ENQUEUE_REQ)

Check if command Restart is allowed in the current device state.

Return type

Union[bool, CommandNotAllowed, DeviceUnresponsive]

Returns

True if the command is allowed

is_Standby_allowed(request_type=ska_tango_base.long_running_commands.LRCReqType.ENQUEUE_REQ)

Checks whether the command Standby is allowed to be run in the current state

Return type

Union[bool, CommandNotAllowed, DeviceUnresponsive]

Returns

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

Raises:DevFailed if this command is not allowed to be run

in current device state

read_arrayLayoutUrl()

Get the memorized Array Layout URI.

Return type

str

read_isAdminModeEnabled()

Return the isAdminModeEnabled attribute value

Returns

True if the admin mode is enabled, False otherwise

Return type

bool

read_sbID()

Internal construct of TANGO. Returns the scheduling block ID.

Returns

string with the scheduling block ID

Return type

str

read_scanID()

Internal construct of TANGO. Returns the Scan ID.

EXAMPLE: 123

Where 123 is a Scan ID from configuration json string.

Returns

string with the scan ID

Return type

str

read_scanStartTimeOffset()

Get offset for scan start time.

Return type

float

scanDuration()

This attribute is used for exposing the scan duration of ongoing scan to other subsystems.

Returns

The scan duration of the ongoing scan

Return type

float

transformedInternalModel_read()

Internal construct of TANGO. Returns the transformed internal model.

Returns

JSON-encoded string with the transformed internal model

Return type

str

update_assigned_resources_callback(assigned_resources)

Triggers a push change event for the assigned resources.

Parameters

assigned_resources (str) – The assigned resources to update.

Return type

None

update_device_callback(dev_info)

Updates the last device information changed and triggers a push change event.

Parameters

dev_info (DeviceInfo) – The device information to update.

Return type

None

update_scan_duration_callback(scan_duration)

Triggers a push change event for the change in scan duration.

Parameters

scan_duration (float) – The scan duration to update.

Return type

None

update_subarray_availability_status_callback(subarray_availability)

Triggers a push change event for the isSubarrayAvailable.

Parameters

subarray_availability (bool) – The subarray availability status.

Return type

None

update_subarray_health_info_callback(subarray_health_info)

This method updates the subarray health info and triggers a push change event.

Parameters

subarray_health_info – Aggregated health info for the subarray

Return type

None

update_subarray_health_state_callback(subarray_health_state)

This method updates the subarray health state and triggers a push change event.

Parameters

subarray_health_state (str) – The subarray health state to update.

Return type

None

write_arrayLayoutUrl(uri)

Set the Array Layout URL value.

Parameters

uri (str) – Array Layout URL

Return type

None

write_isAdminModeEnabled(value)

Set the value of isAdminModeEnabled attribute

Parameters

value (bool) – The value to set for the isAdminModeEnabled attribute

Return type

None

write_scanStartTimeOffset(time_offset)

Set the value of scan start time offset attribute

Parameters

time_offset (float) – scan start time offset value