Antenna Health Model

An implementation of a health model for an antenna.

class AntennaHealthModel(component_state_callback, thresholds=None)

A health model for an antenna.

__init__(component_state_callback, thresholds=None)

Initialise a new instance.

Parameters:
  • component_state_callback (Callable[..., None]) – callback to be called whenever there is a change to this component’s state, including the health model’s evaluated health state.

  • thresholds (Optional[dict[str, float]]) – the threshold parameters for the health rules

evaluate_health()

Compute overall health of the station.

The overall health is based on the fault and communication status of the station overall, together with the health of the FieldStation, antennas and tiles that it manages.

This implementation simply sets the health of the station to the health of its least healthy component.

Return type:

HealthState

Returns:

an overall health of the station

fieldstation_health_changed(fieldstation_health)

Handle a change in FieldStation health.

Parameters:

fieldstation_health (Optional[HealthState]) – the health state of the FieldStation

Return type:

None

tile_adc_rms_changed(tile_adc_rms)

Handle a change in tile adc reading.

Parameters:

tile_adc_rms (Optional[tuple[float, float]]) – the adc reading from the tile

Return type:

None

tile_health_changed(tile_health)

Handle a change in tile health.

Parameters:

tile_health (Optional[HealthState]) – the health state of the tile

Return type:

None