Controller Device
SKAController.
Controller device
- class ControllerComponentManager(logger: Logger, communication_state_callback: Optional[Callable[[CommunicationStatus], None]] = None, component_state_callback: Optional[Callable[[...], None]] = None, **state: Any)[source]
A stub for an controller component manager.
- class SKAController(*args: Any, **kwargs: Any)[source]
Controller device.
- class InitCommand(device: tango.server.Device, logger: Optional[Logger] = None, validator: Optional[ArgumentValidator] = None)[source]
A class for the SKAController’s init_device() “command”.
- do(*args: Any, **kwargs: Any) tuple[ska_control_model.result_code.ResultCode, str][source]
Stateless hook for device initialisation.
- Parameters:
args – positional arguments to the command. This command does not take any, so this should be empty.
kwargs – keyword arguments to the command. This command does not take any, so this should be empty.
- Returns:
A tuple containing a return code and a string message indicating status. The message is for information purpose only.
- create_component_manager() ComponentManagerT[source]
Create and return a component manager for this device.
- Raises:
NotImplementedError – because it is not implemented.
- elementLoggerAddress() str
Read FQDN of Element Logger device.
- Returns:
FQDN of Element Logger device
- elementTelStateAddress() str
Read FQDN of Element TelState device.
- Returns:
FQDN of Element TelState device
- elementDatabaseAddress() str
Read FQDN of Element Database device.
- Returns:
FQDN of Element Database device
- maxCapabilities() list[str]
Read maximum number of instances of each capability type.
- Returns:
list of maximum number of instances of each capability type
- availableCapabilities() list[str]
Read list of available number of instances of each capability type.
- Returns:
list of available number of instances of each capability type
- class IsCapabilityAchievableCommand(device: SKAController[ComponentManagerT], logger: Optional[Logger] = None)[source]
A class for the SKAController’s IsCapabilityAchievable() command.
- do(*args: Any, **kwargs: Any) bool[source]
Stateless hook for device IsCapabilityAchievable() command.
- Parameters:
args – positional arguments to the command. There is a single positional argument: an array consisting of pairs of * [nrInstances]: DevLong. Number of instances of the capability. * [Capability types]: DevString. Type of capability.
kwargs – keyword arguments to the command. This command does not take any, so this should be empty.
- Returns:
Whether the capability is achievable