kafka_dae_control.pvs.static_pvs

Static PVs for KDAECTRL.

Members

StaticPVs

Set up static PVs for KDAECTRL.

static_pv_provider

Generate a static pv provider containing all the static PVs.

class kafka_dae_control.pvs.static_pvs.StaticPVs(data: Data, queue: Queue[SetIPEvent | BeginEvent | EndEvent | TitleUpdateEvent | UsersUpdateEvent | HardwareUpdateEvent | BlocksUpdateEvent])[source]

Bases: object

Set up static PVs for KDAECTRL.

Parameters:
  • data – the data class containing the state of the program.

  • queue – the worker event queue.

update_all(data: Data) None[source]

Post updates to all PVs using the data class values.

Parameters:

data – the data class containing the state of the program.

kafka_dae_control.pvs.static_pvs.static_pv_provider(pv_prefix: str, data: Data, queue: Queue[SetIPEvent | BeginEvent | EndEvent | TitleUpdateEvent | UsersUpdateEvent | HardwareUpdateEvent | BlocksUpdateEvent]) tuple[StaticPVs, StaticProvider][source]

Generate a static pv provider containing all the static PVs.

This also sets up basic post hooks for observable dataclass items.

Parameters:
  • pv_prefix – the PV prefix.

  • data – The data class containing the state of the program.

  • queue – the worker event queue.

Returns: A static pv provider containing static PVs.