Transient buffer subpackage
This subpackage implements transient buffer functionality for MCCS.
- class MccsTransientBuffer(*args, **kwargs)
An implementation of a transient buffer Tango device for MCCS.
- class InitCommand(*args, **kwargs)
A class for
MccsTransientBuffer
’s Init command.The
do()
method below is called uponMccsTransientBuffer
’s initialisation.- do(*args, **kwargs)
Initialise the attributes and properties of the MccsTransientBuffer.
- Parameters:
- Return type:
- Returns:
A tuple containing a return code and a string message indicating status. The message is for information purpose only.
- __init__(*args, **kwargs)
Initialise this device object.
- create_component_manager()
Create and return a component manager for this device.
- Return type:
- Returns:
a component manager for this device.
- init_device()
Initialise the device.
This is overridden here to change the Tango serialisation model.
- Return type:
- resamplingBits()
Return the resampling bit depth.
- Return type:
- Returns:
the resampling bit depth
- transientBufferJobId()
Return the transient buffer job id.
- Return type:
- Returns:
the transient buffer job id
- class TransientBuffer(logger)
A placeholder for a transient buffer.
- __init__(logger)
Initialise a new instance.
- Parameters:
logger (
Logger
) – a logger for this component to use
- class TransientBufferComponentManager(logger, communication_state_callback, component_state_callback)
A component manager for a transient buffer.
- __init__(logger, communication_state_callback, component_state_callback)
Initialise a new instance.
- Parameters:
logger (
Logger
) – the logger to be used by this object.communication_state_callback (
Callable
[[CommunicationStatus
],None
]) – callback to be called when the status of the communications channel between the component manager and its component changes.component_state_callback (
Callable
[...
,None
]) – callback to be called when the component state changes.
- class TransientBufferHealthModel(*args, **kwargs)
A health model for a transient buffer.
At present this uses the base health model; this is a placeholder for a future, better implementation.
- Transient buffer
- Transient buffer component manager
- Transient buffer device
MccsTransientBuffer
MccsTransientBuffer.InitCommand
MccsTransientBuffer.__init__()
MccsTransientBuffer.create_component_manager()
MccsTransientBuffer.init_device()
MccsTransientBuffer.nStations()
MccsTransientBuffer.resamplingBits()
MccsTransientBuffer.stationId()
MccsTransientBuffer.stationIds()
MccsTransientBuffer.transientBufferJobId()
MccsTransientBuffer.transientFrequencyWindow()
main()
- Transient buffer health model