SatUtc Device

@startuml
class SatUtc
SatUtc : -_health_state
SatUtc : -_State
SatUtc : -_AdminMode

class SatWhiteRabbit
SatWhiteRabbit : -_health_state
SatWhiteRabbit : -_State
SatWhiteRabbit : -_AdminMode

SKABaseDevice <|-- SatUtc
SatUtc "1" *-- "N" SatWhiteRabbit
 @enduml

This module contains the ska_sat_lmc Utc device prototype.

class SatUtc(*args, **kwargs)

An implementation of a SatUtc Tango device for SatLMC.

ForceRollup(trl)

Command used for testing only.

Parameters:

trl (str) – TRL for subserver’s healthState

Return type:

None

__init__(*args, **kwargs)

Initialise this device object.

Parameters:
  • args (Any) – positional args to the init

  • kwargs (Any) – keyword args to the init

change_control_level(control_level)

Stop/start communicating with the component.

Return type:

None

connect(trl)

Create a connection to the trl.

Parameters:

trl (str) – connect to this tango resource locator

Return type:

DeviceProxy

Returns:

the tango proxy to this trl

delete_device()

Delete the device.

Return type:

None

health_rollup(trl='', health=ska_control_model.HealthState.UNKNOWN, reason='')

Rollup the health of all sub-servers.

Parameters:
  • trl (str) – the tango resource locator for the incoming health event.

  • health (HealthState) – the health state associated with the trl

  • reason (str) – error message

Return type:

None

init_device()

Initialise the device.

Raises:

Exception – When device initialisation fails

Return type:

None

main(*args, **kwargs)

Entry point for module.

Parameters:
  • args (str) – positional arguments

  • kwargs (str) – named arguments

Return type:

int

Returns:

exit code