SKA Capability

SKACapability

Capability handling device

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

A Subarray handling device. It exposes the instances of configured capabilities.

CapID

Used by autodoc_mock_imports.

CapType

Used by autodoc_mock_imports.

ConfigureInstances(argin)

This function indicates how many number of instances of the current capacity should to be configured.

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

Parameters:argin – Number of instances to configure
Returns:None.
class ConfigureInstancesCommand(target, state_model, logger=None)

A class for the SKALoggerDevice’s SetLoggingLevel() command.

do(argin)

Stateless hook for ConfigureInstances()) command functionality.

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 InitCommand(target, state_model, logger=None)
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)
activationTime

Used by autodoc_mock_imports.

always_executed_hook()

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

Returns:None
configuredInstances

Used by autodoc_mock_imports.

delete_device()

Method to cleanup when device is stopped.

Returns:None
init_command_objects()

Sets up the command objects

read_activationTime()

Reads time of activation since Unix epoch. :return: Activation time in seconds

read_configuredInstances()

Reads the number of instances of a capability in the subarray :return: The number of configured instances of a capability in a subarray

read_usedComponents()

Reads the list of components with no. of instances in use on this Capability :return: The number of components currently in use.

subID

Used by autodoc_mock_imports.

usedComponents

Used by autodoc_mock_imports.