Skip to content

transformer_pb2

frequenz.api.common.v1.microgrid.components.transformer_pb2 ¤

Generated protocol buffer code.

Classes¤

frequenz.api.common.v1.microgrid.components.transformer_pb2.VoltageTransformer ¤

Bases: Message

A representation of a voltage transformer. Voltage transformers are used to step up or step down the voltage, keeping the power somewhat constant by increasing or decreasing the current. If voltage is stepped up, current is stepped down, and vice versa. Note that voltage transformers have efficiency losses, so the output power is always less than the input power.

Source code in frequenz/api/common/v1/microgrid/components/transformer_pb2.py
# @@protoc_insertion_point(imports)

_sym_db = _symbol_database.Default()




DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n=frequenz/api/common/v1/microgrid/components/transformer.proto\x12+frequenz.api.common.v1.microgrid.components\"8\n\x12VoltageTransformer\x12\x0f\n\x07primary\x18\x01 \x01(\x02\x12\x11\n\tsecondary\x18\x02 \x01(\x02\x62\x06proto3')

_globals = globals()
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'frequenz.api.common.v1.microgrid.components.transformer_pb2', _globals)
if not _descriptor._USE_C_DESCRIPTORS:
  DESCRIPTOR._loaded_options = None
  _globals['_VOLTAGETRANSFORMER']._serialized_start=110
  _globals['_VOLTAGETRANSFORMER']._serialized_end=166
# @@protoc_insertion_point(module_scope)
Attributes¤
primary: builtins.float instance-attribute ¤

The primary voltage of the transformer. This is the input voltage that is stepped up or down.

secondary: builtins.float instance-attribute ¤

The secondary voltage of the transformer. This is the output voltage that is the result of stepping the primary voltage up or down.