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.
- 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:
- 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:
- 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.
- resources_changed(antenna_trls)
Change the resources used for the station beam.
- 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.
- 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: