TalonLRU Device

class ska_mid_cbf_mcs.talon_lru.talon_lru_device.TalonLRU(*args: Any, **kwargs: Any)[source]

Bases: SKABaseDevice

TANGO device class for controlling and monitoring a Talon LRU.

always_executed_hook() None[source]

Hook to be executed before any attribute access or command.

delete_device() None[source]

Uninitialize the device.

init_command_objects() None[source]

Sets up the command objects.

read_PDU1PowerMode() ska_tango_base.control_model.PowerMode[source]

Read the power mode of the outlet specified by PDU 1.

Returns:

Power mode of PDU 1

read_PDU2PowerMode() ska_tango_base.control_model.PowerMode[source]

Read the power mode of the outlet specified by PDU 2.

Returns:

Power mode of PDU 2

create_component_manager() TalonLRUComponentManager[source]

Create and return a component manager for this device.

Returns:

a component manager for this device.

class InitCommand(*args: Any, **kwargs: Any)[source]

Bases: InitCommand

A class for the TalonLRU’s init_device() “command”.

do() Tuple[ska_tango_base.commands.ResultCode, str][source]

Stateless hook for device initialisation. Creates the device proxies to the power switch devices.

Returns:

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

class OnCommand(*args: Any, **kwargs: Any)[source]

Bases: OnCommand

The command class for the On command.

Turn on both outlets that provide power to the LRU. Device is put into ON state if at least one outlet was successfully turned on.

do() Tuple[ska_tango_base.commands.ResultCode, str][source]

Implement On command functionality.

Returns:

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

class OffCommand(*args: Any, **kwargs: Any)[source]

Bases: OffCommand

The command class for the Off command.

Turn off both outlets that provide power to the LRU. Device is put in the OFF state if both outlets were successfully turned off.

do() Tuple[ska_tango_base.commands.ResultCode, str][source]

Implement Off command functionality.

Returns:

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