File tree Expand file tree Collapse file tree 1 file changed +26
-1
lines changed
src/frequenz/sdk/microgrid Expand file tree Collapse file tree 1 file changed +26
-1
lines changed Original file line number Diff line number Diff line change @@ -300,7 +300,7 @@ def ev_charger_pool(ev_charger_ids: set[int] | None = None) -> EVChargerPool:
300300 created and returned.
301301
302302 Args:
303- ev_charger_ids: Optional set of IDs of EV Charger to be managed by the
303+ ev_charger_ids: Optional set of IDs of EV Chargers to be managed by the
304304 EVChargerPool.
305305
306306 Returns:
@@ -309,6 +309,31 @@ def ev_charger_pool(ev_charger_ids: set[int] | None = None) -> EVChargerPool:
309309 return _get ().ev_charger_pool (ev_charger_ids )
310310
311311
312+ def battery_pool (battery_ids : abc .Set [int ] | None = None ) -> BatteryPool :
313+ """Return the corresponding BatteryPool instance for the given ids.
314+
315+ If a BatteryPool instance for the given ids doesn't exist, a new one is
316+ created and returned.
317+
318+ Args:
319+ battery_ids: Optional set of IDs of batteries to be managed by the
320+ BatteryPool.
321+
322+ Returns:
323+ A BatteryPool instance.
324+ """
325+ return _get ().battery_pool (battery_ids )
326+
327+
328+ def power_distributing_handle () -> Bidirectional .Handle [Request , Result ]:
329+ """Return the handle to the power distributing actor.
330+
331+ Returns:
332+ A Bidirectional handle to communicate with the power distributing actor.
333+ """
334+ return _get ().power_distributing_handle ()
335+
336+
312337def _get () -> _DataPipeline :
313338 if _DATA_PIPELINE is None :
314339 raise RuntimeError (
You can’t perform that action at this time.
0 commit comments