assets_pb2
frequenz.api.assets.v1.assets_pb2 ¤
Generated protocol buffer code.
Classes¤
frequenz.api.assets.v1.assets_pb2.GetMicrogridRequest ¤
Bases: Message
GetMicrogridRequest is the input parameter for fetching details given a specific microgrid.
Source code in py/frequenz/api/assets/v1/assets_pb2.py
frequenz.api.assets.v1.assets_pb2.GetMicrogridResponse ¤
frequenz.api.assets.v1.assets_pb2.ListMicrogridElectricalComponentConnectionsRequest ¤
Bases: Message
ListMicrogridElectricalComponentConnectionsRequest is used for listing the electrical connections between components in a microgrid. Connections define a directed graph of electrical energy flow.
Component Graph
A component graph in the context of a microgrid refers to a directed graph where the nodes represent electrical components (like generators, batteries, or loads) and the edges represent electrical connections between them. The edges are directional, pointing away from the grid-connection point (or the root point for island microgrids). This means that for each edge, the source component is towards the grid connection point, and the destination component is pointing towards an underlying component. This graph provides a structured view of how electrical energy flows within the microgrid.
Filtering
Filtering can be done based on the source_component_id or destination_component_id. If these fields are left empty, connections with any source or destination will be returned.
Attributes¤
microgrid_id
instance-attribute
¤
Mandatory field. The ID of the microgrid for which connections are to be listed.
Functions¤
destination_component_ids ¤
Only return connections that terminate at these component IDs. If empty, no filtering is applied.
source_component_ids ¤
Only return connections that originate from these component IDs. If empty, no filtering is applied.
frequenz.api.assets.v1.assets_pb2.ListMicrogridElectricalComponentConnectionsResponse ¤
Bases: Message
ListMicrogridElectricalComponentConnectionsResponse holds the list of electrical connections that match the filter criteria specified in the ListMicrogridElectricalComponentConnectionsRequest.
frequenz.api.assets.v1.assets_pb2.ListMicrogridElectricalComponentsRequest ¤
Bases: Message
Request parameters for the RPC ListMicrogridElectricalComponents.
frequenz.api.assets.v1.assets_pb2.ListMicrogridElectricalComponentsResponse ¤
Bases: Message
A message containing a list of electrical components.