ska_tmc_mccsmasterleafnode.manager package
Link to the TMC User documentation is here.
Submodules
ska_tmc_mccsmasterleafnode.manager.component_manager module
ska_tmc_mccsmasterleafnode.manager.event_manager module
Event manager class for MccsMLN
- class ska_tmc_mccsmasterleafnode.manager.event_manager.MccsMLNEventManager(*args: Any, **kwargs: Any)
Bases:
EventManagerMccsMLNEventManager class inherits from EventManager and adds event callbacks.
- adminmode_event_callback(event: tango.EventData) None
It handles the admin mode events of subsystem’s controller and subarray devices.
- Parameters:
event (tango.EventType.CHANGE_EVENT) – to flag the change in event.
- healthstate_event_callback(event: tango.EventData) None
It handles the health state events of subsystem’s controller and subarray devices.
- Parameters:
event (tango.EventType.CHANGE_EVENT) – to flag the change in event.
- longrunningcommandresult_event_callback(event: tango.EventData) None
Callback for longRunningCommandResult attribute. Delegates to specific handlers based on device type.
- Parameters:
event (tango.EventType.CHANGE_EVENT) – to flag the change in event.
- state_event_callback(event: tango.EventData) None
It handles the state events of subsystem’s controller and subarray devices.
- Parameters:
event (tango.EventType.CHANGE_EVENT) – to flag the change in event.
ska_tmc_mccsmasterleafnode.manager.event_manager module
Dataclass representing inputs used to evaluate health state and health info.
- class ska_tmc_mccsmasterleafnode.manager.health_state_manager.MCCSMasterHealthData(mccs_master_health_states: ~ska_tmc_mccsmasterleafnode.manager.health_state_manager.MCCSMasterHealthStateData = <factory>, mccs_master_liveliness: ~ska_tmc_mccsmasterleafnode.manager.health_state_manager.MCCSMasterLivelinessData = <factory>)
Bases:
objectDataclass representing health data for MCCS Master Node.
- mccs_master_health_states: MCCSMasterHealthStateData
- mccs_master_liveliness: MCCSMasterLivelinessData
- class ska_tmc_mccsmasterleafnode.manager.health_state_manager.MCCSMasterHealthManager(set_health_state: Callable, set_health_info: Callable, logger)
Bases:
objectManager for MCCS Master Leaf Node health data.
- evaluate_health_state() ska_control_model.HealthState
Evaluate health state using rules.
- Returns:
evaluated health state (never None).
- Return type:
HealthState
- generate_health_info() Dict
Generate a health info dictionary based on current health data.
- Returns:
Health info dictionary.
- Return type:
Dict
- update_health_data(event_data, data_type) None
Update the health data with new values.
- Parameters:
event_data (MCCSMasterHealthData) – New health data to update.
data_type (str) – The type of health data being updated.
- update_mccs_master_device_health(event_data) None
Update the MCCS device health data.
- Parameters:
event_data (MCCSMasterHealthStateData) – MCCS device health data.
- update_mccs_master_liveliness_data(event_data: bool) None
Update the MCCS master device liveliness data.
- Parameters:
event_data (bool) – liveliness data (unresponsive flag).
- class ska_tmc_mccsmasterleafnode.manager.health_state_manager.MCCSMasterHealthStateData(health_state: ska_control_model.HealthState = ska_control_model.HealthState.UNKNOWN)
Bases:
objectDataclass representing health state data for MCCS Subarray Node.