Transient Buffer Device

This module implements the MCCS transient buffer device.

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 upon MccsTransientBuffer’s initialisation.

do(*args, **kwargs)

Initialise the attributes and properties of the MccsTransientBuffer.

Parameters:
  • args (Any) – positional args to the component manager method

  • kwargs (Any) – keyword args to the component manager method

Return type:

tuple[ResultCode, str]

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.

Parameters:
  • args (Any) – positional args to the init

  • kwargs (Any) – keyword args to the init

create_component_manager()

Create and return a component manager for this device.

Return type:

TransientBufferComponentManager

Returns:

a component manager for this device.

init_device()

Initialise the device.

This is overridden here to change the Tango serialisation model.

Return type:

None

nStations()

Return the number of stations.

Return type:

int

Returns:

the number of stations

resamplingBits()

Return the resampling bit depth.

Return type:

int

Returns:

the resampling bit depth

stationId()

Return the station id.

Return type:

int

Returns:

the station id

stationIds()

Return the station ids.

Return type:

list[str]

Returns:

the station ids

transientBufferJobId()

Return the transient buffer job id.

Return type:

int

Returns:

the transient buffer job id

transientFrequencyWindow()

Return the transient frequency window.

Return type:

list[float]

Returns:

the transient frequency window

main(*args, **kwargs)

Entry point for module.

Parameters:
  • args (str) – positional arguments

  • kwargs (str) – named arguments

Return type:

int

Returns:

exit code