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)
Parameters
  • 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

regulate(interval)[source]
async run()[source]

Service entry point