ska_tmc_mccssubarrayleafnode.manager package

Submodules

ska_tmc_mccs_subarray_leaf_node.manager.component_manager module

This module implements ComponentManager class for the Mccs Subarray Leaf Node.

class ska_tmc_mccssubarrayleafnode.manager.component_manager.MccsSLNComponentManager(*args: Any, **kwargs: Any)

Bases: TmcLeafNodeComponentManager

A component manager for The MccsSubarrayLeafNode component.

It supports:

  • Monitoring its component, e.g. detect that it has been turned off or on

device_failed(device_info, exception)
Mark a device as failed and invoke the corresponding callback

if it exists

Parameters:
  • device_info (DeviceInfo) – a device info

  • exception – an exception

Type:

Exception

get_device() ska_tmc_common.SubArrayDeviceInfo

Return the device info of the monitoring loop with name dev_name

Parameters:

None

Returns:

a device info

Return type:

SubArrayDeviceInfo

get_obs_state()

Get Current device obsState

is_command_allowed(command_name: str) bool

Checks whether this command is allowed. It checks that the device is not in the FAULT and UNKNOWN state before executing the command and that all the components needed for the operation are not unresponsive.

Returns:

True if this command is allowed

Return type:

boolean

property mccs_subarray_dev_name: str

Returns device name for the MCCS Subarray Device.

stop() None

Stops the event receiver

update_device_info(device_info: str) None

Update the device info used for monitoring.

Parameters:

device_info – Information about the MCCS Subarray device.

update_device_obs_state(obs_state: ska_tango_base.control_model.ObsState) None

Update a monitored device obs state, and call the relative callbacks if available :param obs_state: obs state of the device :type obs_state: ObsState

update_event_failure() None

Update the event arrival time and mark the device as responsive.

update_ping_info(ping: int, dev_name: str) None

Update a device with the correct ping information.

Parameters:
  • dev_name (str) – name of the device

  • ping (int) – device response time

ska_tmc_mccs_subarray_leaf_node.manager.event_receiver module

MCCS Subarray Leaf Node Event Receiver

class ska_tmc_mccssubarrayleafnode.manager.event_receiver.MccsSLNEventReceiver(*args: Any, **kwargs: Any)

Bases: EventReceiver

The MccsSLNEventReceiver class is responsible for receiving events from the MCCS Subarray managed by the MccsSubarrayLeafNode.

The ComponentManager uses the handle events methods for the attribute of interest. For each of them a callback is defined.

handle_command_result_event(event: tango.EventType.CHANGE_EVENT) None

This method handles the lrcr event.

subscribe_events(dev_info: ska_tmc_common.DeviceInfo) None

Module contents