component_pool
frequenz.sdk.timeseries.component_pool ¤
Manage a pool of components.
Classes¤
frequenz.sdk.timeseries.component_pool.ComponentPool ¤
Bases: ABC, Generic[RefStoreT, ReportT]
Abstract base class for component pools.
Source code in src/frequenz/sdk/timeseries/component_pool/_component_pool.py
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 | |
Attributes¤
component_ids
property
¤
component_ids: Set[ComponentId]
Return component IDs of all component IDs managed by this pool.
| RETURNS | DESCRIPTION |
|---|---|
Set[ComponentId]
|
Set of managed component IDs. |
power
abstractmethod
property
¤
power_distribution_results
property
¤
power_distribution_results: ReceiverFetcher[Result]
Get a receiver to receive power distribution results.
| RETURNS | DESCRIPTION |
|---|---|
ReceiverFetcher[Result]
|
A receiver that will stream power distribution results for the pool's set of |
ReceiverFetcher[Result]
|
components. |
power_status
property
¤
power_status: ReceiverFetcher[ReportT]
Get a receiver to receive new power status reports when they change.
These include - the current inclusion/exclusion bounds available for the pool's priority, - the current target power for the pool's set of components, - the result of the last distribution request for the pool's set of components,.
| RETURNS | DESCRIPTION |
|---|---|
ReceiverFetcher[ReportT]
|
A receiver that will stream power status reports for the pool's priority. |
system_power_bounds
property
¤
system_power_bounds: ReceiverFetcher[SystemBounds]
Return a receiver fetcher for the system power bounds.
Functions¤
__init__ ¤
Create an AbstractPool instance.
| PARAMETER | DESCRIPTION |
|---|---|
pool_ref_store
|
The pool reference store instance.
TYPE:
|
name
|
An optional name used to identify this instance of the pool or a corresponding actor in the logs.
TYPE:
|
priority
|
The priority of the actor using this wrapper.
TYPE:
|
Source code in src/frequenz/sdk/timeseries/component_pool/_component_pool.py
propose_power
async
¤
Send a proposal to the power manager for the pool's underlying components.
This proposal is for the maximum power that can be set for the components in the pool. The actual production or consumption might be lower.
Details on how the power manager handles proposals can be found in the Microgrid documentation.
| PARAMETER | DESCRIPTION |
|---|---|
power
|
The power to propose. If
TYPE:
|
bounds
|
The power bounds for the proposal. When specified, these bounds will limit the bounds for lower priority actors. |