ska_tmc_mccssubarrayleafnode.manager package

Submodules

ska_tmc_mccs_subarray_leaf_node.manager.component_manager module

Component Manager class for 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

configure(argin: str, task_callback: Optional[Callable] = None) tuple

Submit the Configure command in queue.

Returns:

a result code and message

property devices

property

end(task_callback: Optional[Callable] = None) tuple

Submit the End command in queue.

Returns:

a result code and message

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

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(device_name: str, 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(device_name) None

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

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