FNCC component manager
This module implements the component management for fncc.
- class FnccComponentManager(logger, communication_state_callback, component_state_callback, attribute_change_callback, pasd_fqdn, event_serialiser=None, _pasd_bus_proxy=None)
A component manager for an fncc.
This communicates via a proxy to a MccsPasdBus that talks to a simulator or the real hardware.
- __init__(logger, communication_state_callback, component_state_callback, attribute_change_callback, pasd_fqdn, event_serialiser=None, _pasd_bus_proxy=None)
Initialise a new instance.
- Parameters:
logger (
Logger) – a logger for this object to usecommunication_state_callback (
Callable[[CommunicationStatus],None]) – callback to be called when the status of the communications channel between the component manager and its component changescomponent_state_callback (
Callable[...,None]) – callback to be called when the component state changesattribute_change_callback (
Callable[...,None]) – callback to be called when a attribute changespasd_fqdn (
str) – the fqdn of the pasdbus to connect to.event_serialiser (
Optional[EventSerialiser]) – the event serialiser to be used by this object._pasd_bus_proxy (
Optional[MccsDeviceProxy]) – a optional injected device proxy for testing purposes only. defaults to None