Station Beam Health Model

An implementation of a health model for station beams.

class StationBeamHealthModel(health_changed_callback, thresholds=None)

A health model for station beams.

__init__(health_changed_callback, thresholds=None)

Initialise a new instance.

Parameters:
  • health_changed_callback (Callable) – a callback to be called when the health of the station beam (as evaluated by this model) changes

  • thresholds (Optional[dict[str, float]]) – Thresholds for failed degraded states.

antenna_health_changed(trl, health_state)

Handle change in station health.

This is a callback hook, called by the component manager when the health of a station changes. :type trl: str :param trl: the TRL of the antenna whose health has changed :type health_state: HealthState :param health_state: the new health state of the antenna.

Return type:

None

evaluate_health()

Compute overall health of the station beam.

The overall health is based on the whether the beam is locked or not.

Return type:

HealthState

Returns:

an overall health of the station beam

is_beam_locked_changed(is_beam_locked)

Handle a change in whether the station beam is locked.

This is a callback hook that is called when whether asubarray beam is locked changes.

Parameters:

is_beam_locked (bool) – whether the station beam is locked

Return type:

None

resources_changed(antenna_trls)

Change the resources used for the station beam.

Parameters:

antenna_trls (set[str]) – TRLs of the antennas used for the beam

Return type:

None

station_fault_changed(station_fault)

Handle a change in the fault state of the station beam’s station device.

This is a callback hook that is called when whether a station beam detects that the fault state of its station has changed. This could occur because the station’s health changes, or because the beam changes station.

Parameters:

station_fault (bool) – the fault state of the station that is controlled by this beam.

Return type:

None

station_health_changed(station_health)

Handle a change in the health of the station device that this beam controls.

This is a callback hook that is called when whether a station beam detects that the health of its station has changed. This could occur because the station’s health changes, or because the beam changes station.

Parameters:

station_health (HealthState) – the health of the station that is controlled by this beam

Return type:

None