cobald.controller.switch module

class cobald.controller.switch.DemandSwitch(*args, **kwargs)[source]

Bases: Controller

Controller that dispatches to slaved controllers based on demand

DemandSwitch(pool, linear_control, 10, supply_control)
  • target – the pool on which to regulate demand

  • default – controller to use by default

  • slaves – pairs of minimum demand to switch and corresponding controller

  • interval – interval between adjustments in seconds

async run()[source]

Service entry point