SKA Master

SKAMaster

Master device

class ska_tango_base.SKAMaster(*args, **kwargs)

Master device

class InitCommand(target, state_model, logger=None)

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

do()

Stateless hook for device initialisation.

Returns:A tuple containing a return code and a string message indicating status. The message is for information purpose only.
Return type:(ResultCode, str)
class IsCapabilityAchievableCommand(target, state_model, logger=None)

A class for the SKAMaster’s IsCapabilityAchievable() command.

do(argin)

Stateless hook for device IsCapabilityAchievable() command.

Returns:Whether the capability is achievable
Return type:bool
MaxCapabilities

Used by autodoc_mock_imports.

always_executed_hook()

Method that is always executed before any device command gets executed.

availableCapabilities

Used by autodoc_mock_imports.

delete_device()

Method to cleanup when device is stopped.

elementAlarmAddress

Used by autodoc_mock_imports.

elementDatabaseAddress

Used by autodoc_mock_imports.

elementLoggerAddress

Used by autodoc_mock_imports.

elementTelStateAddress

Used by autodoc_mock_imports.

init_command_objects()

Sets up the command objects

isCapabilityAchievable(argin)

Checks of provided capabilities can be achieved by the resource(s).

To modify behaviour for this command, modify the do() method of the command class.

Parameters:argin (tango.DevVarLongStringArray.) –

An array consisting pair of

  • [nrInstances]: DevLong. Number of instances of the capability.
  • [Capability types]: DevString. Type of capability.
Returns:True if capability can be achieved, False if cannot
Return type:DevBoolean
maxCapabilities

Used by autodoc_mock_imports.

read_availableCapabilities()

Reads list of available number of instances of each capability type

read_elementAlarmAddress()

Reads FQDN of Element Alarm device

read_elementDatabaseAddress()

Reads FQDN of Element Database device

read_elementLoggerAddress()

Reads FQDN of Element Logger device

read_elementTelStateAddress()

Reads FQDN of Element TelState device

read_maxCapabilities()

Reads maximum number of instances of each capability type