Station Beam Health Rules
A file to store health transition rules for station.
- class StationBeamHealthRules(*args: Any, **kwargs: Any)[source]
A class to handle transition rules for station.
- property default_thresholds: dict[str, float]
Get the default thresholds for this device.
- Returns:
the default thresholds
- degraded_rule(beam_locked: bool, station_fault: bool, station_health: ska_control_model.HealthState, antenna_healths: dict[str, Optional[ska_control_model.HealthState]]) tuple[bool, str][source]
Test whether DEGRADED is valid for the station.
- Parameters:
beam_locked – if the beam is locked.
station_fault – If the station is in fault state.
station_health – Health of the station.
antenna_healths – Health of the antennas.
- Returns:
If the station beam is degraded or not.
- failed_rule(beam_locked: bool, station_fault: bool, station_health: ska_control_model.HealthState, antenna_healths: dict[str, Optional[ska_control_model.HealthState]]) tuple[bool, str][source]
Test whether FAILED is valid for the station beam.
- Parameters:
beam_locked – if the beam is locked.
station_fault – If the station is in fault state.
station_health – Health of the station.
antenna_healths – Health of the antennas.
- Returns:
If the station beam is failed or not.
- healthy_rule(beam_locked: bool, station_fault: bool, station_health: ska_control_model.HealthState, antenna_healths: dict[str, Optional[ska_control_model.HealthState]]) tuple[bool, str][source]
Test whether OK is valid for the station.
- Parameters:
beam_locked – if the beam is locked.
station_fault – If the station is in fault state.
station_health – Health of the station.
antenna_healths – Health of the antennas.
- Returns:
If the station beam is healthy or not.
- unknown_rule(beam_locked: bool, station_fault: bool, station_health: ska_control_model.HealthState, antenna_healths: dict[str, Optional[ska_control_model.HealthState]]) tuple[bool, str][source]
Test whether UNKNOWN is valid for the station beam.
- Parameters:
beam_locked – if the beam is locked.
station_fault – If the station is in fault state.
station_health – Health of the station.
antenna_healths – Health of the antennas.
- Returns:
If the station beam is in unknown state.