WhiteRabbit Device

@startuml

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

AttributePollingDevice <|-- SatWhiteRabbit
HealthModel <|-- WhiteRabbitHealthModel
SatWhiteRabbit -- HealthModel
SatWhiteRabbit -- AttributePollingComponentManager
AttributePollingComponentManager <|-- SNMPComponentManager

@enduml

This module implements the White Rabbit device.

class SatWhiteRabbit(*args, **kwargs)

An implementation of a White Rabbit Tango device for SatLmc.

__init__(*args, **kwargs)

Initialise a new instance.

Parameters:
  • args (Any) – positional arguments.

  • kwargs (Any) – keyword arguments.

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

create_component_manager()

Create and return a component manager.

Return type:

SNMPComponentManager

Returns:

SNMPComponent manager

delete_device()

Delete the device.

Return type:

None

init_device()

Initialise the device.

Return type:

None

parent_health_callback(health, reason='')

Add the parent health to the healthstate rollup.

Parameters:
  • health (int) – the health state associated with the trl

  • reason (str) – event failure error message

Return type:

None

update_health()

Update health state.

This method calls the :py:meth:evaluate_health method to figure out what the new health state should be, and then updates the health_state attribute.

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