microgrid_pb2
frequenz.api.microgrid.microgrid_pb2
¤
Generated protocol buffer code.
Classes¤
frequenz.api.microgrid.microgrid_pb2.Component
¤
Bases: Message
A generic message for components. It is used to represent any category of component, with its static parameters.
Attributes¤
category: frequenz.api.common.components_pb2.ComponentCategory.ValueType
instance-attribute
¤
The category of the component.
id: builtins.int
instance-attribute
¤
A unique identifier for the component.
manufacturer: builtins.str
instance-attribute
¤
The component manufacturer.
model_name: builtins.str
instance-attribute
¤
The model name of the component.
name: builtins.str
instance-attribute
¤
An optional name for the component.
frequenz.api.microgrid.microgrid_pb2.ComponentData
¤
frequenz.api.microgrid.microgrid_pb2.ComponentFilter
¤
Bases: Message
Parameters for filtering the components.
Source code in frequenz/api/microgrid/microgrid_pb2.py
Attributes¤
categories: google.protobuf.internal.containers.RepeatedScalarFieldContainer[frequenz.api.common.components_pb2.ComponentCategory.ValueType]
property
¤
Return components that have the specified categories only.
ids: google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]
property
¤
Return components that have the specified IDs only.
frequenz.api.microgrid.microgrid_pb2.ComponentIdParam
¤
Bases: Message
Encapsulation of a component ID, intended to be used as a parameter for rpc methods.
frequenz.api.microgrid.microgrid_pb2.ComponentList
¤
Bases: Message
A message containing a list of components, used as a return typ in certain RPC methods.
frequenz.api.microgrid.microgrid_pb2.Connection
¤
Bases: Message
Describes a single connection between components of the microgrid, with direction away from the grid endpoint, meaning it is aligned with positive current according to the passive sign convention: https://en.wikipedia.org/wiki/Passive_sign_convention
frequenz.api.microgrid.microgrid_pb2.ConnectionFilter
¤
Bases: Message
Parameters for filtering the component connections
Attributes¤
ends: google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]
property
¤
Only return connections that end at the specified component ID(s):
if empty, connections with any end
will be returned
starts: google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]
property
¤
Only return connections that start from the specified component ID(s):
if empty, connections with any start
will be returned
frequenz.api.microgrid.microgrid_pb2.ConnectionList
¤
Bases: Message
List of connections between components
frequenz.api.microgrid.microgrid_pb2.Location
¤
Bases: Message
A pair of geographical co-ordinates, representing the location of a place.
Source code in frequenz/api/microgrid/microgrid_pb2.py
frequenz.api.microgrid.microgrid_pb2.MicrogridMetadata
¤
Bases: Message
Metadata that describes a microgrid.
Source code in frequenz/api/microgrid/microgrid_pb2.py
frequenz.api.microgrid.microgrid_pb2.PowerLevelParam
¤
Bases: Message
Parameters for setting the charge/discharge power of an appropriate component.
Attributes¤
component_id: builtins.int
instance-attribute
¤
The ID of the component to set the output power of.
power_w: builtins.int
instance-attribute
¤
The output power level, in watts. This is always a +ve integer. The sign
of the power level is controlled by the implementations of the Charge
and Discharge
RPC methods.
frequenz.api.microgrid.microgrid_pb2.SetBoundsParam
¤
Bases: Message
Parameters for setting bounds of a given metric of a given component.
Attributes¤
bounds: frequenz.api.common.metrics_pb2.Bounds
property
¤
The bounds for the target metric.
component_id: builtins.int
instance-attribute
¤
The ID of the target component.
target_metric: global___SetBoundsParam.TargetMetric.ValueType
instance-attribute
¤
The target metric whose bounds have to be set.
Classes¤
TargetMetric
¤
Bases: _TargetMetric
An enumerated list of metrics whose bounds can be set.
frequenz.api.microgrid.microgrid_pb2.SetPowerActiveParam
¤
Bases: Message
Parameters for setting the active power of an appropriate component using the
SetPowerActive
RPC.
frequenz.api.microgrid.microgrid_pb2.SetPowerReactiveParam
¤
Bases: Message
Parameters for setting the reactive power of an appropriate component using
the SetPowerReactive
RPC.
Attributes¤
component_id: builtins.int
instance-attribute
¤
The ID of the component to set the output reactive power of.
power: builtins.float
instance-attribute
¤
The output reactive power level, in VAr. -ve values are for inductive (lagging) power , and +ve values are for capacitive (leading) power.